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

Reply
 
Thread Tools Display Modes
Old 04-22-07, 09:15 AM   #1
SheepOnDrug$
Watch
 
Join Date: Mar 2007
Posts: 15
Downloads: 0
Uploads: 0
Default [TEC] Torpedo tweak file

After patching SHIV to 1.2 the tweak file for the us_torpedo.sim doesnt seem to work no more ... is a new tweak file required or is there another way to fiddle with the torp speeds ?
i have no clue how to hex edit anything btw

all other tweak files work just fine except for the torpedo sim file
SheepOnDrug$ is offline   Reply With Quote
Old 04-22-07, 10:28 AM   #2
CCIP
Navy Seal
 
Join Date: Apr 2005
Location: Waterloo, Canada
Posts: 8,700
Downloads: 29
Uploads: 2


Default

Oh how I still itch for a tweak file for this that'd include all the torpedo failure settings

I can probably decode the basic values and adapt nvdrifter's old tweak to 1.2, but I'd really wish someone more experienced took a look at the torpedo failure values as well...
__________________

There are only forty people in the world and five of them are hamburgers.
-Don Van Vliet
(aka Captain Beefheart)
CCIP is offline   Reply With Quote
Old 04-22-07, 10:32 AM   #3
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Is there a proper tut for creating Tweak Files?...if not maybe nvdrifter or some veteran SH3 guy could do one when they have a min of spare time. Not a request, just asking in all friendliness

For example how should I know that I need to search for "4,single,>2" in this example
Quote:
Examples of search line, used when searching for a variable:
//search,WindCoef,4,single,>2,Wind Coefficient
// Description: Look for 4th occurrance of the term WindCoef. The floating point single variable starts at 2 bytes past the end of the search term. Name the list item Wind Coefficient.
I used to do Hacks/Trainers for BF1942 so I know a little bit of hexing, more using OLLDBG, Tsearch and VB6. But I am very rusty as i have not done any of this stuff for years.
__________________
CaptainCox is offline   Reply With Quote
Old 04-22-07, 10:41 AM   #4
CCIP
Navy Seal
 
Join Date: Apr 2005
Location: Waterloo, Canada
Posts: 8,700
Downloads: 29
Uploads: 2


Default

In fact there is!

