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 04-29-13, 02:26 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by volodya61 View Post
Hi TDW

Always wanted to ask but forgot every time, now after a short break returned to the game and remembered
Is it possible to set impact detonators as default in the next version? Maybe via OptionsEditorFileViewer? Because now magnetic detonators are by default and so many torpedoes been lost by premature detonation in the rough seas..
Another question - are there any changes in the OptionsEditorFileViewer in the version 7.3.0? I have made Russian manual for this app and would like to keep it updated..

Thank you
You want the magnetic detonators switched off as default? Should be fairly easy to do if that's what you're looking for. I could make a user option for it.

No changes in OptionsEditorFileViewer so far.

Quote:
Originally Posted by Cthulhus View Post
Hello,

I would like to know how can I control individual engines / shafts ?

NewUIs version 7.3.0 installed and SH5.exe patched with individual engine controls (on both files).

UI changed with the new addition that controls the two shafts. (I can see the new control on the bottom left hand side).

I can chose one individual shaft (left and/or right) but on the external view, the two engines are running!

Please help me Thanks
There are only a couple of reasons why it wouldn't be working:
- you didn't enable the user options for it
- you didn't patch all the files needed for this with my Generic Patcher
- mod conflict

Quote:
Originally Posted by volodya61 View Post
One more thing

I already gave you the Russian menu.txt files for version 7.2.0, probably you didn't find them now, it was more than half year ago
I just noticed in the new version (v7.3.0) is very outdated Russian menu.txt..
Here are two files (regular and for RealNav) - http://rghost.ru/45422454
These files already edited for compatibility with the wolfpack patch..
I'll add them to upcoming version

Quote:
Originally Posted by Targor Avelany View Post
so, one problem that popped up today, after using just the newui's .dlls (in the past they got overridden by the exe patcher .dlls): whenever I try to go to nav map - even if it is to get a missions - I get CTD.
Unable to duplicate problem. What patches do you have enabled?

Quote:
Originally Posted by Mikemike47 View Post
Depth gauge numbers showed up fine using 7.2 or 7.1 versions. The numbers displays are not there at version 7.3. I can move my mouse to depth gauge and the pointer will display what depth I will be at; I can dive to the depth requested by clicking the mouse within the depth gauge display.

I just started using version 7.3 starting today but downloaded it on 04/15/2013. Using JSGME I unenabled all mods including Multiple UIs so I can migrate settings from version 7.1. Made migration changes. Reenabled mods. Saved useroptions.py. I am using the new patcher, TDW_GenericPatcher_v_1_0_83_0, too. Enabled and seen patch changes, too.

The biggest changes are sober's modlist changes from 2 months ago to present. I was using DynEnv v2.1 not 2.9 back then, too.
Unable to duplicate problem. I press CTRL and the advanced depth scale shows up just fine. Sounds like a mod conflict somewhere.

Quote:
Originally Posted by SkyBaron View Post
I should have read this page before I posted about the same problem on the main forum! I'm getting the same NavMap CTD and it always happens after this on the log: PageDefaultHud_KeyPressed: args was not handled

This started to happen after UI 7.3
I can access NavMap with no problems. Sounds like a mod conflict somewhere.
TheDarkWraith is offline   Reply With Quote
Old 04-29-13, 03:36 PM   #2
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
You want the magnetic detonators switched off as default? Should be fairly easy to do if that's what you're looking for. I could make a user option for it.
This would be a useful option
Thanks in advance

Quote:
Originally Posted by TheDarkWraith View Post
No changes in OptionsEditorFileViewer so far.
I see.. please, let me know if the new versions will be changed..

Quote:
Originally Posted by TheDarkWraith View Post
I'll add them to upcoming version
Thank you
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 04-29-13, 03:57 PM   #3
SkyBaron
Lieutenant
 
Join Date: Mar 2010
Location: South Atlantic
Posts: 261
Downloads: 673
Uploads: 2
Default

Quote:
Originally Posted by TheDarkWraith View Post
I can access NavMap with no problems. Sounds like a mod conflict somewhere.
It's working now. I think that had to do with the render patch, after I deselected all the ones related to the map it worked fine.


Quote:
Originally Posted by TheDarkWraith View Post
What are you trying to do?
I'm trying to make a mod to play a sound based on text from the messagebox. I was able to do it by inserting a couple of lines on Page Default Hud.py inside Game_NewLogMessage with this code:

Code:
   if entrytext.StartsWith(  Menu.GetLocalizedText( MENU_MESSAGE ) ):
            GetTDWSound().PlaySound( GetSH5InstallPath() + "\\data\\Sound\\MY_SOUND.wav", 0.8 )
