![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Commander
![]() Join Date: Jan 2010
Location: Elmira, NY
Posts: 445
Downloads: 129
Uploads: 0
|
![]()
I never messed with Page background.py before, but my question can two be merged into one.
The reason I ask, Realistic_Hydrophone_1_1 and Speech Recognition_MiTons_NewUI_Editon_v0.4.1_english both have Page background.py I would like a to figure out a way to make them both compatible with each other. ![]() Here is Realistic_Hydrophone_1_1 Page background.py Code:
from menu import * from RealisticHydrophone import RealisticHydrophone def InitializeScript(): ScriptManagerManaged.Trace( "Page background InitializeScript" ) RealisticHydrophone.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now ) def StartGame(): ScriptManagerManaged.Trace( "Page background StartGame" ) def EndGame(): ScriptManagerManaged.Trace( "Page background EndGame" ) def UnloadScript(): ScriptManagerManaged.Trace( "Page background UnloadScript" ) Code:
from SpeechRecognition import SpeechRecognition def InitializeScript(): SpeechRecognition.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now ) def StartGame(): pass def EndGame(): pass def UnloadScript(): pass |
![]() |
![]() |
![]() |
#2 |
Grey Wolf
![]() Join Date: Sep 2006
Location: NY
Posts: 995
Downloads: 1078
Uploads: 6
|
![]()
Search for JTXE enabler. Winmerge in download utilities section.
__________________
JSGME help links and common error solutions |
![]() |
![]() |
![]() |
#3 |
Commander
![]() Join Date: Jan 2010
Location: Elmira, NY
Posts: 445
Downloads: 129
Uploads: 0
|
![]() |
![]() |
![]() |
![]() |
#4 |
Black Magic
![]() |
![]()
merging them is a snap:
Code:
from menu import * from RealisticHydrophone import RealisticHydrophone from SpeechRecognition import SpeechRecognition def InitializeScript(): ScriptManagerManaged.Trace( "Page background InitializeScript" ) RealisticHydrophone.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now ) SpeechRecognition.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now ) def StartGame(): ScriptManagerManaged.Trace( "Page background StartGame" ) def EndGame(): ScriptManagerManaged.Trace( "Page background EndGame" ) def UnloadScript(): ScriptManagerManaged.Trace( "Page background UnloadScript" ) ![]() |
![]() |
![]() |
![]() |
#5 | |
Commander
![]() Join Date: Jan 2010
Location: Elmira, NY
Posts: 445
Downloads: 129
Uploads: 0
|
![]()
Cool, thanks! I might not use it. I haven't had to need for the Realistic_Hydrophone_1_1 Page background.py. I know I have a lot of mods enabled, mostly little ones, I figured I need to be smarter now and not go crazy with every mod. I have been getting by so far.
"If it not broke, why fix it?" Isn't the function of the Realistic_Hydrophone_1_1 in TDW NewUI 7.4.2? Or are those buttons in hydrophone just the foundation for the Realistic Hydrophone mod? I know I tried to change the time when hydrophone man gives me messages about target following, I just get default 60 seconds. Quote:
|
|
![]() |
![]() |
![]() |
|
|