Sera Save Edit

Azrael1

Well-Known Member
Mar 30, 2022
213
33
29
Hi there, a while back I managed to get Sera to join the crew. When I did I accidentally clicked the option to keep Sera as is instead of making her fully female. I only realized this after I had saved the game.

So, I was wondering if there it is possible to use save editing with the chrome devtool to change Sera female, and if so what would I need to do.
 

Theron

Well-Known Member
Nov 8, 2018
4,180
1,535
45
Probably
sera.makeBallsInternal();
sera.removeCocks();

It's also possible to modify NPCs with the raw Save-to-File JSON, but a Save Editor is a lot easier.
 

Renurb

Well-Known Member
Nov 7, 2023
78
18
Probably
sera.makeBallsInternal();
sera.removeCocks();

It's also possible to modify NPCs with the raw Save-to-File JSON, but a Save Editor is a lot easier.
I had two questions regarding the Save Editor for NPCs.
1) Do you know if this works properly with the flash game (ergo the flash save editor)?
2) When opening a file to Save Edit (both JSON or swf) and further selecting 'X' character to edit, I've noticed that some 'stats' are inconsistent, often in regards to body descriptors. If you save edit a character, does this inconsistency in stats need to be addressed and adjusted, or can we just change status and leave the rest alone?

PS. Can adding perks/changing stats or changing their body's features (change the ears or something) on certain NPCs like Shizuya change how they appear described and how their fights go? I'm fairly sure it doesn't make the Gray Goo Armor stronger, although that's probably because the Character and actual Armor are different mechanics in-game.
 

Theron

Well-Known Member
Nov 8, 2018
4,180
1,535
45
1. You wouldn't be using Console commands in the Flash Editor. But removing the balls and penis should work.
2. Some* characters have hard-coded descriptions, because the writer didn't expect them to change.
*A lot of? Most?
 

Renurb

Well-Known Member
Nov 7, 2023
78
18
1. You wouldn't be using Console commands in the Flash Editor. But removing the balls and penis should work.
2. Some* characters have hard-coded descriptions, because the writer didn't expect them to change.
*A lot of? Most?
1) Oh no I understand that, I meant that in the flash editor there's "Flags" that allow you to edit some character interactions but you also can change it from PC to (for example) Frostwyrm which has a different set of stats, however while some are consistent (Frostwyrm genitalia) other parts are not (wings being tagged as draconic rather than Frostwyrm and arms/legs being Human) I assume this is how it is in the game files by default but I can't check for sure since the Github was deleted.
2) Ah meant more in regards to dynamic scenes or combat, we fight the Frostwyrm before seducing them, so if I do something like add passive defensive perks or lower physique stats, would it impact their actual combat or sex-scene performance? And if it does, do I need to edit the ENTIRE character sheet to keep consistency or not? I've been trying to find out but I'm wary of breaking my saves.
 

Theron

Well-Known Member
Nov 8, 2018
4,180
1,535
45
1) Oh no I understand that, I meant that in the flash editor there's "Flags" that allow you to edit some character interactions but you also can change it from PC to (for example) Frostwyrm which has a different set of stats, however while some are consistent (Frostwyrm genitalia) other parts are not (wings being tagged as draconic rather than Frostwyrm and arms/legs being Human) I assume this is how it is in the game files by default but I can't check for sure since the Github was deleted.
Like I said, a lot of scenes don't actually care about what the NPC is flagged as, internally. Or have very limited parser integration. If the player is not supposed to be able to change the NPC, there's not much point.

2) Ah meant more in regards to dynamic scenes or combat, we fight the Frostwyrm before seducing them, so if I do something like add passive defensive perks or lower physique stats, would it impact their actual combat or sex-scene performance? And if it does, do I need to edit the ENTIRE character sheet to keep consistency or not? I've been trying to find out but I'm wary of breaking my saves.
I don't know if the combat setup code pulls from the save, or the internal statblock for determining stats/perks.
Is there a reason you can't create backup copies of your save(s)?
 

Renurb

Well-Known Member
Nov 7, 2023
78
18
Like I said, a lot of scenes don't actually care about what the NPC is flagged as, internally. Or have very limited parser integration. If the player is not supposed to be able to change the NPC, there's not much point.


