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 07-18-13, 09:30 AM   #1
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 989
Downloads: 1081
Uploads: 6
Default

@gap. Thanks for your input. Now I do not have to write as much. Same thoughts here.

Quote:
Originally Posted by Gryffon300 View Post
Here is my current Mod line-up (in this order):
TMO 2.5
RSRDC TMO V502
RSRDC V5xx Patch1
1.5 OTC 031312 for RSRDC v502
OTC Gato Sonar Bearing Fix
Less Plankton 1.2
LST TMO v2
TDW Ship Plane Fire Damage v1 4 SH3
Websters Real Lifeboats Fix for v1.5

The only suggestion I have had is the possibility that the fire damage mod may be the issue.
Proof of fire damage and caused by TDW Ship Plane Fire Damage v1 4 SH3? TDW may not play all of the other mods. Did you inform him somehow that the fire damage mod does not overwrite any files above it? (From my memory) Screenshots or written data for TDW to evaluate? Use SH4 validator or JSGME validator and provide that information?

Did you put all the information on your post to the TDW Ship Plane Fire Damage v1 4 SH3 (SH4) thread? PM TDW?

Quote:
Originally Posted by Mikemike47 View Post
Try the SH4 fleet boat mods section. Is "TDW Ship Plane Fire Damage v1 4 SH3" for SH3 not SH4?
I have played SH2, SH3 and SH4. I have gotten much help when I asked, due to the wonderful world of the internet and fellow subsimmers, when I was consumed with playing SH3 and SH4. I think I just started playing SH5 12-18 months ago. I have gotten as much help here on SH5, too.

Quote:
Originally Posted by Gryffon300 View Post
As I have said multiple times now, the author of the Mod (The DarkWraith), has "ported the mod"across all three of SH3, 4 and 5, but HAS NOT put a thread of any kind in SH4 Fleet Boats Mods or anywhere else in SH4.
Of course TDW posted some threads somehow on SH3 or SH4. Maybe someone else added the download links. How would we know otherwise about TDW Ship Plane Fire Damage v1 4 SH3 or something like DC Water Disturbances mod? At least, he was helping SH3 or SH4 to make the games better.

TDW has stated somewhere that he can not dedicate alot his time to SH3 or SH4; or does not want to. He wants to work on SH5 for his own reasons and we are grateful for that. He explained his reasons somewhere.

Last edited by Mikemike47; 07-18-13 at 09:42 AM.
Mikemike47 is offline   Reply With Quote
Old 07-18-13, 02:59 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Mikemike47 View Post
At least, he was helping SH3 or SH4 to make the games better.

TDW has stated somewhere that he can not dedicate alot his time to SH3 or SH4; or does not want to. He wants to work on SH5 for his own reasons and we are grateful for that. He explained his reasons somewhere.
I modded SH3 but under a different forum name. I produced many mods for SH3, probably the most notable being the SH4 effects for SH3 mod and my live AI ships mod. There were many good ones I made for SH3.

SH3/4 are outdated engines. They don't even come close to the possibilities we have with SH5. When SH5 came out everybody dismissed it as junk. Yes, it was junk as delivered and even with the first patch from Ubi. If you were to 'take a look under the hood' though you'd see the possibilities that SH5 has. It's pretty amazing actually. I'm just beginning to tap into it's possibilities with my Generic Patcher

Last edited by TheDarkWraith; 07-18-13 at 03:20 PM.
TheDarkWraith is offline   Reply With Quote
Old 07-18-13, 03:11 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Time for an update. I had some severe limitations with my 'infrastructure' that I had coded into SH5 with my Generic Patcher. I could not easily add additional timers or commands to the game. Thus something had to be done about it.

I basically rewrote my entire infrastructure and framework to make it behave like a plug-in architecture. With a plug-in architecture it's very easy to add additions, add new code, etc. to the supporting framework. And I have accomplished this (totally coded in assembly!)

With my new framework and architecture adding new timers, code for the new timers, adding new commands to the game, new code for those new commands, etc. is just a simple matter of telling the framework where to find the new code and 'plugging-in' the offsets needed so the framework can find the needed strings and code. The other great thing about my new architecture and framework is expandability and scalability. I'm no longer 'hard-coded' to certain things, I am free to do whatever my mind comes up with. If other people decide to add new items/commands/etc. to the game via assembly they can use my plug-in architecture to easily add their new additions. If one could view the code I wrote for all of this as a painting it would be the Mona Lisa.

Currently I have added six new commands to the game:

Independent engine controls:
Both_engines_for_speed
Port_engine_only
Stbd_engine_only

Electric engines on surface:
Enable_electrics_surfaced
Disable_electrics_surfaced
Toggle_electrics_surfaced

Currently these commands can only be accessed by using the script engine the devs included with the game. By using this command:

Game.SubmarineCommands.ExecuteCommand()

You can invoke the new commands above. Here is an example:

Game.SubmarineCommands.ExecuteCommand( "Toggle_electrics_surfaced" )


I'll be releasing a test version here very soon so you all can test all the changes. I've been testing it for the last 2 days and haven't noticed any problems. I'm hoping for none but to think I wrote 100% perfect code would be foolish thinking (it hardly ever happens!). Thus by releasing a test version there will be many people testing the new framework and architecture for bugs/CTDs.

One thing you will notice is the addition of a new section to the SH5.exe: TDWMisc. This new section basically contains all the new command strings but I've made it readable, writable, and executable so that it's very flexible and can be used as I see fit.

The next version of the Generic Patcher has two new groups added to the sh5.exe: Hydrophone and Advanced Users. Currently the two patches dealing with the hydrophone are grouped under the Hydrophone group. Those functions I see fit for advanced users have been placed under the Advanced Users group (Orbit listener patches, Render patches, and some others). This should make it really easy for newbies to quit enabling every single patch since they don't care to read/investigate the patches (Files= and Notes=). If one enables the patches under Advanced Users they do it under their own risk.

I've added the Advanced Users group to other patch files as necessary/needed.

Last edited by TheDarkWraith; 07-18-13 at 03:26 PM.
TheDarkWraith is offline   Reply With Quote
Old 07-18-13, 03:31 PM   #4
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Thank you for your hard work, TDW! Can't wait to give it a try.
Sartoris is offline   Reply With Quote
Old 07-18-13, 03:41 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

In addition to the new electric engines on surface patch there will be two additional new patches:
- CO2 rate increase on battlestations (causes CO2 level to increase faster when battlestations enabled)
- Disable automatic battery recharge (disables the game's automatic switching to battery recharge when surfacing)

The broken hydrophone patch was rewritten to kill the bug of unknown being shown when the hydrophone needle was placed anywhere near aft end of sub. Now you will be able to hear hydrophone contacts in the aft area of the sub (if your hydrophone installed on the sub supports it).
I'm adding some new code to the hydrophone that will allow it to show Environmental and Submarine in addition to Merchant, Warship, and Unknown. I'm pretty sure a hydrophone operator can distinguish submarines and environmentals from all the others

There might be some other new patches included in next version. Depends on time...


I revised many of the patches that could have interference with AI subs to avoid this interference. Previously the AI subs could be influencing whether the player's sub was surfaced, submerged, or was able to change speeds of each shaft (from a code aspect)

The carriers/airbases spawning aircraft patch was revised to add new min/max limits for the logic steps value when the bit was set denoting logic steps needed to be adjusted (currently min=1 and max=4). It was also revised to prevent the player's overzealous radio operator from radioing for assistance without permission. I also added two new arguments passed to all the functions dealing with carriers/airbases spawning aircraft: is human playable and do not check for radio. These let the functions test for whether the unit asking for assistance is human playable (and if so returns to caller) and whether the unit can send/receive radio (currently not fully coded - returns 1 back to callee denoting radio is operational).
TheDarkWraith is offline   Reply With Quote
Old 07-18-13, 03:42 PM   #6
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

Quote:
If one could view the code I wrote for all of this as a painting it would be the Mona Lisa
Fifi is online   Reply With Quote
Old 07-18-13, 06:33 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Excellent news, TDW. Thank you for your hard work
gap is offline   Reply With Quote
Old 07-19-13, 12:11 AM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

It was time to test all the new code and new additions to my UIs mod. Result: Success



As you can see I've added a new order: Electric engines only. You can see that I clicked the icon, the crew shutdown the diesels and engaged the electric motors (message in messagebox). You can also see that I'm still surfaced but now running on electrics.

What I need from those of you who are graphically inclined: I need a new icon for the electric engines only. I would like the new icon added to my UIs mod's \data\Menu\Gui\Layout\Orders4.dds. You'll notice that there are 3 colors in this DDS. The icon needs to be placed in each color. It's pretty self-explanatory when you open the dds file in Photoshop or the likes.

Had one slight 'hiccup' in my code. I was clicking the electric engines icon but it wasn't changing color. This means it was not getting any feedback from the game that an order was given. Here's how the game works: in the script code if you use the Game.SubmarineCommands.ExecuteCommand() command the command is parsed by a function. It checks to see if it's a valid command. Valid commands are commands hard-coded into the sh5.exe. If it's a valid command then the game executes the code for the command and then tells all the scripts that the command was executed. Obviously my new command didn't exist in the sh5.exe so it was flagged as invalid command and passed to default handler. Default handler doesn't do crap with them so I hooked into it and added new code that will process 'new' commands added to the game (my plug-in architecture and framework). All that new code works flawlessly EXCEPT for the fact that it doesn't do any hand-shaking with the script code. I had to go back and add the hand-shaking so that when the new command is executed the very last thing the new code does is tell all the scripts that the new command was executed. Now with the hand-shaking in place the new electric engines icon got it's feedback from the game and changed to the yellow-orange color.

The tooltip for the new icon is a new menu entry: 1005
This means it can easily be changed to whatever I finally decide to call it.

Last edited by TheDarkWraith; 07-19-13 at 12:27 AM.
TheDarkWraith is offline   Reply With Quote
Old 07-19-13, 07:24 AM   #9
tonschk
Sea Lord
 
Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post

Currently I have added six new commands to the game:

Independent engine controls:
Both_engines_for_speed
Port_engine_only
Stbd_engine_only

Electric engines on surface:
Enable_electrics_surfaced
Disable_electrics_surfaced
Toggle_electrics_surfaced

Currently these commands can only be accessed by using the script engine the devs included with the game. By using this command:

Game.SubmarineCommands.ExecuteCommand()
:sa lute:
tonschk is offline   Reply With Quote
Old 07-19-13, 08:26 AM   #10
naights
Sparky
 
Join Date: Mar 2008
Location: Spain
Posts: 154
Downloads: 384
Uploads: 7
Default

http://www.mediafire.com/view/1vepdn...8/Electric.png
naights is offline   Reply With Quote
Old 07-19-13, 08:37 AM   #11
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Hi TDW,

in case you are still interested, I have prepared two possible electric propulsion icons; one was inspired by sober, but with a lower case italic "e", whereas the other one diplays the symbol internationally used for denoting electric motors:





P.S: I have just seen the button proposed by naights, which is also good
gap is offline   Reply With Quote
Old 07-19-13, 08:51 AM   #12
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

TY for hour hard work TDW!
vdr1981 is offline   Reply With Quote
Old 07-19-13, 09:11 AM   #13
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

One last option, inspired by naights' icon:

gap 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:29 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.