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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-22-07, 06:11 PM   #1
MaxT.dk
Rough night at Langtrees brothel
 
Join Date: Mar 2007
Posts: 480
Downloads: 0
Uploads: 0
[TEC] Torpedo tweaks for SH4 v1.2

Hey guys

I took like 1 hour today for looking at the torpedo tweaks made by nvdrifter. As many of you know, they do not work for SH4 v1.2 as they were made for SH4 v1.1.

Basically the structure of Torpedoes_US.sim is very simple (opened it in Hex WorkShop), but since I suck at math and programming, I couldn't complete the task entirely... But to proove you that it's easy here's 2 files.

Code:
//Mark 10 Torpedo .sim Tweak File.txt
// for SH4 v1.2 by MaxT.dk
// Game version for these changes.
Version=1.5
// Path to the file we are changing.
Path=data\Library\Torpedoes_US.sim
[1]
DropDownName=Mark 10 Main
search,depth,1,single,>2,Depth
search,max_dive_angle,1,single,>2,Max Dive Angle


[2]
DropDownName=Speeds
search,speed,1,single,>2,Speed
search,range,1,single,>2,Range
search,max_turn_angle,1,single,>2,Max Turn Angle


[3]
DropDownName=Detonating
search,impulse,1,single,>2,Impulse
and
Code:
//Mark 14 Torpedo .sim Tweak File.txt
// for SH4 v1.2 by MaxT.dk
// Game version for these changes.
Version=1.5
// Path to the file we are changing.
Path=data\Library\Torpedoes_US.sim
[1]
DropDownName=Mark 14 Main
search,depth,2,single,>2,Depth
search,max_dive_angle,2,single,>2,Max Dive Angle


[2]
DropDownName=Speeds
search,speed,3,single,>2,Speed
search,range,3,single,>2,Range
search,max_turn_angle,2,single,>2,Max Turn Angle


[3]
DropDownName=Detonating
search,impulse,2,single,>2,Impulse
Now we're not talking how to use those files (this is a tech.discussion for those with some knowledge), but load these 2 files in minitweaker and see the magic.

As you can see it works. But only a small part of all of the variables is available for editing. Why is that?

That's because I suck at programming as I've said earlier... Let me explain...

As I've learned from other tweak files, you can use something like this:
search,bla,2,single,>2,BLA
search,bla,2,integer,>2,BLA
absolute,single,4C2,BLA
absolute,long,4C2,BLA
absolute,byte,4C2,BLA


Again, I'm not explaining what is what (there's help to get in the minitweaker guide and there's lots of help in the tweak files itself at the top (open for example NSS_Balao_zon.txt tweak file)).

So that's where I'm stuck as I don't get all these long, byte, integer etc (and I really don't want to learn it, I'm a webdesigner by nature and profession). If any of you understand that stuff, don't explain it to me, but edit one of these files where you can read the next 2 variables for splash and dud_effect and repost the code. I will then look into it and I'm sure that I'll figure the rest myself and than I'll be able to do the tweak files for all the torpedoes for the whole SH4 modding community

Share the knowledge
__________________

http://maxt.dk/archives/2007/03/22/s...nter-4-cheats/
Get KillerSub MOD and bring the Hell back to Earth! The FUN way to play SH4! Now with Rail Guns!

Last edited by MaxT.dk; 05-22-07 at 06:24 PM.
MaxT.dk is offline   Reply With Quote
 


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 09:05 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.