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

Reply
 
Thread Tools Display Modes
Old 11-02-11, 05:39 PM   #1
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default Torpedo Auto-Reload Mod


V1.0
Mod that configures the Torpedo Auto-Reload function within Sh3 to be Turned Off initially.

Mod contains just one file: AutoReload SH3.exe

This file can be run from any location. On starting the file - it will automatically start Silent Hunter 3.
Once the Game has loaded and started it will Turn the Auto-Reload to off.
Then the file will terminate leaving SH3 running.

Auto-reload can be turned back on by bringing up the Torpedo Panel - default is the 'i' key. And turning the checkbox to on.

V1.1
Changes
  • Added in code to 3rd Variable (CheckBox Ticked)
  • Changed Original Pointers to New pointers that worked across both my PC's and with GWX
  • Added larger delay before code is executed to allow run on slower laptops etc

V1.1 Standard Edition - Download:
http://www.subsim.com/radioroom/down...o=file&id=3419

V1.1 SH3Commander Edition - Download:
http://www.subsim.com/radioroom/down...o=file&id=3420



Ok, this was more difficult than expected, but I belive I have it working correctly now. I've tested it as much as possible - but due to the way the variables are used for this within sh3 its Impossible to say if it will work 100% of the time for everybody.
I think I've coded it so no matter what the Memory address its reading from it can tell the correct value required to run the code.
But best ye test it and let me know if it works ok for you.

Last edited by reaper7; 11-05-11 at 10:31 AM. Reason: Added Sh3Commander Version
reaper7 is offline   Reply With Quote
Old 11-02-11, 06:53 PM   #2
Fish In The Water
Prince of
the Sea


SUBSIM
Welcome
Committee

 
Join Date: Jul 2009
Location: Watching over U-253
Posts: 3,495
Downloads: 98
Uploads: 2
Default

First off, let me just say thank you for the time and effort to put this together. For those of those who like to have different torpedo types loaded in different tubes, this is a great relief.

I suppose it may be difficult to understand if you haven't been there yourself, but having your loadout messed up for the umpteenth time can become quite annoying. For me, it's very much akin to having to manually load the first deck gun shell in GWX. Where's the crew? And why are they waiting for me to hold their hand?

Any Weps officer serving on my crew would know I prefer type I's in tubes one and two and wouldn't go jamming a type II in there just because I didn't remind him for the millionth time.

As a result, this is a very welcome addition to the SH3 world. I'm downloading as we speak and will begin testing later today.

One quick question regarding SH3 Commander. Would it be possible to setup a three way chain so that Commander calls 'AutoReload SH3.exe' which in turn calls sh3.exe? I realize some editing and/or file renaming would be involved, but I'm just wondering if it would work in theory?

I'll be looking into this as well, but in any event, I really want to thank you once again for the release and especially for all the help you've provided.
__________________
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people are so full of doubts." - Bertrand Russell.


Fish In The Water is offline   Reply With Quote
Old 11-02-11, 07:01 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Great work to all involved.
  Reply With Quote
Old 11-02-11, 07:05 PM   #4
Fish In The Water
Prince of
the Sea


SUBSIM
Welcome
Committee

 
Join Date: Jul 2009
Location: Watching over U-253
Posts: 3,495
Downloads: 98
Uploads: 2
Default

Quote:
Originally Posted by privateer View Post
Great work to all involved.
And that certainly includes you my friend. Dare I say without you raising the issue, (and in effect 'championing' the cause), we would never have gotten this far. Much gratitude and respect!
__________________
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people are so full of doubts." - Bertrand Russell.


Fish In The Water is offline   Reply With Quote
Old 11-02-11, 07:29 PM   #5
frau kaleun
Rear Admiral
 
Join Date: Nov 2009
Location: Skyri--oh who are we kidding, I'm probably at Lowe's. Again.
Posts: 11,274
Downloads: 168
Uploads: 0


Default

Quote:
Originally Posted by Fish In The Water View Post
For me, it's very much akin to having to manually load the first deck gun shell in GWX. Where's the crew? And why are they waiting for me to hold their hand?
Just edit the appropriate part(s) of the basic.cfg so that the game gives you 1 round of AP ammo instead of 0, and 1 less round of HE ammo than what is currently indicated, for both types of deck gun. Total amount of ammo remains the same, but when you order the deck gun manned the crew will auto-load that one round of AP ammo because they're hardcoded to load AP ammo first (thus the problem when there's no AP ammo available). After that they'll continue loading the gun with the remaining HE ammo until ordered to stand down. Problem solved!

As far as I can tell it works, because when I put men on the gun and order "Feuer Frei" they just load up and start shooting all on their own. I know GWX took out the AP ammo for purposes of historical accuracy and realism, but I figure the first shot never hits the target anyway, so having that 1 AP round in there hardly counts as an unrealistic advantage.
frau kaleun is offline   Reply With Quote
Old 11-02-11, 07:59 PM   #6
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by Fish In The Water View Post
One quick question regarding SH3 Commander. Would it be possible to setup a three way chain so that Commander calls 'AutoReload SH3.exe' which in turn calls sh3.exe? I realize some editing and/or file renaming would be involved, but I'm just wondering if it would work in theory?
Thanks Mate, One method would be to launch Sh3 via Commander, then alt-tab out and start this mod.
Hope it works ok now

Quote:
Originally Posted by privateer View Post
Great work to all involved.
Thank you Mate, all long as you get some use out of it then it was worthwhile
reaper7 is offline   Reply With Quote
Old 11-03-11, 02:03 AM   #7
Fish In The Water
Prince of
the Sea


