FYI - Tinkering with heroes in savegame files

PC : Turn based WW2 goodness in the mold of Panzer General. This promises to be a true classic!

Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design

Post Reply
spotlight2001
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 44
Joined: Thu Oct 15, 2020 8:53 pm

FYI - Tinkering with heroes in savegame files

Post by spotlight2001 »

Image

Existing hero attributes can be modifed

(1) use some hex editor like HxD

(2) search for the hero by name
! with Unicode encoding, since each letter takes up to 2 bytes

Image

(3) after the FF FF FF FF FF FF FF FF 00 00 00 00 00 00
03 00 00 00 attack
04 00 00 00 defense
05 00 00 00 initiative
06 00 00 00 movement
07 00 00 00 spotting
08 00 00 00 range

I have just used ascending numbers to demonstrate which relative hex position relates to which attribute

(4) at deployment phase the hero exists twice, I had to modify both ocurrences


Image
ok, now that wasnt necessary but it is somewhat hilarious ... max. positive value seems to be FF FF FF 7A


hint: how to get findings on hex stuff: I use VBinDiff.exe to compare a savegame before and after some specific action like getting a hero


Why to do this?
I dont know
Maybe to turn the spotting artillery hero to a modest a+1
spotlight2001
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 44
Joined: Thu Oct 15, 2020 8:53 pm

Re: FYI - Tinkering with heroes in savegame files

Post by spotlight2001 »

removed
Last edited by zakblood on Wed Nov 11, 2020 6:50 pm, edited 1 time in total.
Reason: off topic
terminator
Field Marshal - Elefant
Field Marshal - Elefant
Posts: 5953
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: FYI - Tinkering with heroes in savegame files

Post by terminator »

Very interesting, thank you
ptje63
Sergeant First Class - Elite Panzer IIIL
Sergeant First Class - Elite Panzer IIIL
Posts: 403
Joined: Fri Sep 26, 2014 2:57 pm
Location: The Netherlands
Contact:

Re: FYI - Tinkering with heroes in savegame files

Post by ptje63 »

Finally getting rid of some worthless I (Stuka) and D (artillery) heroes. Takes some time but it works. Each hero name appears 4 times in the file, the 2nd time and 4th time have to be modified, first for application and second for the avatar.
terminator
Field Marshal - Elefant
Field Marshal - Elefant
Posts: 5953
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: FYI - Tinkering with heroes in savegame files

Post by terminator »

The software used is HxD - Freeware Hex Editor and Disk Editor :

HxDShotLarge.png
HxDShotLarge.png (35.54 KiB) Viewed 2208 times
spotlight2001
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 44
Joined: Thu Oct 15, 2020 8:53 pm

Re: FYI - Tinkering with heroes in savegame files

Post by spotlight2001 »

ptje63 wrote: Fri Nov 20, 2020 6:45 pm Each hero name appears 4 times in the file, the 2nd time and 4th time have to be modified, first for application and second for the avatar.
I think you are close:

yes each hero appears 4 times

1st occurrence is "battle history" text in case you use "restart scenario"
2nd occurrence is hero values in case you use "restart scenario"
3rd occurrence is current "battle history" text
4th occurrence is current hero values

3rd:
Image

So i conclude one only has to edit the last occasion if you dont use "restart scenario"
terminator
Field Marshal - Elefant
Field Marshal - Elefant
Posts: 5953
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: FYI - Tinkering with heroes in savegame files

Post by terminator »

Thank you for the information
Post Reply

Return to “Panzer Corps”