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 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-29-13, 08:59 PM   #11
Dignan
Seasoned Skipper
 
Join Date: Mar 2008
Posts: 698
Downloads: 262
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I have more data on this....but I ran into something really juicy that I had to follow so I'll come back to this later.

Now for the juicy thing: I was looking for something that would point me to where all the dials were updated. After some poking around I found some code that iterates over all the dials (only way I knew I found it is because the loop counter variable on the stack was continually compared against the number of dials on every iteration). I was then able to see the size of each dial in bytes and how the game accesses them (really simple - loop counter variable X each dial size + pointer to start of dials = current dial). Then I traced down everything accessing the dial's base address and mapped it out. The ScriptManager provided the dials enumeration so I knew how to find a particular dial. Now I'm watching to see where in the code it's resetting some of the TDC dials to 0 when you use the stadimeter
I wait with cautious optimism this is still one of my biggest complaints about the tdc
__________________
Dignan 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 11:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.