SUBSIM
Welcome
Committee

 
Join Date: Jul 2009
Location: Watching over U-253
Posts: 3,495
Downloads: 98
Uploads: 2
Default

Quote:
Originally Posted by frau kaleun View Post
Just edit the appropriate part(s) of the basic.cfg so that the game gives you 1 round of AP ammo instead of 0, and 1 less round of HE ammo than what is currently indicated, for both types of deck gun. Total amount of ammo remains the same, but when you order the deck gun manned the crew will auto-load that one round of AP ammo because they're hardcoded to load AP ammo first (thus the problem when there's no AP ammo available). After that they'll continue loading the gun with the remaining HE ammo until ordered to stand down. Problem solved!
Good idea. Thank you, I'll be sure and give this a try!
__________________
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people are so full of doubts." - Bertrand Russell.


Fish In The Water is offline   Reply With Quote
Old 11-03-11, 02:16 AM   #8
Fish In The Water
Prince of
the Sea


SUBSIM
Welcome
Committee

 
Join Date: Jul 2009
Location: Watching over U-253
Posts: 3,495
Downloads: 98
Uploads: 2
Default

Quote:
Originally Posted by reaper7 View Post
Thanks Mate, One method would be to launch Sh3 via Commander, then alt-tab out and start this mod.
Hope it works ok now
Sounds good, will give it a go and thanks again!

*******

Just finished my first test with some rather unexpected results. Everything loaded up fine, 'Auto Reload' was deselected and yet when I fired off my first eel the crew proceeded to reload without taking the new eel out of inventory.

In other words, the auto function is still active plus I appear to have an infinite supply of torpedoes on board. This got me thinking as to possibles causes, and the only thing I've been able to come up with so far (as possibly having an effect), is the fact I'm running a modded basic.cfg which adds extra inventory beyond the usual load.

I'll try swapping it out for a default config file and see if it makes a difference.
__________________
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people are so full of doubts." - Bertrand Russell.


Fish In The Water is offline   Reply With Quote
Old 11-03-11, 08:49 AM   #9
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

John, i don't understand what was the issue that this mod is fixing.
is it all about the default setting at auto-reload torpedo order for the crew ? and if yes...what was the issue ?
(my crew always were uploading the tubes...didn't need to do anything)
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 11-03-11, 08:55 AM   #10
frau kaleun
Rear Admiral
 
Join Date: Nov 2009
Location: Skyri--oh who are we kidding, I'm probably at Lowe's. Again.
Posts: 11,274
Downloads: 168
Uploads: 0


Default

Quote:
Originally Posted by makman94 View Post
John, i don't understand what was the issue that this mod is fixing.
is it all about the default setting at auto-reload torpedo order for the crew ? and if yes...what was the issue ?
(my crew always were uploading the tubes...didn't need to do anything)
IIRC someone asked if there was a way to have auto-reload set to "off" by default when the game starts, instead of on until you turn it off manually.
frau kaleun is offline   Reply With Quote
Old 11-03-11, 08:58 AM   #11
SquareSteelBar
Sea Lord
 
Join Date: May 2006
Location: U-73
Posts: 1,635
Downloads: 632
Uploads: 0
Default

Doesn't work for me.

Auto reload is still switched on at game start.

sh3.exe currently patched to h.sie's V15G2...
SquareSteelBar is offline   Reply With Quote
Old 11-03-11, 12:37 PM   #12
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Hmmm, maybe the variable changes from that used in stock with mods applied.
I'll try activating some mode to see if that breaks the memory location.
If there thats the case will have to see if there is a different workaround to having it set off as default .


Quote:
Originally Posted by makman94 View Post
John, i don't understand what was the issue that this mod is fixing.
is it all about the default setting at auto-reload torpedo order for the crew ? and if yes...what was the issue ?
(my crew always were uploading the tubes...didn't need to do anything)
Hi Mate, what this mod does is switches the Auto-reload from On to Off on starting of game.
This was requested in Stieblers thread to prevent Torpedoes being auto loaded so the User can select the correct torpedo for different tubes.
Without the need for the player to remember to goto torpedo screen and uncheck the tickbox selection.
A small mod but has its place

Last edited by reaper7; 11-03-11 at 02:25 PM.
reaper7 is offline   Reply With Quote
Old 11-03-11, 02:02 PM   #13
SquareSteelBar
Sea Lord
 
Join Date: May 2006
Location: U-73
Posts: 1,635
Downloads: 632
Uploads: 0
Default

Just tried the unpatched exe - no luck
SquareSteelBar is offline   Reply With Quote
Old 11-03-11, 02:03 PM   #14
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

My mistake:

Oooops my bad!!!!

Just tried the file I uploaded and it didn't work - so looked into it and its not the correct version - I appear to have compiled an older non-functional version .

Sorry Guys I'll reupload the correct one ASAP


EDIT: File is re-uploaded
http://www.subsim.com/radioroom/down...o=file&id=3419

Last edited by reaper7; 11-03-11 at 02:21 PM. Reason: File Re-Uploaded
reaper7 is offline   Reply With Quote
Old 11-03-11, 04:02 PM   #15
SquareSteelBar
Sea Lord
 
Join Date: May 2006
Location: U-73
Posts: 1,635
Downloads: 632
Uploads: 0
Default

Still doesn't work neither with patched exe nor with unpatched.
SquareSteelBar is offline   Reply With Quote
Reply


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:03 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.