Page 1 of 2

Editing soldier stats

Posted: Mon Jul 04, 2011 11:08 pm
by KyleM
Is there a tutorial available that explains how to edit the soldier stats in .sav games?

Most of the available soldiers have stats that consist of either weak carry capacities, stealth, or health, and I find myself using the same squad based characters each time I start a new campaign. also, I would like to be able to transfer the soldier stats from a completed campaign save(CAM_0023.sav) to a new campaign save(CAM_0000.sav).

This sounds similar to the "SuperTroopers" mod by MajorDisaster but w/out the uber stats.
any help is appreciated.

update.......figured out how to edit the soldiers stats on my own :)

here's an example layout of 2 soldier stats from my modified cam_0000.sav, with the details broken down into sections.....



------------------excerpt from cam_0000.sav -----------------------------------


Patrick Dutch Mullholland
--------------------------------------------------------------------

(#...-#....Patrick. #....Mullholland..#....Dutch..#....x_f_032.bmp.
28 23 A8 00 00 00 96 23 0E 00 00 00 50 61 74 72 69 63 6B 00 A0 23 12
00 00 00 4D 75 6C 6C 68 6F 6C 6C 61 6E 64 00 AA 23 0C 00 00 00 44 75
74 63 68 00 F0 23 12 00 00 00 78 5F 66 5F 30 33 32 2E 62 6D 70 00

DE 26 0A 00 00 00 04 00 00 00 <---- Rank (04 = 2nd Lieutenant)
F3 26 0A 00 00 00 00 00 00 00
F4 26 0A 00 00 00 01 00 00 00
F5 26 0A 00 00 00 01 00 00 00
AD 26 2E 00 00 00 C0 0B 00 00
00 C0 1F 44 <----- Health (639)
00 00 C8 42 <----- Strength (100%)
00 00 C8 42 <----- Endurance (100%)
3E 8E BC 42 <----- null??
00 00 C8 42 <----- Shooting (100%)
00 00 8C 42 <----- null??
00 00 C8 42 <----- Stealth (100%)
00 00 C8 42 <----- First Aid (100%)
00 00 60 42 <----- Lock Pick (56%)
80 25 0E 00 00 00 01 00 00 00 00 00 00 00 (medals section)
------------------------------------------------------------------


David Foreman
-----------------------------------------------------------------

(#...-#....David. #....Foreman..#.......#....x_f_016.bmp.
28 23 9D 00 00 00 96 23 0C 00 00 00 44 61 76 69 64 00 A0 23 0E
00 00 00 46 6F 72 65 6D 61 6E 00 AA 23 07 00 00 00 00 F0 23 12
00 00 00 78 5F 66 5F 30 31 36 2E 62 6D 70 00


DE 26 0A 00 00 00 02 00 00 00 <---- Rank (02 = Sergeant)
F3 26 0A 00 00 00 00 00 00 00
F4 26 0A 00 00 00 01 00 00 00
F5 26 0A 00 00 00 01 00 00 00
AD 26 2E 00 00 00 C5 0B 00 00
00 C0 05 44 <----- Health (535)
00 00 C8 42 <----- Strength (100%)
00 00 B0 42 <----- Endurance (88%)
00 00 C8 42 <----- null??
00 00 A8 42 <----- Shooting (84%)
00 00 5C 42 <----- null??
00 00 B0 42 <----- Stealth (88%)
00 00 5C 42 <----- First Aid (55%)
00 00 70 41 <----- Lock Pick (15%)
80 25 0E 00 00 00 01 00 00 00 00 00 00 00 (medals section)

----------------------------------------------------------------------


i've enclosed a hd2 and a sabre squadron save game with modified soldier stats..

http://www.sendspace.com/file/9a0zn7

kyle

Re: Editing soldier stats

Posted: Mon Jul 25, 2011 12:10 am
by -ViTaMiHnM203-
I am impressed and... relieved, that you figured it out by yourself. It shows that not everyone still playing HD2 needs someone on some remote desktop application to do things. Though, I am disappointed at more secrets being revealed. :mrgreen:

By the way... sergeant not sargeant!

Re: Editing soldier stats

Posted: Mon Jul 25, 2011 2:41 am
by Jason
Good work mate, thanks for sharing thup01

Re: Editing soldier stats

Posted: Wed Jul 27, 2011 2:07 pm
by Capt. Stirling
A1 work Kyle and to echo..Thanks for sharing!
I myself was just thinking how to go about editing them using Maj Disaster's work as a rough guide but it turns out you've done it first and saved me the trouble. Image

But I'm sure the day of ultimate disappointment for Vitamin will come when the technique to get the Cap Comforter (headgear worn by the jump-master in Arctic 1 Mission) will be made available for SP MP inventories  wink01

Re: Editing soldier stats

Posted: Wed Jul 27, 2011 6:10 pm
by -ViTaMiHnM203-
funny01 - Where have you been hiding?

Re: Editing soldier stats

Posted: Thu Jul 28, 2011 6:23 am
by Capt. Stirling
I've been hiding and being dangerous matey!!
thup01

Re: Editing soldier stats

Posted: Fri Jul 29, 2011 11:15 am
by KyleM
thanks for all the kind responses  nods01

I can't take credit for all the work because as Capt. Stirling pointed out I used Maj Disaster's work as a guideline....
there are a few things I haven't deciphered yet...

for instance, all of the modified soldier stats in Maj Disaster's cam_000.sav show up properly in the roster and inventory menus prior to the first mission. this includes the first 4 selectable soldiers (Lauer, Smithy, Czakowski, and Bennett) that are listed as the current active soldiers in the roster menu after the training mission in his save game. when I created my own cam_000.sav that consisted of (Burton, Wingate, Harris, and Wright) as the active soldiers in the roster menu after the training mission, all of the stats of the soldiers I modified would show up properly in the roster and inventory menus prior to the first mission, with the exception of these 4 active soldiers.
their modified stats would show up properly in the roster menu, but in the inventory menu their original game stats would show up.....it wasn't until the actual start of the first mission that the modified stats took place.

also, if you modify the soldier stats in a *.*_quick.sav, the changes won't show up  :sad:

I hope this makes sense.

kyle

Re: Editing soldier stats

Posted: Fri Jul 29, 2011 3:12 pm
by Capt. Stirling
Yes it does make sense Kyle.

So the question is what file houses the original stats compositions... In discovering the problem you've encountered, I'm searching for that currently.

Re: Editing soldier stats

Posted: Fri Jul 29, 2011 5:52 pm
by -ViTaMiHnM203-
Hmm... You should already know where the original stats are... I am sure I have told you before... no_01 :mrgreen:

Re: Editing soldier stats

Posted: Fri Jul 29, 2011 7:46 pm
by Capt. Stirling
I know how to mod sounds, skins, menus and text, scene2 files with the various editors, films and that's about it. If you did tell me before, perhaps a reminder? grin01

Re: Editing soldier stats

Posted: Tue Aug 09, 2011 1:12 am
by Capt. Stirling
Alright, I've been trying to play with the stats but i can't find the original file that will dictate the soldier skills throughout the game. Anyone know??

Re: Editing soldier stats

Posted: Tue Aug 09, 2011 11:23 am
by hdmaster
Maybe it's the humanstore.def file in the tables folder

Re: Editing soldier stats

Posted: Tue Aug 09, 2011 9:35 pm
by Capt. Stirling
Much appreciated! That did the trick. Edit with the hex editor and different values and overwrite the originals in the tables folder. Now I can create new soldiers and backgrounds from scratch!! My mod should come along nicely now. Great work on cracking those 3D models. I've been following that thread wondering if the current No. 4 Lee Enfield in game can be edited to an SMLE. Not to digress however, thanks hdmaster.  thup01

Apparently I missed unpacking the tables folder in the Other files. Was always working on sounds, skins and other content. Haven't had this much fun since I first unpacked the original H&D music files using Dragon unpacker!!

Re: Editing soldier stats

Posted: Wed Aug 10, 2011 12:31 am
by -ViTaMiHnM203-
Yeah... why do you want to downgrade the rife? :mrgreen:

Re: Editing soldier stats

Posted: Wed Aug 10, 2011 1:33 am
by Capt. Stirling
I'd actually like to see both in game. Personally I feel they should have used the SMLE instead of the '03 Springfield. The Springfield optics model should have been a P14 with scope too.