SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-26-07, 07:39 AM   #1
buzzinbill
Seaman
 
Join Date: Apr 2007
Location: West Virginia , USA
Posts: 41
Downloads: 582
Uploads: 0
[REQ] How about a save game editor?

Don't know if this has been asked before , but I'll ask again ... Has or is any of you talented joe's out there ever thought of doing a Saved Game Editor for SH4 ?

The reason I'm asking is this... I was on patrol when I "stumbled" upon a enemy task force, Well for all the tales of dodgy A.I. posts on here , I thought I may be able to sneak up pretty close surfaced (it was dark) ...Well guess what someone on one of those ships was awake because all hell broke lose , 3/4 of those DD's and BB's fired there guns (most of which found there target) (me) well anyway To make a long story short engine's (both types) , prop's , prop shafts , batteries are beyond repair of my meager crew ... And I'm stuck out in the middle of nowhere , dead in the water.

I tried to edit the ActiveUserPlayerUnits.upc that was in the saved game folder
I changed any of these settings that wasn't zeroed

Damage=
DamageHitpointsConsumed=

And I was able to get the "Engine Telegraph" to move , it didn't before the edit still .. The big question is can anyone help get my boat and my crew moving again ? Or tell me how I can rig it up to "limp" back to Midway for a refit? :hmm:
__________________


"A wink is as good as a nod, to a blind horse."
buzzinbill is offline   Reply With Quote
Old 07-22-08, 03:47 AM   #2
Gregz0012
Nub
 
Join Date: Jul 2008
Posts: 3
Downloads: 0
Uploads: 0
Default

I'dlike to know this also, so bump!
Gregz0012 is offline   Reply With Quote
Old 07-22-08, 01:06 PM   #3
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

next time you find yourself trying a risky attack you should do a quick save (not a regular save game) so if things go bad you might be able to return to where you sighted your targets. it might not work, targets might not be there after the quick save is reloaded, but you might be able to continue on your mission.
  Reply With Quote
Old 09-27-08, 04:30 PM   #4
rhohltjr
Mate
 
Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
Quote:
Originally Posted by buzzinbill
Don't know if this has been asked before , but I'll ask again ... Has or is any of you talented joe's out there ever thought of doing a Saved Game Editor for SH4 ?

:hmm:
I would like to try to fix my boat with a save game editor if possible as well.
I didn't go charging into Tokyo bay guns a blazin and got shot up,... no
all I did was try to move my deck gun from aft to forward. This really porked it. now my boat shows both aft and forward deck guns(looking at the crew window) but there are no slots for crewmen to man them . Externally the deckgun is correctly placed, but can't be manned, except by the captain. I really need the deck gun manned by the deck gun crew so I can drink coffee and drive my boat. So maybe this could be fixed with a save game editor?
__________________
First PC game was Microprose Silent Service. And I still have it. Does anyone else WitpAE?
rhohltjr is offline   Reply With Quote
Old 09-27-08, 11:54 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Several people have looked at the Saved files in SH3
without success.

SH4 seems to use the same format.

I'd say they are compressed files.
Much the same as most of the main files for both SH3 and SH4.

Until someone can decompress those files?
Not much can be done.

They do seem to use zlib as I recall.
  Reply With Quote
Old 09-28-08, 12:35 PM   #6
rhohltjr
Mate
 
Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
Shucks.

Quote:
Originally Posted by privateer
Several people have looked at the Saved files in SH3
without success.

SH4 seems to use the same format.

I'd say they are compressed files.
Much the same as most of the main files for both SH3 and SH4.

Until someone can decompress those files?
Not much can be done.

They do seem to use zlib as I recall.
Well since I am unable to do anything about it right now,.... will this problem follow me if I am
awarded a newer boat? If so then I might as well start over with a new career, and leave the original deck gun placement alone.


__________________
First PC game was Microprose Silent Service. And I still have it. Does anyone else WitpAE?
rhohltjr is offline   Reply With Quote
Old 10-01-08, 11:15 PM   #7
Matilda
Seaman
 
Join Date: Sep 2008
Posts: 37
Downloads: 57
Uploads: 0
Default Look in and at

Look in the My Documents\SH4\Data\Cfg\SaveGames\
Find the saved game you want to change, they will be in numbered folders.
Open that folder and find the ActiveUserPlayerUnits.upc file.
Open that with Notepad.
There are numerous different compartments listed you need to zero out the following lines: Damage=0.000000
DamageHitpointsConsumed=0.000000

