View Full Version : Modding sub speed
Hi, I'm wondering if it is possible to modify a submarine's top speed, and if so how? I've searched the forums and couldn't find anything, but if I've missed a thread with this in it I'd appreciate a link :oops: Thanks!
Col7777
09-10-05, 04:45 AM
Yes you can, go to DATA - SUBMARINE - folder then open the sub files you want to edit (Make a back up first recommended) then open the CFG file for the sub then edit like this:
[Unit]
ClassName=SSTypeIXB
HumanPlayable=YES
Interior=data/Interior/NSS_Uboat9/NSS_Uboat9
UnitType=200
MaxSpeed=19.3 ;18.2
MaxSpeedSubmerged=8.4 ;7.3
Length=76.9
Width=6
RenownAwarded=140
NOTE; I always put the original settings behind a semicolon in case I want to revert back.
Thanks for the reply! I tried that, and it doesn't seem to make any difference. It could just be me doing something wrong. What I've done is this:
[Unit]
ClassName=SSTypeIIA
HumanPlayable=YES
Interior=data/Interior/NSS_Uboat2/NSS_Uboat2
UnitType=200
MaxSpeed=39.0
MaxSpeedSubmerged=21
Length=40.9
Width=4.1
RenownAwarded=110
Not that I want to actually go that fast, but I wanted to be able to see the difference. I can still only move at 13 knots. Can you see any mistakes I've made? Thanks again!
Col7777
09-10-05, 07:21 AM
My fault I forgot a bit more further down the cfg, very sorry:
[EngineProperties]
AllStop=0.00
AheadSlow=0.50 ;0.40
AheadOneThird=0.67 ;0.57
AheadStandard=0.90 ;0.80
AheadFull=1.00 ;0.94
AheadFlank=1.05 ;1.00
BackSlow=-0.27 ;-0.26
BackStandard=-0.50 ;-0.40
BackFull=-0.63 ;-0.53
BackEmergency=-0.76 ;-0.66
Cdre Gibs
09-10-05, 07:32 AM
Incorrect, the only way to make a sub go faster underwater is to in fact edit the subs SIM file, The stated above CFG files lines
[Unit]
ClassName=SSTypeIXB
HumanPlayable=YES
Interior=data/Interior/NSS_Uboat9/NSS_Uboat9
UnitType=200
MaxSpeed=19.3 ;18.2
MaxSpeedSubmerged=8.4 ;7.3
Length=76.9
Width=6
RenownAwarded=140
are the lines displayed in the museum as the info blurp on the ship/sub that u are currently viewing at that time.
Col7777
09-10-05, 08:15 AM
Hmm... perhaps my speed reading is showing wrong since I did it.
Well, I edited the rest of the config file and it doesn't seem to make a difference. When I press 5 to go flank, the signal stays on slow but the sub goes at 13; when I click on the dial at flank, the sub stays at 13.
With editing the sim file, is Notepad a suitable program? I opened the IIA's .sim file and got the below:
¤
mq è 2 cmihalache Created/Modified using Kashmir
ÿÿÿÿ! HebÁ˜ ܉õÂé¨@, cmdr_AIHumanSub < HebÁ˜ ܉ ( $ cmdr_AIHumanSub cmdr_AIMerchant
ÿÿÿÿ è–MóŽ»–Œ% {¨È obj_Turret £ è–MóŽ»– ‹ obj_Turret ) Debug show_restr restr_dist HC Train Barrel M Traverse min max ´C
speed A anm_train anm_human N Elevation min ´Â max ´B
speed A anm_barel anm_human • Fire D
trav_min HC
trav_max C
elev_min ´Â
elev_max ´BD
trav_min C
trav_max HC
elev_min ðA
elev_max ´B
ÿÿÿÿ >Óíé= ܉õÂé¨@, unit_Submarine ¼ >Óíé= ܉ ¨ ¤ unit_Submarine unit_Ship obj_Hydro " Debug params GC SD mass gc_height 33ó?
fr_ratio ? put_on_water M Surfaced displacement ~C draught 33s@ drag LR š™™> UD ÍÌÌ=N Submerged displacement €—C draught Í̬@ drag LR ? UD š™>˜ Propulsion C Propellers NSS_Uboat2A_PROPELLER L NSS_Uboat2A_PROPELLER R max_speed PA max_force eng_power /D eng_rpm ðCN Rudders # Objects NSS_Uboat2A_RUDER drag ÍÌL= prop_fact ÍÌL=X Front_diveplane % Objects NSS_Uboat2A_PLANE F drag ÍÌÌ< prop_fact W Rear_diveplane % Objects NSS_Uboat2A_PLANE B drag ÍÌÌ< prop_fact ÍÌL=A E_propulsion max_speed ÍÌÜ@ eng_power ´C eng_rpm ‘CZ Ranges % Surfaced
miles @ƒD
knots @A& Submerged
miles B
knots €@" Ballast ManBT_flood_speed €»E
ÿÿÿÿ# &8ªËeA܉õÂé¨@, wpn_SubTorpedoSys ½ &8ªËeA܉ © ¥ wpn_SubTorpedoSys auto_open eject_time š™™? eject_effect Œü^S+a Tubes X door NSS_Uboat2A_IDoor_anim02 " ext_door NSS_Uboat2A_EDoor_anim02 torpedo X door NSS_Uboat2A_IDoor_anim01 " ext_door NSS_Uboat2A_EDoor_anim01 torpedo Y door NSS_Uboat2A_IDoor_anim03 # ext_door NSS_Uboat2A_EDoor_anim 03 torpedo ; Rooms » Fore Storage load_time Ãõ¨?r Aft X Storage load_time Ãõ¨?ö External s Fore X Storage xfer_time 33Ó@r Aft X Storage xfer_time 33Ó@
I'm not sure if it's meant to look like that, but it's a clean install patched to 1.4b so it shouldn't be corrupted. What part of it should I change? It might be obvious, but if so I'm missing it :oops:
Cdre Gibs
09-10-05, 09:15 AM
sim, zon files are edited with a HEX editor, and even then it still looks like gobbly gook :)
So dont stress that ur SIM file looks like the above in Notepad, its the wrong program.
Thanks to both of you for your help. I have a hex editor now, but it's still puzzling me as to what part of the file I should change :doh: . Does anyone know? Thanks again!
HundertzehnGustav
09-10-05, 06:01 PM
DIFFERENT
i jhust edit the basic cfg file... about tree quartes down the list. there is a BOOST setting for the supercchargers/engine upgrade thinngs
but IIRC that uses a LOT more fuel, but since i play at 47% realism... :o
Kpt. Lehmann
09-10-05, 06:17 PM
...As long as you are having fun!
... to quote "Tim the Toolman", "HO HO HO... MORE POWER!"
Grayarea
09-13-05, 08:03 AM
I had a look at altering acceleration a while ago and you can also affect top speed.
Look at this thread;
http://www.subsim.com/phpBB/viewtopic.php?t=32169&highlight=
Later,
Grayarea
ive been tweaking the speed of my subs using the engine upgrade boost setting in the cfg file with no problems but the xxi doesnt make use a super/turbo charging sooo. it seems that i will have to edit the .sim file to make changes to the actual uboat speeds, no problem except hex editing and i dot get along very well. i have made some attempts, knowing what the default max speed is ive opened the .sim file and found what i believe to be the max speed entry but i cant seem to find that actual setting/figure needing to be changed. max_speed blank blank blank what am i trying to do here... any help would be nice, perhaps someone knows of a nice little hex editor or setting that will make editing such files as easy as editing a .cfg
Stavinsky
09-25-05, 07:30 PM
Hi,
If you want to play around with your speed you can
use the excellent tools created by Timetraveller
(Sh3 Inspector).
Or if you prefer learning how it work, you have to know that
the speed is a floating point value converted to Hexadecimal.
There you can find a nice program that help you doing the
conversion from Hexa to Floating point, or vice-versa.
http://www.61131.com/bits/FPconvert.zip
After that you have to find the text "max_speed" in your
".sim" file for the sub you want to mod.
Then look at the hex value after the word.
For exemple the VII-C sub is supposed to reach 17.2 knots
surfaced and 7.6 knots under water.
If you put the 17.2 knots in the Floating point translator
you have something looking like
"999A" "4189" in the bottom "Hex Words 32 bit float".
There we look at the 4189 value, it's the big part of it.
(4189 translated into floating point value = 17.125 )
Now you take a look in your file just after the max_speed and
you can spot the value "8841" .
That's the value you are seeking for (4188 translate into 17.0)
You have to look and try a little but every time the speed
value is stored in the file right after the "max_speed" text.
If you get lower you find another "max_speed" usualy after a
"E_propulsion" text. That's the speed under water.
If we take the VII-C case, you find the value
"3333" "40F3"
There the 40F3 is the part we are interested in. As it
translate into "7.59375" in floating point unit.
Now you only have to do some trying, but don't overdo it.
Higher speed don't come without a cost. When you
get higher speed, you have more troubles stabilizing your sub
or you can have "surprises" when diving (like overshooting
the diving depth you have asked for, or crashing to the
bottom because of too high speed).
In hope it helps.
Stavinsky
Now you only have to do some trying, but don't overdo it. Higher speed don't come without a cost. When you
get higher speed, you have more troubles stabilizing your sub
or you can have "surprises" when diving (like overshooting
the diving depth you have asked for, or crashing to the
bottom because of too high speed).
Stavinsky
:hmm:
I wonder If I can fly a type IX over a battleship :-j
Cdre Gibs
09-25-05, 11:54 PM
Already done so, jumped an entire convoy in a Type VIIC :o
Very impractical tho, but fun. :D
kptn_kaiserhof
09-27-05, 04:02 AM
is it possible to change alter torpedo speed
if u have the awnser pm me
:damn: :damn:
MSpencer
09-27-05, 06:48 AM
Could this be the solution to cruise missiles? We can fire torpedoes from an angle near surfacing, they fly over the entire task force, and nail the Nelson in the superstructure.
So now we know exactly what Wernher von Braun was working on...
:lol:
Deep-Six
09-27-05, 11:55 AM
Could this be the solution to cruise missiles? We can fire torpedoes from an angle near surfacing, they fly over the entire task force, and nail the Nelson in the superstructure.
So now we know exactly what Wernher von Braun was working on...
:lol:
Dont give these guys anymore crazy ideas.
The next thing you know you will be able to launch eels from the air
like a torpedo-bomber. :o
MSpencer
09-27-05, 05:05 PM
Well considering someone was trying to modify the baseline speed of a Type IIA to over that of a Seawolf class...
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.