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 05-02-12, 07:28 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Too bad,
it would be nice having magnetic torps premature explosions rate affected by the distance from the magnetic north, as well as duds rate connected with the tonnage of the target ship. Features that probably, as far as SH5 is concerned, have to be dismissed as "sci-fi"

Anyway, brilliant job TDW!
Those are actually great ideas. All I have to do is find the memory locations that denote these values then it's just a simple matter of adding some assembly code The hard part is finding these memory locations as everything is pointer based so you have no idea what so and so pointer is actually pointing to. The ones that load values onto the floating point stack are easy to track down because you can usually discern what they are from the value they load onto the floating point stack. I have more than 50% of the assembly code for the torpedoes mapped out so I have a really good idea what the game is doing with them.

I really like the idea of magnetic torpedoes dud rate controlled by tonnage of unit...I'm going to concentrate on tracking this one down. Seems very logical that this would influence the magnetic detonator on the torp in real life. I can make a controlled experiment where I know what ship is being attacked and I'll know it's tonnage from it's .sim file. Then when game tells me impact imminent I can search for this tonnage value. If I can find the value and one of the CPU registers is pointing to the object that contains this value then this will be possible to do. One of the registers has to be pointing to the object because the game is constantly computing distance to impact. The only way it can compute distance is if it knows where the torp is and where the object being collided with is located.
TheDarkWraith is offline   Reply With Quote
 

Thread Tools
Display Modes

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 07:59 AM.


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.