Both of those lines need to be zeroed out as in the example above for all compartments.

If you have dead or wounded crew members you need to do the same for them.
For crew members you may also need to change:
FatigueCoef=0.000000
Health=1.000000

Making changes tothe lines above should get you back in business. As is standard operating procedure make a backup copy of all files before you change them in case of faulty info or mistakes in editing.
__________________
Matilda is offline   Reply With Quote
Old 10-02-08, 06:59 AM   #8
rhohltjr
Mate
 
Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
Quote:
Originally Posted by Matilda
Look in the My Documents\SH4\Data\Cfg\SaveGames\
Find the saved game you want to change, they will be in numbered folders.
Open that folder and find the ActiveUserPlayerUnits.upc file.
Open that with Notepad.
There are numerous different compartments listed you need to zero out the following lines: Damage=0.000000
DamageHitpointsConsumed=0.000000

Both of those lines need to be zeroed out as in the example above for all compartments.


Making changes tothe lines above should get you back in business. As is standard operating procedure make a backup copy of all files before you change them in case of faulty info or mistakes in editing.
@Matilda: I never mentioned I had battle damage that I was trying to cheat my way out of. I simply moved my aft deck gun to forward and that hosed the boat. Now, from my crew page I show 2 deck guns, but neither have crew slots. From outside view I see only 1 deck gun but it can't be manned since there are NO crew slots.
....No battle damage...in fact, no damage of any sort, but a screwed up boat nun the less. thanks for your attempt!
__________________
First PC game was Microprose Silent Service. And I still have it. Does anyone else WitpAE?
rhohltjr is offline   Reply With Quote
Old 10-02-08, 07:57 AM   #9
doulos05
Planesman
 
Join Date: Sep 2008
Posts: 195
Downloads: 19
Uploads: 0
Default

If you're having difficulty figuring out which numbered folder is you, I've found how to get that in my research into the Crew Rotation program I'm working on (which could probably be made into a full-fledged save game editor given enough time, but I'm trying, at least at the beginning, to avoid feature creap so I can get one thing right at a time). Inside each folder is a file called ReplayInfo.rep. Open this file in Notepad, and you'll see a bunch of hexidecimal gibberish (I used python to print out what it actually said, and it's just that. Most likely, the zlib guess is correct, although I'm not quite good enough to sight-read zlib compressed files ). But, in the midst of that gibberish, Success! The format is as follows:

