View Single Post
Old 11-23-22, 06:17 AM   #14104
Torpedo
Torpedoman
 
Torpedo's Avatar
 
Join Date: Jul 2006
Location: Treviso, Italy
Posts: 246
Downloads: 1064
Uploads: 0


Default Recognition Manual and Page layout.py

Hi everyone!
I did some research and I (hopefully) found the file that manages the Recognition Manual.
This is the "Page layout.py" file in data\Scripts\Menu and I report some commands lines:

.................................................. .................................................. ........................
# Modified by The Dark Wraith
def SOAN_GetUnitInfo():
ScriptManagerManaged.Trace( "SOAN_GetUnitInfo" )
#from menu import Utilities

global tdwsoan
currentship = tdwsoan.GetCurrentShipInCategory()[ 1 ]
if currentship == None:
TDWFileUtils.ChangeMITexture( Pagelayout_SOAN_Unit_Profile, GetSH5InstallPath() + "\\data\\Menu\\Gui\\Layout\\SOANBlank.dds", GetSH5InstallPath() + "\\data\\Menu\\Gui\\Layout\\CurrentSOAN .dds", True )
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Name.T ext = ""
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Displa cementval.Text = ""
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Draftv al.Text = ""
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Length val.Text = ""
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Widthv al.Text = ""
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Mastva l.Text = ""
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Speedv al.Text = ""
Pagelayout_SOAN_Unit_TechnicalData_Unitinfo_Crewva l.Text = ""
Pagelayout_SOAN_Unit_TechnicalData_CountriesDates. ClearAllContents()
return

currentshipfolder = GetSH5InstallPath() + "\\data\\Sea" + currentship
# change the sil picture
newsil = currentshipfolder + "" + currentship + "_sil.dds"
#ScriptManagerManaged.Trace( "newsil=" + newsil )
TDWFileUtils.ChangeMITexture( Pagelayout_SOAN_Unit_Profile, newsil, GetSH5InstallPath() + "\\data\\Menu\\Gui\\Layout\\CurrentSOAN.dds", True )
#ScriptManagerManaged.Trace( "sil texture changed successfully" )
# get the ship info
Pagelayout_SOAN_Unit_Name.Text = tdwsoan.GetCurrentShipInCategory()[ 0 ].ToUpper()
cfgfile = currentshipfolder + "" + currentship + ".cfg"
aitfile = currentshipfolder + "" + currentship + ".ait"
txt = float( TDWFileUtils.FindEntryInFile( cfgfile, "Displacement", True, ";" ) ).ToString( "#####0.0" )
#ScriptManagerManaged.Trace( "Displacement: " + str( txt ) )
.................................................. .................................................. ......................

I don't know what to do and what to check to solve the SH5 problems with W11, but I leave it to the captains much knowledgeable than me to find the solution to the problems.
Or maybe someone has already looked into this file.
However this file has many other references to the Recognition Manual.

Torpedo

Last edited by Torpedo; 11-23-22 at 06:49 AM.
Torpedo is offline   Reply With Quote