Last Evil
此社区中心标记为“仅限成人”。您看到此中心是因为您已将偏好设置为允许此类内容。

Last Evil

Last Evil Workshop!
Find new spells, new outfits, and game modifications in the workshop! The mods here are available through Nexus Unity Mod Manager. See the topic User Mod Support in the discussion.
了解更多
lirmont 8 2021 年 4 月 25 日 下午 11:10
WIP GameOptionsMod
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2441421031


Introduction

This mod houses the things I've encountered so far that I can fix. Some of them have been mentioned on the general discussions board. My goal is to make each section able to be turned on in the mod's options. All sections should start as off.

  1. Inflation Settings
  2. Breast Size Settings
  3. Experience Table
  4. Save Method
  5. Screen Resolutions
  6. Card Display Fixes
  7. Localization Fixes
  8. Resets

Notes on Breast Size Settings

If section is enabled, settings will update on the character on the title screen when you hit the general mod manager "Save" button.

I looked into applying gravity, but it's a different type of jiggle bone than the one used by inflation/the stomach. And, I didn't find a way to accomplish that so that in upside down scenarios the position animation could be less local and more global/realistic. I suppose it's possible to replace the jiggle bone with the other version that I am more familiar with from earlier.


Notes on Save Methodology

If activated, this mod can change the game's save method so that it doesn't directly write to the save file. It will instead first write to a temporary file and then write over the existing file. This should prevent data corruption caused by power off or crash events while a write buffer is flushing to the save files. I haven't tried to cause that condition, though.

Additionally, you can tell the mod to save an arbitrary number of old versions. Please note however, that this is meant for backup purposes due to the 10+ reports of such problems on the general discussion board over the years. As such, I did not include an easy way to go back to a previous save without closing the game. You'll need to do that yourself. The mod will jump you right to the save folder though (tested on Windows only).


Notes on Card Display Fixes

More to come here, but the idea is to provide a way to use 1-to-1 versions of high-visibility resources on a resolution-specific basis to avoid aliasing. Right now, it's just my 1920x1080 tests.


Notes on Localization Fixes

English (en) localization overrides exist. Ability to edit open, edit, and auto-reload the override file is in the mod now.


Notes on Resets

If activated, the mod's options will show buttons for resetting the gallery progress and experience points. Please heed the warning message.

Alternatively, you can manually: (1) decrypt your save file, (2) uncompress it, (3) optionally clear out the data for GR_ICT (images), GR_SCN (animated scenes), and EXP, (4) re-compress it, (5) re-encrypt it, and (6) load the game.
最后由 lirmont 编辑于; 2021 年 6 月 5 日 上午 5:47
< >
正在显示第 16 - 22 条,共 22 条留言
lirmont 8 2021 年 7 月 11 日 下午 5:10 
Added areas in addition to sections.

Access to most succubus renderers/shaders (not outfit yet). Shader parameters not complete yet.

Horn, wings, and tail can be hidden.

Merchant can have skin color changed via shaders.

More English localization rewrites (total is 250+ changes now).

Auto-translated the Russian entries that were left as English. It's the right alphabet now, at least.

Shader settings shenanigans
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2544654911
Merchant
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2544654598
No horns, wings, tail
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2542503681
More shader setting shenaningans
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2542340173
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2542340356
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2542339716
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2542340659
最后由 lirmont 编辑于; 2021 年 7 月 11 日 下午 5:11
StrayHero 2021 年 7 月 29 日 上午 10:28 
I really enjoyed having the shader options available for the merchant. It would be cool if we could apply the same breast slider changes to the merchant that we did to the succubus. (As in, "copy these settings to merchant" and "reset merchant to default" options, so we can visibly see the changes on the succubus character, then apply them.)
StrayHero 2021 年 7 月 29 日 上午 10:35 
Alright - for my original request: I'd like Essence to affect the player character's strength.

The concept is that you no longer necessarily want to just blow all of your Essence in one go at the merchant. And, you start off significantly weaker for your first couple of battles, which I think would be an appropriate challenge. It also meshes better with the concept of a succubus instead of just acting as an Essence collector for the merchant by turning Essence into a combat resource.

Since this would probably justify a whole mod in and of itself to implement elegantly (with percentage-based modifiers or a new effect type), I have suggestions for a simplified implementation that I hope would take less effort:

Option 1:
0-9 Essence = Start combat with -1 Power, -1 Defensive
10-19 Essence = No Change / Neutral
20-29 Essence = Start combat with 1 Power, 1 Defensive
30+ Essence = Start combat with 2 Power, 2 Defensive

Option 2:
0-9 Essence = Start combat with 2 Frail, 2 Weakness, 1 Focused
10-19 Essence = Start combat with 1 Frail, 1 Weakness
20 - 29 Essence = Start combat with 1 Morale
30+ Essence = Start combat with 3 Morale, 2 Purify

Obviously you could have more gradual scaling or more significant modifiers, but since I'm asking for a favor, I don't have any expectations on variety or implementation method. You could also have something in there where if you're at 40+ Essence, you get 1 Regeneration (the buff that werewolves get) and/or 1 Echo (or whatever the "gain 1 shield every turn" buff is called). Again though, I'm just tossing out ideas.

I'd also like to take you up on your offer to see the code changes for this if you do end up implementing it. I think it would help me better understand how to modify the code going forward. Thanks!
最后由 StrayHero 编辑于; 2021 年 7 月 29 日 上午 10:35
lirmont 8 2021 年 7 月 29 日 下午 12:24 
引用自 DisappointingHero
I really enjoyed having the shader options available for the merchant. It would be cool if we could apply the same breast slider changes to the merchant that we did to the succubus. (As in, "copy these settings to merchant" and "reset merchant to default" options, so we can visibly see the changes on the succubus character, then apply them.)