This works fine but how do I make an independent .py file just for this mod? How do I tell SH5 to run the .py I made? I have some C# experience but as you can see I'm new to python scripting. The library I mentioned that I need to use is obviously TDWSound.dll, unless there's another method to do this.

Thanks for any tips!
__________________


SkyBaron is offline   Reply With Quote
Old 04-29-13, 05:14 PM   #4
totalrain
Swabbie
 
Join Date: May 2005
Posts: 5
Downloads: 225
Uploads: 0
Default

Quote:
Originally Posted by SkyBaron View Post
It's working now. I think that had to do with the render patch, after I deselected all the ones related to the map it worked fine.
This probably should be in the patcher thread but, will reply to above quote. On my system rendering patch 12, "Disable rendering of torpedo line" causes CTD when entering the Nav Map. All other rendering patches work fine.
totalrain is offline   Reply With Quote
Old 05-04-13, 05:19 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SkyBaron View Post
I'm trying to make a mod to play a sound based on text from the messagebox. I was able to do it by inserting a couple of lines on Page Default Hud.py inside Game_NewLogMessage with this code:

Code:
   if entrytext.StartsWith(  Menu.GetLocalizedText( MENU_MESSAGE ) ):
            GetTDWSound().PlaySound( GetSH5InstallPath() + "\\data\\Sound\\MY_SOUND.wav", 0.8 )
This works fine but how do I make an independent .py file just for this mod? How do I tell SH5 to run the .py I made? I have some C# experience but as you can see I'm new to python scripting. The library I mentioned that I need to use is obviously TDWSound.dll, unless there's another method to do this.
You can use the intrinsic function Menu.PlaySound() but you need to register the sound file with the sdl file of the game (\data\Sound). Making independent py files for the game isn't that complicated but it does take some work. Look over how I did it with the file TheDarkWraithUserOptions.py (and .ini). You'll need to add new entries to the main menu file also which will break compatibility with most UI mods
TheDarkWraith is offline   Reply With Quote
Old 05-04-13, 07:55 PM   #6
SkyBaron
Lieutenant
 
Join Date: Mar 2010
Location: South Atlantic
Posts: 261
Downloads: 673
Uploads: 2
Default

Quote:
Originally Posted by TheDarkWraith View Post
You can use the intrinsic function Menu.PlaySound() but you need to register the sound file with the sdl file of the game (\data\Sound). Making independent py files for the game isn't that complicated but it does take some work. Look over how I did it with the file TheDarkWraithUserOptions.py (and .ini). You'll need to add new entries to the main menu file also which will break compatibility with most UI mods
Thanks for the tips! I'll take a look on those.
I hope someday you'll have time to do a small "Hello World" tutorial on SH5 scripting(I don't mean just Python, but how scripting/menu/etc fit together) it would help a lot of people, well at least me!


EDIT: I finally figured out how to do it. Never thought of looking at the .ini files, that was the problem. Now when I try to use Menu.PlaySound("sh.sdl sound name") I get this error:



If I use GetTDWSound().PlaySound everything works fine. Since I will probably make this compatible with the NewUI only, I'd rather use your sound library to avoid compatibility issues with some other mod's sh.sdl.
__________________



Last edited by SkyBaron; 05-04-13 at 09:53 PM.
SkyBaron is offline   Reply With Quote
Old 05-04-13, 11:10 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SkyBaron View Post
EDIT: I finally figured out how to do it. Never thought of looking at the .ini files, that was the problem. Now when I try to use Menu.PlaySound("sh.sdl sound name") I get this error:

If I use GetTDWSound().PlaySound everything works fine. Since I will probably make this compatible with the NewUI only, I'd rather use your sound library to avoid compatibility issues with some other mod's sh.sdl.
You'd have to send me your files so I can see what you did to get the error. Did you add the required entry(ies) in the Sh.sdl file?

Of course my library function will work! It doesn't depend on the game in any way! I play sounds through my own method that doesn't require them to be registered with Sh.sdl

The only problem with trying to make something compatible with my files is you'll have to update them everytime I change a file you used. A real PITA! It's best to create your own .py and .ini file and add the required entry(ies) to the main menu file and then hook into the game messages so you can play your sound when a message comes you are looking for
TheDarkWraith is offline   Reply With Quote
Old 05-04-13, 11:44 PM   #8
gustlik87
Nub
 
Join Date: Dec 2009
Posts: 2
Downloads: 145
Uploads: 0
Default

