![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
07-18-13, 09:30 AM
|
#1 | |||
|
Grey Wolf
![]() Join Date: Sep 2006
Location: NY
Posts: 989
Downloads: 1081
Uploads: 6
|
@gap. Thanks for your input. Now I do not have to write as much. Same thoughts here.
Quote:
Did you put all the information on your post to the TDW Ship Plane Fire Damage v1 4 SH3 (SH4) thread? PM TDW? Quote:
Quote:
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. |
|||
|
|
07-18-13, 02:59 PM
|
#2 | |
|
Black Magic
![]() |
Quote:
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. |
|
|
|
07-18-13, 03:11 PM
|
#3 |
|
Black Magic
![]() |
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. |
|
|
07-18-13, 03:31 PM
|
#4 |
|
Captain
![]() Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
|
Thank you for your hard work, TDW! Can't wait to give it a try.
![]()
|
|
|
07-18-13, 03:41 PM
|
#5 |
|
Black Magic
![]() |
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). |
|
|
07-18-13, 03:42 PM
|
#6 | |
|
Navy Seal
![]() |
Quote:
__________________
|
|
|
|
07-18-13, 06:33 PM
|
#7 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Excellent news, TDW. Thank you for your hard work
|
|
|
07-19-13, 12:11 AM
|
#8 |
|
Black Magic
![]() |
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. |
|
|
07-19-13, 07:24 AM
|
#9 | |
|
Sea Lord
![]() Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
|
Quote:
![]() ![]() ![]() ![]() ![]() ![]() ![]() :sa lute:
|
|
|
|
07-19-13, 08:26 AM
|
#10 |
|
Sparky
![]() Join Date: Mar 2008
Location: Spain
Posts: 154
Downloads: 384
Uploads: 7
|
__________________
http://www.subsim.com/radioroom/album.php?u=239334 |
|
|
07-19-13, 08:37 AM
|
#11 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
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 |
|
|
07-19-13, 08:51 AM
|
#12 |
|
Navy Seal
![]() |
TY for hour hard work TDW!
__________________
Best regards... Vecko ![]() The Wolves of Steel - SH5 megamod In case You wish to support my work... |
|
|
07-19-13, 09:11 AM
|
#13 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
One last option, inspired by naights' icon:
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