I don't know if the combat setup code pulls from the save, or the internal statblock for determining stats/perks.
Is there a reason you can't create backup copies of your save(s)?
Understood, honestly I was just having some fun seeing if I could change some characters just to see how the interactions may change. I actually did test out a bunch of edits while waiting for your reply so I found out that there is little to no effect (example, I replaced the Frostwyrm's default Shield with a few others but the numbers and resistances remained the same.

On a slightly different note, I was looking at some of the code because of a curious stats aspect; HP Resistances. I know you're very well versed with the code so I was wondering if you know why the PC can't change their HP Resistances? Even getting Icy Veins or HellDiver doesn't change the stats (at least visibly).
I know it's under baseHPResistances (or more accurately pc.baseHPResistances.(type).damageValue = #;

Code:
 //Example from Khorgan's sheet:
baseHPResistances.kinetic.damageValue = 10.0;
baseHPResistances.burning.damageValue = -10.0;
baseHPResistances.electric.damageValue = -25.0;
//Other code from Corona Flamer 
this.baseHPResistance.burning.damageValue = 30

Furthermore is it possible to change it in either flash or JS? For the former all my attempts to use Impulse or the Console tab have met failure.
 

Theron

Well-Known Member
Nov 8, 2018
4,180
1,535
45
Icy Veins doesn't actually give Freezing Resistance for combat purposes. It just negates Ueto's ambient cold damage.

Helldiver is actually a good example, because the code doesn't check for it's presence. Gaining the Perk directly edits your resistances.
I don't think getting it via Save-Editing invokes the code.
Code:
pc.baseHPResistances.burning.resistanceValue += 10,
pc.baseShieldResistances.burning.resistanceValue += 10

If you want to Save-Edit, I don't think any of the convenient GUI Editors can do it.
You can with the JavaScript JSON saves.

"baseHPResistances":{"classInstance":"TypeCollection","values":[0,0,0,0,0,0,0,0,0,0,0,0],"flags":[]},"baseShieldResistances":{"classInstance":"TypeCollection","values":[0,0,0,0,0,0,0,0,0,0,0,0]
Kinetic,Electric,Burning,Freezing,Corrosive,Poison,True Damage,Psionic,Drug,Pheromone,Tease,True Lust
 
Last edited:

Renurb

Well-Known Member
Nov 7, 2023
78
18
Helldiver is actually a good example, because the code doesn't check for it's presence. Gaining the Perk directly edits your resistances.
I don't think getting it via Save-Editing invokes the code.
Code:
pc.baseHPResistances.burning.resistanceValue += 10,
pc.baseShieldResistances.burning.resistanceValue += 10
I see, I KNEW something about that perk was weird. Strangely when I tested it when the perk first came out (I used cheats to level up rapidly as a mercenary test char) the resistances didn't show up in the code or the in-game Stats, I'm guessing that was a fixed bug.
Regarding the save editor; I know some perks like Flower Power require separate Status effect edits to actually appear and activate in-game, and/or flag edits. Or if I edit in goo hair, then for me to actually use the ability to modify hair, I need to mark off the number of assumed Galomax uses in Flags. The same also applies to Cybernetic Synchronization (at least in the JS version) where you have to manually add the +5 Intelligence modifier after selecting the perk, AND actually having the cybernetic part to activate the whole assembly.
I suspect HellDiver is a similar case, but since the Save Editor doesn't allow you to access Resistances, you can't adjust the code to correlate and have to console edit. It's strange since the CoC2 Save Editor DOES have a resistance editing function, so it shouldn't be immensely difficult to add.

But either way save editing baseHPResistances will require console editing for JS and I don't know what for the flash game. Is there any possible way to console edit a save for flash? .minerva is more trouble than it's worth.
 

Theron

Well-Known Member
Nov 8, 2018
4,180
1,535
45
I see, I KNEW something about that perk was weird. Strangely when I tested it when the perk first came out (I used cheats to level up rapidly as a mercenary test char) the resistances didn't show up in the code or the in-game Stats, I'm guessing that was a fixed bug.
That is indeed a bug that got fixed.
I suspect HellDiver is a similar case, but since the Save Editor doesn't allow you to access Resistances, you can't adjust the code to correlate and have to console edit. It's strange since the CoC2 Save Editor DOES have a resistance editing function, so it shouldn't be immensely difficult to add.
The question is if the author of your favorite Editor wants to.
But either way save editing baseHPResistances will require console editing for JS and I don't know what for the flash game. Is there any possible way to console edit a save for flash? .minerva is more trouble than it's worth.
I'm not as familiar with hacking Flash, unfortunately. If it is possible, I don't know it.
 
Last edited: