Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

Modding sub speed
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
Quaral



Joined: 30 Jun 2005
Posts: 6

PostPosted: Sat Sep 10, 2005 4:38 am    Post subject: Modding sub speed Reply with quote

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 Embarassed Thanks!
Back to top
View user's profile Send private message
Col7777



Joined: 01 Jun 2003
Posts: 1480
Location: Manchester UK

PostPosted: Sat Sep 10, 2005 4:45 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Quaral



Joined: 30 Jun 2005
Posts: 6

PostPosted: Sat Sep 10, 2005 7:15 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Col7777



Joined: 01 Jun 2003
Posts: 1480
Location: Manchester UK

PostPosted: Sat Sep 10, 2005 7:21 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Cdre Gibs



Joined: 27 Apr 2005
Posts: 742

PostPosted: Sat Sep 10, 2005 7:32 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Col7777



Joined: 01 Jun 2003
Posts: 1480
Location: Manchester UK

PostPosted: Sat Sep 10, 2005 8:15 am    Post subject: Reply with quote

Hmm... perhaps my speed reading is showing wrong since I did it.
Back to top
View user's profile Send private message Send e-mail
Quaral



Joined: 30 Jun 2005
Posts: 6

PostPosted: Sat Sep 10, 2005 8:49 am    Post subject: Reply with quote

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 Embarassed
Back to top
View user's profile Send private message
Cdre Gibs



Joined: 27 Apr 2005
Posts: 742

PostPosted: Sat Sep 10, 2005 9:15 am    Post subject: Reply with quote

sim, zon files are edited with a HEX editor, and even then it still looks like gobbly gook Smile

So dont stress that ur SIM file looks like the above in Notepad, its the wrong program.
Back to top
View user's profile Send private message
Quaral



Joined: 30 Jun 2005
Posts: 6

PostPosted: Sat Sep 10, 2005 5:16 pm    Post subject: One last question... Reply with quote

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!
Back to top
View user's profile Send private message
HundertzehnGustav



Joined: 14 Jun 2005
Posts: 351
Location: Lux, betw. G, B and F

PostPosted: Sat Sep 10, 2005 6:01 pm    Post subject: Reply with quote

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... Surprised
Back to top
View user's profile Send private message Send e-mail
Kpt. Lehmann



Joined: 25 Jul 2005
Posts: 1665
Location: Texas, USA

PostPosted: Sat Sep 10, 2005 6:17 pm    Post subject: Reply with quote

...As long as you are having fun!

... to quote "Tim the Toolman", "HO HO HO... MORE POWER!"
Back to top
View user's profile Send private message
Grayarea



Joined: 11 May 2005
Posts: 12

PostPosted: Tue Sep 13, 2005 8:03 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Echo



Joined: 10 Jan 2002
Posts: 32

PostPosted: Sat Sep 24, 2005 12:09 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Stavinsky



Joined: 10 Jul 2005
Posts: 53

PostPosted: Sun Sep 25, 2005 7:30 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Kalach



Joined: 08 Apr 2005
Posts: 461
Location: Australia

PostPosted: Sun Sep 25, 2005 9:07 pm    Post subject: Reply with quote

Stavinsky wrote:
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 Joking
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group