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 03-13-10, 04:11 AM   #91
Chebawookee
Swabbie
 
Join Date: Nov 2005
Posts: 8
Downloads: 19
Uploads: 1
Default

Oh I see, I never tried it with an unedited file.
Chebawookee is offline   Reply With Quote
Old 03-13-10, 04:36 AM   #92
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,378
Downloads: 480
Uploads: 11
Default

Apparantly its working now. go figure. I didn't do anything different.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-13-10, 08:20 AM   #93
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 381
Downloads: 114
Uploads: 19


Default

Quote:
Originally Posted by gutted View Post
What am i doing wrong?

I've enabled the modding stuff in the main.cfg. I'm running windowed mode... yet all the items are greyed out. How can i access the script manager?
I have had the same problem. Read here.

Quote:
Originally Posted by maerean_m View Post
That happens because you right-clicked the task-bar button while the game was loading, during which it doesn't process the messages from the OS. So when Windows asks which options are enabled, it doesn't get an answer in a timely manner so it disables all of them.

In short (as specified in the 'big' post), right-click on task-bar only when there is no loading bar on the screen.
I know you may get impatient with all the loading times, but let the game do its job when it's loading (and don't touch the mouse )
jimimadrid is offline   Reply With Quote
Old 03-13-10, 08:46 AM   #94
Therion_Prime
Helmsman
 
Join Date: Apr 2005
Posts: 105
Downloads: 27
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
the 'logic' lives in the page's .py file. For example:

you add a button to Pagelayout_Groupfeedback. Now to 'handle' that button you need to open up \data\Scripts\Menu\Page layout.py and add the necessary code to handle click events, mouse in/out, etc.
Thanks, but I don't get it.

For example where is the code for "Page XO_TDC_Dialog.ini" ?
Therion_Prime is offline   Reply With Quote
Old 03-13-10, 11:18 AM   #95
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,378
Downloads: 480
Uploads: 11
Default

Quote:
Originally Posted by jimimadrid View Post
I have had the same problem. Read here.
I had already read that and followed it to the T.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids

Last edited by gutted; 03-13-10 at 05:02 PM.
gutted is offline   Reply With Quote
Old 03-13-10, 01:01 PM   #96
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

Quote:
Originally Posted by Ablemaster View Post
Wondered if someone could point me in the right direction, now i have Vista 64 bit i cant find an DDS converter to work with it ive looked everywhere all the usuall ones dont work correctly with Vista 64 so now im a bit stumped here. DDS Converter was fine with my old xp rig but now im lost, ive got photoshop cs4 also but no joy there, any help appreciated.
Nvidia has a .dds photoshop plugin that works with 32bit photoshop.

I can open dds files, but when I tried saving as dds it wouldn't allow me for unknown reason. So I use TheCompressonator instead for saving to .dds file format.

I have been doing this so far:
a) Load dds file into photoshop and rework the image
b) Save as Tif
c) Load tif into Ati's "TheCompressonator" (32bit and 64bit software) and do "save as original = save as" to store file as dds file.
d) I preview dds files in windows with TheCompressonator.

When viewing dds files in TheCompressonator, make sure to right click the image and switch to RGBA if the file has an alpha channel, or stick with default RGB if the file has no alpha channel. Right clicking the image offer three modes. RGB, RGBA & Alpha.

http://developer.nvidia.com/object/p...s_plugins.html (I think this is the phtososhp plugin)
http://ati.amd.com/developer/compressonator.html

TheCompressonator is available if one register on Amd/Ati's developer website, no confirmation email is even required. Just register and you can download their tools.

Last edited by Decoman; 03-13-10 at 01:50 PM.
Decoman is offline   Reply With Quote
Old 03-13-10, 02:06 PM   #97
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Decoman View Post
Nvidia has a .dds photoshop plugin that works with 32bit photoshop.

I can open dds files, but when I tried saving as dds it wouldn't allow me for unknown reason. So I use TheCompressonator instead for saving to .dds file format.

I have been doing this so far:
a) Load dds file into photoshop and rework the image
b) Save as Tif
c) Load tif into Ati's "TheCompressonator" (32bit and 64bit software) and do "save as original = save as" to store file as dds file.
d) I preview dds files in windows with TheCompressonator.

When viewing dds files in TheCompressonator, make sure to right click the image and switch to RGBA if the file has an alpha channel, or stick with default RGB if the file has no alpha channel. Right clicking the image offer three modes. RGB, RGBA & Alpha.

http://developer.nvidia.com/object/p...s_plugins.html (I think this is the phtososhp plugin)
http://ati.amd.com/developer/compressonator.html

TheCompressonator is available if one register on Amd/Ati's developer website, no confirmation email is even required. Just register and you can download their tools.
do a google search for: dds_converter_v21.exe. Great program!

Also if you use Photoshop CS4 64bit the nVidia DDS plug-ins don't work (bug with 64 bit version) but they do work with the 32 bit version which sucks for me since I have the 64 bit version.
TheDarkWraith is offline   Reply With Quote
Old 03-13-10, 06:18 PM   #98
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