\xnnPlayer\xnn<Name of your save game>\xnn\xnn\xnn....\xnn`Z

(or something roughly approximate to that, I'm at work so I don't have it in front of me at the moment). In this, \xnn stands for a hexadecimal character. It won't show up that way unless you use something that understands hex, and Notepad doesn't. In Notepad, it shows up as spaces and boxes, maybe the occasional character. But "Player" and the name of the save-game shows up flawlessly every time. That way, you can be sure you're editing the correct saved game. FYI: I'm not sure what all that file is used for, the hex within it changed for reasons not immediately obvious to me from save game to save game. CHANGE THIS FILE AT YOUR OWN RISK.

@rhohltjr: Check the file called ActiveUserPlayerUnits.upc in your save game folder (verify you're in the correct game using the above method). On the Archerfish, the After and Forward Gun decks are compartment 7 and 8 respectively. Presumably that will be pretty close to the same on all the boats. So scroll down to Compartment 7 (you can search for "[UserPlayerUnit 1.Compartment 7]") and verify that the "NameDisplayable" value is "Aft Deck Gun Mount". Wherever you find the Aft Deck Gun Mount, the very next compartment is the Fore Deck Gun Mount. Once there, here's a few things to check.

1) Under [UserPlayerUnit 1.Compartment $.WeaponSlot 1] (where $ is the compartment where you don't want a gun), verify that the very last value (IDLinkWeaponLoaded) is set to NULL,NULL. If it's not, set it to that.

2) Make sure that "[UserPlayerUnit 1.Compartment $.CrewMemberSlotAdditionalRepository 1]" is one of the section headers (once more, $ is the compartment where you don't want the gun) and not [UserPlayerUnit 1.Compartment $.CrewMemberSlot 1]

3) Now check that the opposite is true for the compartment where you do want the gun. Check that IDLinkWeaponLoaded is set to something like 4in50calUS, NULL (I'm not sure what the second NULL is for, I haven't gotten that far into it). Also check that the format for the CrewMemberSlots matches those from neighboring compartments. I'd post the format here, but it's WAAAYY long, it's probably easier to save a game with a functional deck gun crew and copy/paste those sections over. Don't forget to change the Compartment number to match the correct compartment in your new game.
__________________
*While troubleshooting a printer at work
Me: "Do you want me to run the copies through again?"
Boss: "Hold on, let me go get the alcohol first.
Me:
doulos05 is offline   Reply With Quote
Old 10-02-08, 09:33 AM   #10
Matilda
Seaman
 
Join Date: Sep 2008
Posts: 37
Downloads: 57
Uploads: 0
Default Sry for misunderstanding

Sorry, I read this thread from top down and mistook your post as part of original thread author's question. However, all that aside, the changes you want to make are in the ActiveUserPlayerUnits.upc file as well. I've tested being able to swap deck gun from fore to aft and from single to double, with and without crew members in the slots. If you are interested in how to fix your save game just let me know. It takes me about 10 min to fix once I have some basic info from inside the file. Or I can try to show you what I am doing, and in that case it could take longer. Let me know how you want to handle it.
__________________
Matilda is offline   Reply With Quote
Old 10-02-08, 02:24 PM   #11
rhohltjr
Mate
 
Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
Thanks again.

Quote:
Originally Posted by Matilda
Sorry, I read this thread from top down and mistook your post as part of original thread author's question. However, all that aside, the changes you want to make are in the ActiveUserPlayerUnits.upc file as well. I've tested being able to swap deck gun from fore to aft and from single to double, with and without crew members in the slots. If you are interested in how to fix your save game just let me know. It takes me about 10 min to fix once I have some basic info from inside the file. Or I can try to show you what I am doing, and in that case it could take longer. Let me know how you want to handle it.


I appreciate the effort still. I am modded with RSRDC 1.4 which the author perhaps edited the boat type I am in now. The author of RSRDC 1.4 doesn't
support that old version anymore so the site says. Anyway, the boat type starts with a'T' but is not a Tench class. Perhaps it is another part of the code that is hosed where I can't correct this deck gun problem. I have looked into the save game(s), specifically ActiveUserPlayerUnits.upc and attempted to correct this but
the game just ignored my efforts. I do want to correct this ... I will look at what you 've suggested too,doulos05. Let you know what happens.
__________________
First PC game was Microprose Silent Service. And I still have it. Does anyone else WitpAE?
rhohltjr is offline   Reply With Quote
Old 10-02-08, 04:53 PM   #12
Matilda
Seaman
 
Join Date: Sep 2008
Posts: 37
Downloads: 57
Uploads: 0
Default OK

That's OK, as I said you choose what you want to do. It is a simple fix. The only reason I haven't posted it already is that the info is specific to your save game. Crew members names and stats are in that file and have to stay consistent. Good luck.
__________________
Matilda is offline   Reply With Quote
Old 10-02-08, 05:03 PM   #13
Raptor1
Navy Seal
 
Join Date: Jul 2007
Location: Stavka
Posts: 8,211
Downloads: 13
Uploads: 0
Default

Quote:
Originally Posted by rhohltjr
Anyway, the boat type starts with a'T' but is not a Tench class.
T...ambor?
__________________
Current Eastern Front status: Probable Victory
Raptor1 is offline   Reply With Quote
Old 10-02-08, 10:43 PM   #14
rhohltjr
Mate
 
Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
Default

Quote:
Originally Posted by Raptor1
Quote:
Originally Posted by rhohltjr
Anyway, the boat type starts with a'T' but is not a Tench class.
T...ambor?
Yeah. I think that's it.:hmm:
__________________
First PC game was Microprose Silent Service. And I still have it. Does anyone else WitpAE?
rhohltjr is offline   Reply With Quote
Old 10-03-08, 06:45 AM   #15
doulos05
Planesman
 
Join Date: Sep 2008
Posts: 195
Downloads: 19
Uploads: 0
Default

rhohltjr, any success?
__________________
*While troubleshooting a printer at work
Me: "Do you want me to run the copies through again?"
Boss: "Hold on, let me go get the alcohol first.
Me:
doulos05 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.