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 04-09-07, 11:50 PM   #1
dizza
Watch
 
Join Date: Sep 2006
Location: Southern California
Posts: 19
Downloads: 0
Uploads: 0
Default [TEC] Saved Game Editing?

Anyone figure out a way to fix damage on a sub via a saved game? I encountered a large task force while going home to port after my mission. 2 Battleships, 2-3 Heavy Cruisers and a few light Cruisers with a mix of DD's. They took out my diesels and I'm dead in the water. I can't go to periscope depth, because I have a huge hole in my pressure hull. Any ideas?

I really want a shot at the rest of them.

-d
dizza is offline   Reply With Quote
Old 04-11-07, 01:34 PM   #2
dizza
Watch
 
Join Date: Sep 2006
Location: Southern California
Posts: 19
Downloads: 0
Uploads: 0
Default

Anyone have any suggestions or have done this type of thing successfully? I see two sets of the same files, but in two different directories. I can edit each one indentically but they have no effect.

-d
dizza is offline   Reply With Quote
Old 04-11-07, 10:55 PM   #3
Jungman
Samurai Navy
 
Join Date: Apr 2005
Location: Iowa, USA
Posts: 596
Downloads: 0
Uploads: 0
Default

See the thread about Zones.cfg [TEC] He speaks about looking at savegames. You could edit those files back to normal I would assume. 100% repaired.

http://www.subsim.com/radioroom/show...ight=zones.cfg

ActiveUserPlayerUnits.upc
Jungman is offline   Reply With Quote
Old 04-12-07, 01:30 AM   #4
dizza
Watch
 
Join Date: Sep 2006
Location: Southern California
Posts: 19
Downloads: 0
Uploads: 0
Default

I don't see zones.cfg under the saved games directory under My Documents. I do see the ActiveUserPlayerUnits.upc, which I was trying to edit for my saved game. I found entries such as the following:

[UserPlayerUnit 1.Compartment 2.EquipmentSlot 2.Equipment]
ID=GatoDieselEngine
NameDisplayable=Diesel Engine
EquipmentInterval=1900-01-01, 1999-12-31
EquipmentSlotType=GatoDEngine
ExternalLinkName3D=NULL
FunctionalType=EqFTypeEngineDiesel
Hitpoints=100.000000
EfficiencyHumanFactor=0.570000
EfficiencyMechanicFactor=1.000000
Efficiency=0.570000
Damage=1.000000
DamageHitpointsConsumed=0.000000
RemainingRepairTime=0000-00-00 00:00:38
DamageDescription1=NULL,0,0.2,0,1,1,small malfunction,0,0,NULL,0.3,0.4,4.76351
DamageDescription2=NULL,0.2,0.6,0,1,1,Misaligned Axis,0,0,NULL,0.5,0.4,22.4817
DamageDescription3=NULL,0.6,1,0,1,1,fuse blown,0,0,NULL,1,0.2,3.84624

I've messed with various settings in there for the different components, but have yet to be successful in restoring the destroyed engines on my boat.

-d
dizza is offline   Reply With Quote
Old 04-12-07, 06:50 AM   #5
U-Bones
Grey Wolf
 
Join Date: Mar 2005
Location: Treading Water
Posts: 847
Downloads: 56
Uploads: 0
Default

Quote:
Originally Posted by dizza
I don't see zones.cfg under the saved games directory under My Documents. I do see the ActiveUserPlayerUnits.upc, which I was trying to edit for my saved game. I found entries such as the following:

[UserPlayerUnit 1.Compartment 2.EquipmentSlot 2.Equipment]
ID=GatoDieselEngine
NameDisplayable=Diesel Engine
EquipmentInterval=1900-01-01, 1999-12-31
EquipmentSlotType=GatoDEngine
ExternalLinkName3D=NULL
FunctionalType=EqFTypeEngineDiesel
Hitpoints=100.000000
EfficiencyHumanFactor=0.570000
EfficiencyMechanicFactor=1.000000
Efficiency=0.570000
Damage=1.000000
DamageHitpointsConsumed=0.000000
RemainingRepairTime=0000-00-00 00:00:38
DamageDescription1=NULL,0,0.2,0,1,1,small malfunction,0,0,NULL,0.3,0.4,4.76351
DamageDescription2=NULL,0.2,0.6,0,1,1,Misaligned Axis,0,0,NULL,0.5,0.4,22.4817
DamageDescription3=NULL,0.6,1,0,1,1,fuse blown,0,0,NULL,1,0.2,3.84624

I've messed with various settings in there for the different components, but have yet to be successful in restoring the destroyed engines on my boat.

-d
zones.cfg has nothing to do with it, this is the file I would have tried too, but All my work has just been reading it... Apparently this is not the only place the state is saved - there are several binary files saved as well. This file is probably more for debugging than anything else. Good luck.
U-Bones is offline   Reply With Quote
Old 04-12-07, 11:44 PM   #6
dizza
Watch
 
Join Date: Sep 2006
Location: Southern California
Posts: 19
Downloads: 0
Uploads: 0
Default

Any suggestion on how to view the binary files easily? I realize that viewing it with notepad or wordpad won't work.

-d
dizza is offline   Reply With Quote
Old 04-12-07, 11:59 PM   #7
U-Bones
Grey Wolf
 
Join Date: Mar 2005
Location: Treading Water
Posts: 847
Downloads: 56
Uploads: 0
Default

Quote:
Originally Posted by dizza
Any suggestion on how to view the binary files easily? I realize that viewing it with notepad or wordpad won't work.

-d
I think ncdrifter has a hex editor in his utility pack, or you can google one up. Really though, unless you know the "key" to how they structure the files, it will simply be meaningless garbage.

IMO, just make it a lesson learned to save more often if you get so bent about wanting to replay a situation.
U-Bones 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 05:21 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.