Yeah, I stopped short on the merchant because it was way more difficult to test that something worked (re: had to have game save permanently at shop to test that in addition to animated scenes), but I will eventually get back to it. Materials are sometimes hard to inspect due to a bug in the game's version of Unity (and it took me a long time to find that out).

引用自 DisappointingHero
Alright - for my original request: I'd like Essence to affect the player character's strength.

The concept is that you no longer necessarily want to just blow all of your Essence in one go at the merchant. And, you start off significantly weaker for your first couple of battles, which I think would be an appropriate challenge. It also meshes better with the concept of a succubus instead of just acting as an Essence collector for the merchant by turning Essence into a combat resource.

Since this would probably justify a whole mod in and of itself to implement elegantly (with percentage-based modifiers or a new effect type), I have suggestions for a simplified implementation that I hope would take less effort:

Option 1:
0-9 Essence = Start combat with -1 Power, -1 Defensive
10-19 Essence = No Change / Neutral
20-29 Essence = Start combat with 1 Power, 1 Defensive
30+ Essence = Start combat with 2 Power, 2 Defensive

Option 2:
0-9 Essence = Start combat with 2 Frail, 2 Weakness, 1 Focused
10-19 Essence = Start combat with 1 Frail, 1 Weakness
20 - 29 Essence = Start combat with 1 Morale
30+ Essence = Start combat with 3 Morale, 2 Purify

Obviously you could have more gradual scaling or more significant modifiers, but since I'm asking for a favor, I don't have any expectations on variety or implementation method. You could also have something in there where if you're at 40+ Essence, you get 1 Regeneration (the buff that werewolves get) and/or 1 Echo (or whatever the "gain 1 shield every turn" buff is called). Again though, I'm just tossing out ideas.

I'd also like to take you up on your offer to see the code changes for this if you do end up implementing it. I think it would help me better understand how to modify the code going forward. Thanks!

Yeah, that sounds like an alternate mechanic. I still need to add the ability not to spend all lust on post-battle scenes (which I wanted to base off of NPCs in the encounter), so I may get to it when I do that.

The ability to reference buff/debuff amounts exists on cards, so it should be possible to reference them (ex: in mod settings) and apply them. However, that parameter data is difficult to read. But I am currently working on a deck manager mod which will help expose that stuff in a human-readable way (eventually). Namely, each card has spell parameters, and those are the things that are used to apply which buff and how much. So, while I don't know how to do it at this point, I probably will after I get that mod to a release.

Generally, my approach to that would be: (1) be able to read essence (re: GameManager.Data.SaveData.Inflation) and make a decision what to add/remove, (2) hook into turn change (say by adding an action to BattleFramework.onChangeTurn from BattleFramework->Awake), (3) acquire the player character (maybe from instance of BattleFramework._player), and (4) apply the appropriate buffs/debuffs (BattleFramework._player.AddBuffCount) if it's the player's turn (and there's something to do). You'd need to track last seen essence after turn 1 to compare it to current essence in order to make the determination that there's something to do or not (and reset it to null on turn 1).
lirmont 8 2021 年 7 月 30 日 下午 11:42 
Finally figured out how to get anti-aliasing on the UI to work, so that's in the latest version. Jagged edges in this game have been bothering me from the beginning, since I knew it would probably look a lot better without them.

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2561892422
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2561894366

Option is in renderers -> want camera settings.
StrayHero 2021 年 7 月 31 日 上午 10:11 
引用自 lirmont
Generally, my approach to that would be: (1) be able to read essence (re: GameManager.Data.SaveData.Inflation) and make a decision what to add/remove, (2) hook into turn change (say by adding an action to BattleFramework.onChangeTurn from BattleFramework->Awake), (3) acquire the player character (maybe from instance of BattleFramework._player), and (4) apply the appropriate buffs/debuffs (BattleFramework._player.AddBuffCount) if it's the player's turn (and there's something to do). You'd need to track last seen essence after turn 1 to compare it to current essence in order to make the determination that there's something to do or not (and reset it to null on turn 1).

It sounds like you're trying to make it work for whatever the essence is at any point in the fight, but I don't think that's necessary (especially if it's just based on buffs). There are no fights that reduce your essence, and I don't think it's worth the trouble to check whether debuffs should wear off early just because you used Temptation mid-battle.

I think your steps still mostly apply, but tracking last seen essence sounds like overkill. Maybe I just don't understand the mechanics well enough.
lirmont 8 2021 年 10 月 4 日 下午 6:33 
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2619750597
Added ability to turn off characters in gallery events.

Added 2 very important fixes. Previously, I thought most of the game's performance issues were related to not using LoD and having huge textures, made worse by not always clearing up unused resources (ones the automatic garbage collection won't catch). If you don't have a strong enough GPU, I still think that's the case. If you do, I think performance issues may stem from repeatedly writing warnings and errors to the log file.

Fix 1: Wrap Quaternion.LookRotation so that it doesn't write warnings to the log file.

I don't know where this happens specifically, but a warning gets written to the log when this function is passed Vector3.zero. This prevents that function from doing that.

Fix 2: Wrap DecalSystem.MeshUtils.GetTriangles so that it doesn't crash to the log file on unreadable vertex data.

This happens in some gallery events, and a long, probably expensive call stack gets written to the log file whenever it encounters vertex data that can't be read (by Unity's design). There's a check in there to help address that proactively, but I wrapped it so that it wouldn't cause any other problems either. Point is, the game isn't going to try to write 20+ lines to the log every frame when things are breaking.

As always, you gotta turn them on yourself.
< >
正在显示第 16 - 22 条,共 22 条留言
每页显示数: 1530 50

发帖日期: 2021 年 4 月 25 日 下午 11:10
回复数: 22