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-23-07, 08:02 AM   #4
U-Bones
Grey Wolf
 
Join Date: Mar 2005
Location: Treading Water
Posts: 847
Downloads: 56
Uploads: 0
Default

This is what I do when I want to look at a new variable and am unsure what it contains. Make a seperate dropdown, focus on the data, repeat it for every type. then you can look at the data and see what looks sane. Also, when adding new variables, there is precendent for storing multiple values at offsets other than 2, adding more fog. See below.

This snippet is from my cameras.dat.txt tweak file. The SH3 tweak file had two identically named vars (SubFolow) under FreeCam that according to the sh3 tweak file, contained multiple values each. This section looked at the first SubFolow with each data type, first with the standard offset of 2 bytes and then with the historic sh3 offsets of 14 and 18 for the two values.

// to figure out how these were used
// in sh3 they supposedly each held two longs at 14 and 18 byte offsets
// possible wrong values or offsets ?

[57]
Dropdownname=TEST FreeCam 1stSubFolow Unknown
absolute,single,63f,SubFolow1 Std Offset Single
absolute,double,63f,SubFolow1 Std Offset Double
absolute,long,63f,SubFolow1 Std Offset Long
absolute,integer,63f,SubFolow1 Std Offset Integer
absolute,byte,63f,SubFolow1 Std Offset Byte
absolute,single,64b,SubFolow1a Offset 14 Single
absolute,double,64b,SubFolow1a Offset 14 Double
absolute,long,64b,SubFolow1a Offset 14 Long
absolute,integer,64b,SubFolow1a Offset 14 Integer
absolute,byte,64b,SubFolow1a Offset 14 Byte
absolute,single,64f,SubFolow1b Offset 18 Single
absolute,double,64f,SubFolow1b Offset 18 Double
absolute,long,64f,SubFolow1b Offset 18 Long
absolute,integer,64f,SubFolow1b Offset 18 Integer
absolute,byte,64f,SubFolow1b Offset 18 Byte

For the record I still don't know how SubFolow should be used.
This tweakfile method of looking at a piece of data should help you play around a bit and see if things fall into place.

Last edited by U-Bones; 05-23-07 at 10:40 AM.
U-Bones 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 12:19 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.