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 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-16-09, 11:49 AM   #1
Igor
Nub
 
Join Date: Feb 2004
Posts: 2
Downloads: 16
Uploads: 0
Default Modding damage

Hi, i have SH4 and the u-boat missions expansion, and i have a question regarding modding the damage model in the game. I want to change it so that no system can be "destroyed" (as in impossible to repair). I still want everything to be able to be damaged, but not destroyed so i can't repair it anymore. Do i simply need to change all the "Destructible=yes" lines in the zones.cfg file to "destructible=no"? Or is there something else involved? Because i tried changing them all to "no" once and my systems could still be destroyed. Second, is there some way to mod the game so you can repair your hull at sea? Thanks for any answers.
Igor is offline   Reply With Quote
Old 05-17-09, 07:23 PM   #2
ReallyDedPoet
Canadian Wolf
 
ReallyDedPoet's Avatar
 
Join Date: Jul 2006
Location: The one and only East Coast
Posts: 10,775
Downloads: 946
Uploads: 5


Default

Bump
__________________

Back in the Day



ReallyDedPoet is offline   Reply With Quote
Old 05-19-09, 07:21 AM   #3
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default

Yes , I agree with this modification , for example if the rudder is destroyed the game is automatically finished because is not possible to steer the sub increasing or decreasing the speed of both engines independently
__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 05-20-09, 02:04 AM   #4
Highbury
The Old Man
 
Join Date: Oct 2005
Location: 51.557, -0.102
Posts: 1,311
Downloads: 174
Uploads: 0
Default

I don't know how to edit the values but the file would seem to be:

Data\UPCData\UPCUnitsData\UnitParts*****.UPC

In there are these values:

Quote:
[UnitPart 1.Compartment 1.EquipmentSlot 1]
ID= SurfRadarAntenna
NameDisplayable= Surface Radar Antenna
Type=NULL
AcceptedTypes= NULL
UserCustomizable=Yes
IDLinkEquipmentIntervalDefault1= NULL, NULL, NULL
ExternalNodeName3D= R01
ExternalDamageZoneTypeID3D= -1
There are SEVERAL entries like that for each boat. Also there is this at the top of the file:

Quote:
ExternalDamageZoneTypeID3D= 31
DamageDescription1= NULL, 0, 0.2, 0, 1, 1, Minor damage, 0, 0, NULL, 0, 0.2, 0.2
DamageDescription2= NULL, 0.2, 0.6, 0, 1, 1, Medium damage, 0, 0, NULL, 0, 0.2, 0.5
DamageDescription3= NULL, 0.6, 1, 0, 1, 1, Heavy damage, 0, 0, NULL, 0, 0.2, 1
I am not sure what it all means but that seems to be it. If you can figure it out, great! If not I am sure someone who understand it all will chip in.
Highbury is offline   Reply With Quote
Old 05-20-09, 02:29 AM   #5
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default

thank you for the reply , is necessary to spend time to understand how those numbers affect the damage behaviour of differents areas of the sub
__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 05-20-09, 05:01 PM   #6
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 356
Downloads: 40
Uploads: 0
Default

Here are the descriptors for the numbers;

;DamageDescription1= Taken_DamageType, MinDamage, MaxDamage, MinMaintenance, MaxMaintenance, chancefactor, Message, Spawned_damage_HP, Spawned_damage_AP, Spawned_Damage_Type, EfficiencyReduction, repair_skill, repairtime_in_hours

To make an item repairable, the rpair skill must be less than one at damage level =1 - like so;

DamageDescription1= NULL,0,0.1,0,0,1,Minor Leak,0,0,NULL,0.1,0.2,0.5
DamageDescription2= NULL,0.1,0.2,0,0,1,Minor Leak,0,0,NULL,0.2,0.2,1
DamageDescription3= NULL,0.2,0.3,0,0,1,Large hole,0,0,NULL,0.3,0.2,1.5
DamageDescription4= NULL,0.3,0.4,0,0,1,Large hole,0,0,NULL,0.4,0.5,2
DamageDescription5= NULL,0.4,0.5,0,0,1,Large hole,0,0,NULL,0.5,0.5,2.5
DamageDescription6= NULL,0.5,0.6,0,0,1,Wall breached,0,0,NULL,0.6,0.5,5
DamageDescription7= NULL,0.6,0.7,0,0,1,Wall breached,0,0,NULL,0.7,0.5,10
DamageDescription8= NULL,0.7,0.8,0,0,1,Wall breached,0,0,NULL,0.8,0.7,15
DamageDescription9= NULL,0.8,0.9,0,0,1,Wall breached,0,0,NULL,0.9,0.7,20
DamageDescription10= NULL,0.9,1,0,0,1,Wall breached,0,0,NULL,1,1,1000000 <<<< this last line means that a repair skill of 1 will take 1000000 hours to repair. To make it repairable, change repair skill to less than one and give a reasonable repair time;

DamageDescription10= NULL,0.9,1,0,0,1,Wall breached,0,0,NULL,1,0.2,2

There are 10 damadescriptors in the above due to me using a technique recommended to me by Observer - basically if the damage descriptors aren't defined in 10% increments - the damage engine starts to do strange things (like not keeping track or totalling up damage properly - basically I couldn't get stuff to stop working when destroyed until I used the above).

As well as doing the above, you may have to add a person to the crew with repair special ability - this enables the repair of destroyed items. I've never been interested in repairing detroyed items - so I can't vouch for the above doing what you want ... but it should in theory.
polyfiller is offline   Reply With Quote
Old 05-20-09, 06:28 PM   #7
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default

Hello. Thank you for the help , can you tell me please if your previous post represent the files that control/manipulate the damage of the entire/whole Hull or just a section/compartment of the submarine ?, thank you very much for the help
__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 05-23-09, 08:50 AM   #8
Igor
Nub
 
Join Date: Feb 2004
Posts: 2
Downloads: 16
Uploads: 0
Default

Most excellent. Hopefully the instructions posted in this thread will allow you to completely repair the hull as well, and not just destroyed systems. Now then, all i need to do is get cracking at those files.
Igor is offline   Reply With Quote
Old 05-29-09, 11:44 PM   #9
Stormende
Soundman
 
Join Date: May 2009
Location: México, DF.
Posts: 146
Downloads: 716
Uploads: 1
Default THere is another way

Enable the special abilities for the american campaign and reload your game - while in port - until you get the commander that will fix even destroyed items. It is easier, I think.

Stormende 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:25 PM.


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