![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
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." |
![]() |
![]() |
![]() |
#2 |
Nub
![]() Join Date: Jul 2008
Posts: 3
Downloads: 0
Uploads: 0
|
![]()
I'dlike to know this also, so bump!
|
![]() |
![]() |
![]() |
#3 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
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.
|
![]() |
![]() |
#4 | |
Mate
![]() Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
|
Quote:
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) ![]() ![]()
__________________
First PC game was Microprose Silent Service. And I still have it. ![]() |
|
![]() |
![]() |
![]() |
#5 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
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. |
![]() |
![]() |
#6 | |
Mate
![]() Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
|
Shucks.
Quote:
awarded a newer boat? If so then I might as well start over with a new career ![]() ![]()
__________________
First PC game was Microprose Silent Service. And I still have it. ![]() |
|
![]() |
![]() |
![]() |
#7 |
Seaman
![]() Join Date: Sep 2008
Posts: 37
Downloads: 57
Uploads: 0
|
![]()
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.
__________________
![]() |
![]() |
![]() |
![]() |
#8 | |
Mate
![]() Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
|
Quote:
....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. ![]() |
|
![]() |
![]() |
![]() |
#9 |
Planesman
![]() Join Date: Sep 2008
Posts: 195
Downloads: 19
Uploads: 0
|
![]()
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
![]() \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: ![]() |
![]() |
![]() |
![]() |
#10 |
Seaman
![]() Join Date: Sep 2008
Posts: 37
Downloads: 57
Uploads: 0
|
![]()
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.
__________________
![]() |
![]() |
![]() |
![]() |
#11 | |
Mate
![]() Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
|
Thanks again.
Quote:
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. ![]() |
|
![]() |
![]() |
![]() |
#12 |
Seaman
![]() Join Date: Sep 2008
Posts: 37
Downloads: 57
Uploads: 0
|
![]()
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.
__________________
![]() |
![]() |
![]() |
![]() |
#13 | |
Navy Seal
![]() Join Date: Jul 2007
Location: Stavka
Posts: 8,211
Downloads: 13
Uploads: 0
|
![]() Quote:
__________________
Current Eastern Front status: Probable Victory |
|
![]() |
![]() |
![]() |
#14 | ||
Mate
![]() Join Date: Mar 2007
Location: Fort Worth, Texas
Posts: 56
Downloads: 117
Uploads: 0
|
![]() Quote:
__________________
First PC game was Microprose Silent Service. And I still have it. ![]() |
||
![]() |
![]() |
![]() |
#15 |
Planesman
![]() Join Date: Sep 2008
Posts: 195
Downloads: 19
Uploads: 0
|
![]()
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: ![]() |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|