A little off-topic. I want to thank you TheDarkWraith for this mod. It is awesome...
gustlik87 is offline   Reply With Quote
Old 05-07-13, 11:04 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SkyBaron View Post
EDIT: I finally figured out how to do it. Never thought of looking at the .ini files, that was the problem. Now when I try to use Menu.PlaySound("sh.sdl sound name") I get this error:
Your problem was because of incorrect entries in Sh.sdl file. I see you used S3D to edit the file and that is probably why you got the errors. Hex editor or my SDL Editor app is best way to edit that file I sent you an early xmas present
TheDarkWraith is offline   Reply With Quote
Old 05-07-13, 12:36 PM   #10
Lucky07
Torpedoman
 
Join Date: Feb 2011
Location: Ubooting
Posts: 118
Downloads: 246
Uploads: 0
Default

hi , congratulations for the mod , the less i check is really good , but i have some installation troubles maybe , at starting a game , some permanent winwos stay and , are unclosable , map , unsusable , any input is ignored , so ? any help ? i place the mod following the sobers megamod , no way of making it run properly , any help welcome
Lucky07 is offline   Reply With Quote
Old 04-29-13, 06:42 PM   #11
Mikemike47
Grey Wolf
 
Join Date: Sep 2006
Location: NY
Posts: 989
Downloads: 1081
Uploads: 6
Default

References:
http://www.subsim.com/radioroom/show...postcount=9868

http://www.subsim.com/radioroom/show...postcount=9888

Quote:
Originally Posted by TheDarkWraith View Post
Unable to duplicate problem. I press CTRL and the advanced depth scale shows up just fine. Sounds like a mod conflict somewhere.
I updated the gauges issue a few more pages after where you had quoted.

Quote:
Originally Posted by Mikemike47 View Post

Problem is: NewUIs_TDC_7_3_0_jimimadrids_map_tools. The Hud3.dds is an older file version than the file version in NewUIs_TDC_ v 7_3. Map tools has no Page Default Hud.ini, either.

NewUIs_TDC_7_3_0_ByTheDarkWraith
NewUIs_TDC_7_3_0_alt_officer_wounded_by_Torpedo
NewUIs_TDC_7_3_0_jimimadrids_map_tools
Updated_Depth_Scales_by_gap_for_v7_2_0
SOAN_Filter_Fix(For TDW NewUIs_TDC_7_1_0)
This mod order did not work.

NewUIs_TDC_7_3_0_ByTheDarkWraith
NewUIs_TDC_7_3_0_alt_officer_wounded_by_Torpedo
Updated_Depth_Scales_by_gap_for_v7_2_0
SOAN_Filter_Fix(For TDW NewUIs_TDC_7_1_0)
This mod order worked for fixing the advanced depth gauges after I removed NewUIs_TDC_7_3_0_jimimadrids_map_tools.
@TDW, please check your PMs, I have seen other subsimmers stating that your PM mailbox is full again today.
Mikemike47 is offline   Reply With Quote
Old 04-29-13, 08:16 PM   #12
7thSeal
Samurai Navy
 
Join Date: Mar 2010
Posts: 592
Downloads: 199
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
You want the magnetic detonators switched off as default? Should be fairly easy to do if that's what you're looking for. I could make a user option for it.
What about the possibility of having a user option to set for having all the sub doors closed when starting the game? That way you wouldn't have to go close them everytime to cut down on the engine noise. This may have been a request long ago but can't remember if it was so thought I'd add the request.
7thSeal is offline   Reply With Quote
Old 05-03-13, 05:00 PM   #13
Choum
Sparky
 
Join Date: Aug 2012
Posts: 157
Downloads: 344
Uploads: 3
Default

Hello,

I have a problem but I don' know if it's working as intented or not.



Is it possible to identify ship from the New ui SOAN instead of the vanilla one ?
Because I can send the height of the mast from the new ui SOAN, but It's useless as you need to identify the ship before in the vanilla Xo box to use stadimeters or If you identify it from the vanilla SOAN, height of the mast will be reset to the vanilla ship selected everytime.

What I Am doing wrong, I look in the TheDarkWraithUserOptions but I don't find something to do that.

Last edited by Choum; 05-03-13 at 05:34 PM.
Choum is offline   Reply With Quote
Old 05-03-13, 05:11 PM   #14
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

^^^^You make me realise i don't have the stock manual anymore!
At least it does'nt appears because i don't clic the boat name, and it might be because i use the weapon officer for identification, and it automaticaly opens the NewUIs manual each time at the right page (i setted this option in the file viewer)...
Fifi is offline   Reply With Quote
Old 05-04-13, 04:00 AM   #15
Choum
Sparky
 
Join Date: Aug 2012
Posts: 157
Downloads: 344
Uploads: 3
Default

Thanks fifi.

So there's no button to validate a ship directly from the TDW manual identification.
Choum is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

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