@maerean_m, is there a way to have completely 'new' .py scripts to autoload when the game starts, without the need to hook into a stock .py file and calling "MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )" (I have made a blank/empty Page in menu editor). I have completely isolated functionality and would like to be able to install my mod without overwriting a stock file (which could potentially conflict with other mods).
skwasjer is offline   Reply With Quote
Old 03-13-10, 07:12 PM   #99
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by skwasjer View Post
@maerean_m, is there a way to have completely 'new' .py scripts to autoload when the game starts, without the need to hook into a stock .py file and calling "MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )" (I have made a blank/empty Page in menu editor). I have completely isolated functionality and would like to be able to install my mod without overwriting a stock file (which could potentially conflict with other mods).
import it. In the Page Default Hud.py file add a line in InitializeScript:

from xxx import xxx
where xxx = name of page (i.e. Pageobsperiscope).
Oh you're probably wanting to have the game automatically import a new Page without having to use import huh?
TheDarkWraith is offline   Reply With Quote
Old 03-13-10, 07:45 PM   #100
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Ya

I really don't want to distribute a new Page Default Hud.py file for just one new line, when all of my code is in a seperate .py file and a DLL

Currently I hooked via Page Background.py which is empty. But still, others may want to do so too, and then there's the drama of merging scripts. Being able to just dump a file in a folder and have it's initializer called would be alot easier for us...


[edit] Oh and import doesn't do the same thing as my little script above, I also need to invoke the script to run (at least, it doesn't work without it). Yea, I want an autoload folder of some sorts...

Currently my Page background.py file only does this... note, this is only to run the entire script in another file 'MyModule.py'. The target script does nothing UI related...

Code:
from MyModule import MyModule
 
def InitializeScript():
 MyModule.MakeSureIsLoaded( MenuPageWrapper.InitializeScript.Now )
 
def StartGame():
 pass
 
def EndGame():
 pass
 
def UnloadScript():
 pass
Really wish this wouldn't be necessary...

Last edited by skwasjer; 03-13-10 at 08:00 PM.
skwasjer is offline   Reply With Quote
Old 03-14-10, 08:22 PM   #101
Vorkapitan
Samurai Navy
 
Join Date: May 2006
Posts: 594
Downloads: 1367
Uploads: 0
Default How to edit .py files

Hi Mates,

I'm trying to edit "Page Default Hud.py". What tools do I use?

I'm currently in the "menu editor" but can't find a reference to this file anywhere.

Thank you!
__________________
__________________________________________________ ________
__________________________________________________ ________



Joe
Vorkapitan is offline   Reply With Quote
Old 03-14-10, 09:01 PM   #102
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

You can edit the scripts via the Script editor. Run the game in a window, then right click on the title bar to start the editor (one of the menu items). Each time you save the script it is reloaded so it's easy to test...
skwasjer is offline   Reply With Quote
Old 03-14-10, 09:31 PM   #103
Vorkapitan
Samurai Navy
 
Join Date: May 2006
Posts: 594
Downloads: 1367
Uploads: 0
Default

Sywasjer,

I was trying do do this "Open up Silent Hunter 5\data\scripts\menu\Page Default Hud.py
Search for:
def SetMiniMap( boolvalue ):
Look down a few lines and change these values to True:
Code:
PageDefaultHud_MapGroup_ParallelCourseButton.Visib le = False
PageDefaultHud_MapGroup_InterceptCourseButton.Visi ble = FalseThat's it."

I can't find it/or the method to do it.
Thanks for the info.
__________________
__________________________________________________ ________
__________________________________________________ ________



Joe
Vorkapitan is offline   Reply With Quote
Old 03-15-10, 02:50 AM   #104
gutted
The Old Man
 
Join Date: Apr 2005
Location: New Orleans, LA.
Posts: 1,378
Downloads: 480
Uploads: 11
Default

I'm sorta lost.

I was looking to add a thing or two into the UI. As a alittle "test" for myself i was just gonna do something simple like put an image onto the TDC page, and i was gonna have it rotate with the scope. Well I THOUGHT it would be pretty easy, as i have the mod that enables the TDC dials (by DarkWraith).. and i could just look at how the bearing dial works by peeking in the files that came with the mod.

No Joy.

I've got the graphic showing in-game no problem using the menu editor. But looking through the files that came with the TDC mod.. i just dont see where the bearing dial's hand is tied to the scope anywhere. I've looked through the .ini files, i've looked at the relevant scripts.. and i just dont see it.

If i could figure this one example out, it would go a long way to understanding how the UI modding works.
__________________


Solution Solver 2.3.2 - Visual Targeting Tools & Aids
gutted is offline   Reply With Quote
Old 03-15-10, 10:07 AM   #105
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Hi Gutted are you trying to port the AoB calculator into SH5. Nice good luck with it.

Being going over this thread trying to figure out how to mod stuff into the UI, but its all gone over my head.
Maybe someone like a Dev or TheDarkWraith (No1 in UI mods to date) could do up a bacic tutorial on say getting in a custom dial and tying it into the interface. Hint hint... Please

Last edited by reaper7; 03-15-10 at 10:44 AM.
reaper7 is offline   Reply With Quote
Reply


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 08:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.