MaxT.dk
05-22-07, 06:11 PM
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.
//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,Impulseand
//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 :know:
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.
//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,Impulseand
//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 :know: