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:59 PM   #5
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:16 AM   #6
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   #7
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-02-11, 07:29 PM   #8
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-03-11, 02:03 AM   #9
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-04-11, 04:30 AM   #10
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!
Just wanted to say thanks again and also let you know it worked out just like you said.

The only thing is, being the nitpicky/obsessive type , it was really bothering me that the deck gun menu and texture display were still showing 'HE' even though my crew had already auto loaded the lone AP shell. This was something that just had to be fixed.

As a result, I cruised on over to the menu_1024_768.ini file and took out all those pesky little semicolons the GWX folks inserted to suppress my AP texture and tool tip. Now when my lone AP shell is auto loaded the screen actually shows an AP shell as opposed to remaining on HE in perpetuity. In other words, all is once again well in my little world.

Cheers for the idea. As my lone AP careens into some poor unsuspecting ship, I shall remember you fondly. Or something to that effect.
__________________
"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-04-11, 07:52 AM   #11
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
Cheers for the idea. As my lone AP careens into some poor unsuspecting ship, I shall remember you fondly. Or something to that effect.


Glad it works for you.

Could you point me to the section in the menu .ini where you made the adjustment to show the AP ammo in the game? I started looking for it when I first enabled the fix but at the time I'd never tinkered with that file before so it was a bit daunting. Then I got sidetracked with something else and sort of forgot about it.
frau kaleun is offline   Reply With Quote
Old 11-04-11, 08:26 AM   #12
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
Could you point me to the section in the menu .ini where you made the adjustment to show the AP ammo in the game?
Absolutely, be happy to...

Simply Ctrl-F down to section '[G38 I8]' and '[G38 I9]'. Once there you'll need to remove all the semi-colons except for the ones that occur in the two 'type' lines, (i.e. Type=1029;Static text). There's a line like this (starting with Type=) in each of the two sections.

Also leave the semi-colon in the 'Display=2;Linear' line from section 2. Other than that, they all come out. Once that's done, the AP display should be back in business. Enjoy!
__________________
"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
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 10:51 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.