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

Reply
 
Thread Tools Display Modes
Old 03-23-11, 03:18 AM   #1
Meldric
Officer
 
Join Date: May 2010
Location: Germany
Posts: 237
Downloads: 169
Uploads: 0
Default

Hi TDW!

Wouldn't it be possible to do the following (just an idea):

- Use your dll-injection method to hook into a common action in game (in the very beginning after loading a saved game)
- create a method in the dll to overwrite the values in memory instead of patching the .exe.

--> In this way you could also add an option (e.g. for the colors) to the GUI...

Impossible?

Meldric
Meldric is offline   Reply With Quote
Old 03-23-11, 07:15 AM   #2
d3vnu11
Bosun
 
Join Date: Feb 2011
Posts: 66
Downloads: 98
Uploads: 0
Default

Quote:
Originally Posted by Meldric View Post
Hi TDW!

Wouldn't it be possible to do the following (just an idea):

- Use your dll-injection method to hook into a common action in game (in the very beginning after loading a saved game)
- create a method in the dll to overwrite the values in memory instead of patching the .exe.

--> In this way you could also add an option (e.g. for the colors) to the GUI...

Impossible?

Meldric
If it were possible you might even be able to help out the Steam users of SH5.
d3vnu11 is offline   Reply With Quote
Old 03-23-11, 01:33 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Meldric View Post
Hi TDW!

Wouldn't it be possible to do the following (just an idea):

- Use your dll-injection method to hook into a common action in game (in the very beginning after loading a saved game)
- create a method in the dll to overwrite the values in memory instead of patching the .exe.

--> In this way you could also add an option (e.g. for the colors) to the GUI...

Impossible?

Meldric
impossible no, possible yes but I would use an easier method. I would just write to the memory in game! As my .dlls are already in the process memory I can manipulate it. It's a great idea to change colors on the fly. I'll add it to my list of things to look into Colors could be set just like I've done with the scope settings using the mousewheel for each color component.

As far as for steam it's not possible to do because I don't own the steam version of the game and thus cannot 'see' the memory to verify the colors are located where they are in the boxed versions.

Last edited by TheDarkWraith; 03-23-11 at 01:49 PM.
TheDarkWraith is offline   Reply With Quote
Old 03-23-11, 02:19 PM   #4
d3vnu11
Bosun
 
Join Date: Feb 2011
Posts: 66
Downloads: 98
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
impossible no, possible yes but I would use an easier method. I would just write to the memory in game! As my .dlls are already in the process memory I can manipulate it. It's a great idea to change colors on the fly. I'll add it to my list of things to look into Colors could be set just like I've done with the scope settings using the mousewheel for each color component.

As far as for steam it's not possible to do because I don't own the steam version of the game and thus cannot 'see' the memory to verify the colors are located where they are in the boxed versions.
Yeah I was making the assumption that Steam just takes the box version and wraps their drm around it. It authenticate then extracts the the sh5 code and executes. I no longer run the Steam version either but I could install it to verify once you get something together
Regards,
Kev
d3vnu11 is offline   Reply With Quote
Old 03-23-11, 10:55 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Finally nailed down the memory locations for:
- Compressed air level
- CO2 level
- Battery level
- Fuel level

just about got the hull integrity and flooding level memory locations nailed down also.

Now things can start to get really interesting
TheDarkWraith is offline   Reply With Quote
Old 03-23-11, 11:07 PM   #6
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by TheDarkWraith View Post
Finally nailed down the memory locations for:
- Compressed air level
- CO2 level
- Battery level
- Fuel level

just about got the hull integrity and flooding level memory locations nailed down also.

Now things can start to get really interesting
Amazing
THE_MASK is offline   Reply With Quote
Old 03-23-11, 11:09 PM   #7
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

stoianm is offline   Reply With Quote
Old 03-23-11, 11:13 PM   #8
nozaurio
Planesman
 
Join Date: Jul 2010
Location: Venezuela
Posts: 181
Downloads: 65
Uploads: 0
Default

nozaurio is offline   Reply With Quote
Old 03-23-11, 11:41 PM   #9
SashaKA001
中国水兵
 
Join Date: Mar 2010
Location: 47°46′46″N, 37°14′51″E
Posts: 271
Downloads: 231
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Finally nailed down the memory locations for:
- Compressed air level
- CO2 level
- Battery level
- Fuel level

just about got the hull integrity and flooding level memory locations nailed down also.

Now things can start to get really interesting
can be found here and about the magnetic detonator?
SashaKA001 is offline   Reply With Quote
Old 03-24-11, 06:37 AM   #10
Obelix
Seasoned Skipper
 
Join Date: Aug 2010
Location: 49°44´N 129°40´E
Posts: 665
Downloads: 124
Uploads: 7
Default

Hi TheDarkWraith!
Based on your breakthroughs in improving SH5 I'll try to make a couple of suggestions:
1. Is it possible to do so during the bombardment of depth charges in the boat, the flickering light. Or there is blackout for a few seconds?
2. This question may have already asked - can we make manual control of lighting inside the boat? That is, if necessary, to switch white, red or blue light?
__________________
Speed squadron is the speed of the slowest ship ... but only so long as on the trail of the squadron did not sit submarines ...
Obelix is offline   Reply With Quote
Old 03-24-11, 06:51 AM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

right now I'm concentrating on adding usable functionality as follows:
- if speed > safe speed for extended periscope then automatically retract periscope and prevent periscope from rising until speed is reduced
- if silent running is active then CO2 production is increased (due to stress of crew)
- if battlestations is active then CO2 production is increased (due to stress of crew)

just narrowed down where the depth value is in memory. Now just have to find the speed value and periscope extended heights values.

What is the maximum speed the sub can be at for a raised periscope
TheDarkWraith is offline   Reply With Quote
Reply

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 12:31 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.