TimeTraveller wrote one and has it included in the MiniTweaker program folder (it's called hex_editing.htm)
__________________

There are only forty people in the world and five of them are hamburgers.
-Don Van Vliet
(aka Captain Beefheart)
CCIP is offline   Reply With Quote
Old 04-22-07, 10:42 AM   #5
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Cheers man will have a look.
__________________
CaptainCox is offline   Reply With Quote
Old 04-22-07, 11:49 AM   #6
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

OK I think I need one thing explained and i am set to do this stuff.

OK here goes, example from the TUT:

Quote:
So, to code a sample line in the Tweaker program text file to locate this Crash Depth
value, we would code this:

absolute,single,1BA3,Crash Depth

All that means is look for a single precision float value at location 1BA3 and name it
Crash Depth in the program listing. Pretty simple. Run the program and see the value
displayed. If the value looks weird, it probably is a Long value rather than a Single,
so you can always substritue the word "long" for "single" in the line and try it that
way. No harm is done either way because you won't have changed anything (yet). Once you
get a readable (and reasonable) value, you can be fairly certain that you have got the
right idea.


Where does the "1BA3" value come from. I can understand the 1B...but (and I think its how you count hex here) get A3?
__________________
CaptainCox is offline   Reply With Quote
Old 04-22-07, 01:32 PM   #7
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Tell me if I am wrong here but is this the way its done?

The line in the code was:
001ba0 74 68 00 66
Line name 0 beginning of the value

As 0 don't count and as 66 is the 3rd byte in the line is it then like this.

1ba3
Line 1st byte in the value is in the 3rd hex

??? or am I totally lost here.
__________________
CaptainCox is offline   Reply With Quote
Old 04-22-07, 09:57 PM   #8
nvdrifter
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I want to make new torpedo tweak files, but I am reluctant to do so until the final SH4 patch. I don't really feel like redoing tweak files each time a new patch is released. I am sure other modders here can appreiciate what I am saying.
  Reply With Quote
Old 04-22-07, 09:59 PM   #9
nvdrifter
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by CCIP
Oh how I still itch for a tweak file for this that'd include all the torpedo failure settings

I can probably decode the basic values and adapt nvdrifter's old tweak to 1.2, but I'd really wish someone more experienced took a look at the torpedo failure values as well...
I thought my previous torpedo tweak file did included all of the torp failure settings. Did I miss some?
  Reply With Quote
Old 04-22-07, 10:00 PM   #10
CCIP
Navy Seal
 
Join Date: Apr 2005
Location: Waterloo, Canada
Posts: 8,700
Downloads: 29
Uploads: 2


Default

Quote:
Originally Posted by nvdrifter
I want to make new torpedo tweak files, but I am reluctant to do so until the final SH4 patch. I don't really feel like redoing tweak files each time a new patch is released. I am sure other modders here can appreiciate what I am saying.
Yea, I see what ya mean. A bit of a bummer for some of us though, admittably. I may get around to it myself sometime again, but unfortunately hex stuff is not as idiot-proof as it needs to be for me :p
__________________

There are only forty people in the world and five of them are hamburgers.
-Don Van Vliet
(aka Captain Beefheart)
CCIP is offline   Reply With Quote
Old 04-22-07, 11:57 PM   #11
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Quote:
Originally Posted by CaptainCox
Tell me if I am wrong here but is this the way its done?

The line in the code was:
001ba0 74 68 00 66
Line name 0 beginning of the value

As 0 don't count and as 66 is the 3rd byte in the line is it then like this.

1ba3
Line 1st byte in the value is in the 3rd hex

??? or am I totally lost here.
Nobody??? ... huhuhu
__________________
CaptainCox is offline   Reply With Quote
Old 04-23-07, 01:00 AM   #12
nvdrifter
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by CCIP
Quote:
Originally Posted by nvdrifter
I want to make new torpedo tweak files, but I am reluctant to do so until the final SH4 patch. I don't really feel like redoing tweak files each time a new patch is released. I am sure other modders here can appreiciate what I am saying.
Yea, I see what ya mean. A bit of a bummer for some of us though, admittably. I may get around to it myself sometime again, but unfortunately hex stuff is not as idiot-proof as it needs to be for me :p
Well, I decided to go ahead and update the torpedo tweak files so they will work with v1.2. Should be released soon. Hopefully the dev team won't add any more lines of code to the torpedoes.sim file in later patches.
  Reply With Quote
Old 04-23-07, 01:02 AM   #13
nvdrifter
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by CaptainCox
Quote:
Originally Posted by CaptainCox
Tell me if I am wrong here but is this the way its done?

The line in the code was:
001ba0 74 68 00 66
Line name 0 beginning of the value

As 0 don't count and as 66 is the 3rd byte in the line is it then like this.

1ba3
Line 1st byte in the value is in the 3rd hex

??? or am I totally lost here.
Nobody??? ... huhuhu
I really have no idea what you are asking.
  Reply With Quote
Old 04-23-07, 01:11 AM   #14
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Well to put it plainly. In the TUT by timetraveller, he has the example of
getting "absolute,single,1BA3,Crash Depth" to get the value for "Crash Depth".in the "tweak file" My question is basically as to how he gets the "3" in 1BA3. I posted the example some posts up.

I understand the 1BA, but as to the 3?. That's what I am asking in my previous post.

I am sure its super simple. My thinking was that as "66" is the first hex showing the value for "Crash Depth" and its the 3rd hex on line 1BA the result would be "1BA3"

Is that correct?
__________________

Last edited by CaptainCox; 04-23-07 at 01:29 AM.
CaptainCox is offline   Reply With Quote
Old 04-23-07, 01:33 AM   #15
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Absolute means you are going to a specific address.
In this case Hex address 1BA3.

There you are looking at a SINGLE value.

Better to do tweaks with the search function.

That way you don't need to change the file for every patch.
  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 03:11 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.