Editing soldier stats

This is for general discussion about Hidden & Dangerous 2, talk about what you liked or what you didn't like about the sequel. Talk about multiplayer games, setup matches etc.
KyleM
Private
Posts: 9
Joined: Sun Feb 08, 2009 4:56 am

Editing soldier stats

Unread post by KyleM » Mon Jul 04, 2011 11:08 pm

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
Last edited by KyleM on Fri Jul 29, 2011 9:40 am, edited 1 time in total.

User avatar
-ViTaMiHnM203-
SAS Soldier
Posts: 1347
Joined: Wed May 11, 2005 7:52 am
Location: Classified
Contact:

Re: Editing soldier stats

Unread post by -ViTaMiHnM203- » Mon Jul 25, 2011 12:10 am

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!
Last edited by -ViTaMiHnM203- on Mon Jul 25, 2011 12:16 am, edited 1 time in total.
Eight, 8, the burning eight; between Sunday and Monday exists a day so great, it will devastate. :twisted:

User avatar
Jason
Administrator
Posts: 1895
Joined: Thu Sep 02, 2004 7:26 pm
Location: Perth, Australia
Contact:

Re: Editing soldier stats

Unread post by Jason » Mon Jul 25, 2011 2:41 am

Good work mate, thanks for sharing thup01
A new day, a new beginning

Fixing H&D2 Multiplayer tutorial

User avatar
Capt. Stirling
Lieutenant
Posts: 108
Joined: Tue Sep 26, 2006 5:56 pm

Re: Editing soldier stats

Unread post by Capt. Stirling » Wed Jul 27, 2011 2:07 pm

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
Last edited by Capt. Stirling on Tue Aug 16, 2011 4:14 pm, edited 1 time in total.
They Dared and Won..... And They Were Hidden and Dangerous.
1941-1945

User avatar
-ViTaMiHnM203-
SAS Soldier
Posts: 1347
Joined: Wed May 11, 2005 7:52 am
Location: Classified
Contact:

Re: Editing soldier stats

Unread post by -ViTaMiHnM203- » Wed Jul 27, 2011 6:10 pm

funny01 - Where have you been hiding?
Eight, 8, the burning eight; between Sunday and Monday exists a day so great, it will devastate. :twisted:

User avatar
Capt. Stirling
Lieutenant
Posts: 108
Joined: Tue Sep 26, 2006 5:56 pm

Re: Editing soldier stats

Unread post by Capt. Stirling » Thu Jul 28, 2011 6:23 am

I've been hiding and being dangerous matey!!
thup01
They Dared and Won..... And They Were Hidden and Dangerous.
1941-1945

KyleM
Private
Posts: 9
Joined: Sun Feb 08, 2009 4:56 am

Re: Editing soldier stats

Unread post by KyleM » Fri Jul 29, 2011 11:15 am

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
Last edited by KyleM on Fri Jul 29, 2011 11:17 am, edited 1 time in total.

User avatar
Capt. Stirling
Lieutenant
Posts: 108
Joined: Tue Sep 26, 2006 5:56 pm

Re: Editing soldier stats

Unread post by Capt. Stirling » Fri Jul 29, 2011 3:12 pm

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.
They Dared and Won..... And They Were Hidden and Dangerous.
1941-1945

User avatar
-ViTaMiHnM203-
SAS Soldier
Posts: 1347
Joined: Wed May 11, 2005 7:52 am
Location: Classified
Contact:

Re: Editing soldier stats

Unread post by -ViTaMiHnM203- » Fri Jul 29, 2011 5:52 pm

Hmm... You should already know where the original stats are... I am sure I have told you before... no_01 :mrgreen:
Eight, 8, the burning eight; between Sunday and Monday exists a day so great, it will devastate. :twisted:

User avatar
Capt. Stirling
Lieutenant
Posts: 108
Joined: Tue Sep 26, 2006 5:56 pm

Re: Editing soldier stats

Unread post by Capt. Stirling » Fri Jul 29, 2011 7:46 pm

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
They Dared and Won..... And They Were Hidden and Dangerous.
1941-1945

User avatar
Capt. Stirling
Lieutenant
Posts: 108
Joined: Tue Sep 26, 2006 5:56 pm

Re: Editing soldier stats

Unread post by Capt. Stirling » Tue Aug 09, 2011 1:12 am

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??
They Dared and Won..... And They Were Hidden and Dangerous.
1941-1945

hdmaster
Sergeant
Posts: 84
Joined: Thu Jan 27, 2011 9:31 pm
Location: Germany

Re: Editing soldier stats

Unread post by hdmaster » Tue Aug 09, 2011 11:23 am

Maybe it's the humanstore.def file in the tables folder

User avatar
Capt. Stirling
Lieutenant
Posts: 108
Joined: Tue Sep 26, 2006 5:56 pm

Re: Editing soldier stats

Unread post by Capt. Stirling » Tue Aug 09, 2011 9:35 pm

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!!
Last edited by Capt. Stirling on Tue Aug 09, 2011 9:37 pm, edited 1 time in total.
They Dared and Won..... And They Were Hidden and Dangerous.
1941-1945

User avatar
-ViTaMiHnM203-
SAS Soldier
Posts: 1347
Joined: Wed May 11, 2005 7:52 am
Location: Classified
Contact:

Re: Editing soldier stats

Unread post by -ViTaMiHnM203- » Wed Aug 10, 2011 12:31 am

Yeah... why do you want to downgrade the rife? :mrgreen:
Eight, 8, the burning eight; between Sunday and Monday exists a day so great, it will devastate. :twisted:

User avatar
Capt. Stirling
Lieutenant
Posts: 108
Joined: Tue Sep 26, 2006 5:56 pm

Re: Editing soldier stats

Unread post by Capt. Stirling » Wed Aug 10, 2011 1:33 am

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.
Last edited by Capt. Stirling on Wed Aug 10, 2011 3:24 am, edited 1 time in total.
They Dared and Won..... And They Were Hidden and Dangerous.
1941-1945

Post Reply

Who is online

Users browsing this forum: No registered users and 69 guests