![]() |
Sure I get that, but how do we end up on "that" specific addy?
That's all I want to know. Like I said I understand why we are at "001BA0" in the example by "timtraveller" its the line that holds the value. But my question was how to get the "3" as we are told value for "Crash Depth" is at "1BA3" http://i10.photobucket.com/albums/a1...nCox/chart.jpg This is from "timetravellers" tut, just to make it more clear as to what I am talking about. |
1BA0 = 74
1BA1 = 68 1BA2 = 00 1BA3 = 66 and so forth |
Quote:
Here's the link: http://files.filefront.com/SH4_Moddi.../fileinfo.html |
@NVDRIFTER
I see we play with the same toys. :rotfl: |
Quote:
|
Quote:
|
Hex value and converting this to Decimal?
I see in the Sim file the item for "Min" may have a value of 803F in hex but this = 1 via the analyzer in decimal, how is the conversion done? as i see this value could be 0.1 say which is CDCCCC3D and -1 is 80BF. How is this worked out? |
Quote:
http://babbage.cs.qc.edu/IEEE-754/32bit.html http://babbage.cs.qc.edu/IEEE-754/Decimal.html Enter the raw 00 00 80 3F from the hex file as 3F800000 gives you value 1. Above CaptainCox wanted the crash depth. It looks like this 66 e6 ac 43 in file color yellow. Enter backwards 43 ac e6 66 two bytes at a time 43ace666. Gives =345.79998779296875 ~rounds to 346 in game. Negative numbers are stores as the 9's complement. See -1 is 80BF--> BF80 The normal 1 is a '3' there so (F-1)-3 = B. Something like that...:/ 11011 is 00100 computer must use binary and makes it add. IE Subtraction is adding the 9's complemnt in binary. Fast because all 1 are 0 transposed. then remove 1 bit. Darn 24 years ago to remember that stuff. |
Cheers "Jungman". My problem now is how to actually find stuff. I asked in this thread http://www.subsim.com/radioroom/show...587#post511587
Quote:
|
Thanks heaps Jungman :know: will have a look into.. Too much fun...
Have a great day :) |
:yep: Danke! Nvdrifter I found an extra set of data points for the fast mark 14 inside the torpedo_US.sim file. Can you add this:
Mark 14 Torpedo .sim Tweak File .txt [1] DropDownName=Mark 14 Main absolute,byte,7FC,type absolute,single,80A,depth absolute,single,821,max_dive_angle absolute,single,883,max_turn_angle absolute,single,8A2,impulse absolute,single,83E,speed ---->slow_speed absolute,single,86C,range ----> fast_range absolute,single,85E,fast_speed --> add new absolute,single,84C,slow_range --> add new Thanks for making these tweak files, alot of work!:up: For readability just copy paste this: [1] DropDownName=Mark 14 Main absolute,byte,7FC,type absolute,single,80A,depth absolute,single,821,max_dive_angle absolute,single,883,max_turn_angle absolute,single,8A2,impulse absolute,single,83E,slow_speed absolute,single,84C,slow_range absolute,single,85E,fast_speed absolute,single,86C,fast_range |
All times are GMT -5. The time now is 08:27 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.