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-14-10, 08:10 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Nauticalwolf View Post

1) I have reorganised the full TDC screen so that target data is on the right hand side and torpedo data/control is on the left.

2) Firstly: I would like to get working the water depth and periscope level that seems to still be there (please see next photo) rescale and put it in place of the SH5 periscope level.
I move this ....................................and it doesn't show up ????

3) Second minor change: at the dials I wish to add a "working" handle to the engine telegraph (I have added it, but it doesn't "scale" or "zoom" with the rest of the dial) it does work in that It is joined to the New val "hand"

4) Third point: I am trying to get different and distinct graphics for the dial toggles. I have created and placed the graphics but whenever I "move"/ change the location in the cropping I still only get the "valve type" below which is set for the "depth" toggle.

I am not having much luck so I come seeking your much wisdom .
1) did you ensure you didn't 'write' over the pattern running torpedo dials? They are located on the left side of the TDC but not visible. They were supposed to show up when you got pattern runners but there appears to be a game bug that prevents this. In lieu of this I've added a button that one can click to show these missing dials.

2) looked at it with menu editor and materials are valid and alphas aren't disabled so the c++ code must be turning it's visibility to 'off'. You could edit the associated .py file for this:

(this example is based off of the stock Page attack periscope.py):
Code:
def InitializeScript():
    Menu.PageActivated += Menu_PageActivated
    Menu.PageDeactivated += Menu_PageDeactivated
    Menu_PageActivated( Pageattackperiscope )
 
 
def Menu_PageActivated( page ):
    if page == Pageattackperiscope:
        Pageattackperiscope_Waterlevel.Visible = True
        for item in Pageattackperiscope_Waterlevel.Controls:
            item.Visible = True
 
def Menu_PageDeactivated( page ):
    if page == Pageattackperiscope:
        Pageattackperiscope_Waterlevel.Visible = False
        for item in Pageattackperiscope_Waterlevel.Controls:
            item.Visible = False
 
def UnloadScript():
    Menu.PageActivated -= Menu_PageActivated
    Menu.PageDeactivated -= Menu_PageDeactivated
that should show the old style water level when the page is activated.

3) and 4) need more pictures and/or information as I'm not quite sure what you're trying to do.
TheDarkWraith is offline   Reply With Quote
Old 04-14-10, 03:53 PM   #2
Nauticalwolf
Electrician's Mate
 
Join Date: Mar 2008
Posts: 132
Downloads: 89
Uploads: 5
Default

Quote:
Originally Posted by TheDarkWraith View Post
1) did you ensure you didn't 'write' over the pattern running torpedo dials? They are located on the left side of the TDC but not visible. They were supposed to show up when you got pattern runners but there appears to be a game bug that prevents this. In lieu of this I've added a button that one can click to show these missing dials.

2) looked at it with menu editor and materials are valid and alphas aren't disabled so the c++ code must be turning it's visibility to 'off'. You could edit the associated .py file for this:

(this example is based off of the stock Page attack periscope.py):
Code:
def InitializeScript():
    Menu.PageActivated += Menu_PageActivated
    Menu.PageDeactivated += Menu_PageDeactivated
    Menu_PageActivated( Pageattackperiscope )
 
 
def Menu_PageActivated( page ):
    if page == Pageattackperiscope:
        Pageattackperiscope_Waterlevel.Visible = True
        for item in Pageattackperiscope_Waterlevel.Controls:
            item.Visible = True
 
def Menu_PageDeactivated( page ):
    if page == Pageattackperiscope:
        Pageattackperiscope_Waterlevel.Visible = False
        for item in Pageattackperiscope_Waterlevel.Controls:
            item.Visible = False
 
def UnloadScript():
    Menu.PageActivated -= Menu_PageActivated
    Menu.PageDeactivated -= Menu_PageDeactivated
that should show the old style water level when the page is activated.

3) and 4) need more pictures and/or information as I'm not quite sure what you're trying to do.
Many, many thanks for that.

1. I had also moved the Pattern runing torpedo controls, but wasn't aware that they require a "switch" to activate.


2. I'll give the code a try. Intent is to to add to both obs and atk periscope views. The alpha channel is good and by the hieght of the water level it appears to be registering a "quantity" from somewhere. I need to just see it where I want it first, then make adjustments.

3. Here is a picture of a telegrapgh that I saw on Reapers WIP UI mod.
I think it looks great but I doesn't appear to be dynamic. I have made my own graphic and "attached it to the dial hand (New val). It now moves as a telegraph should. When you select the new throttle setting the little handle moves there first and then the dial hand follows. Problem is it doesn't scale up when you zoom in, and even the dial hand it is attached to stays at the same small size. I can't figure out how the change to the graphic has "broken" the scalling?


4. I'm trying to achieve different looking "stands" for each of the dials and cant figure out why it always reverts to just initial graphic. I have adjusted the cropping area for each "toggle" but they all just revert to the same one

Again many thanks for your knowledge and wisdom.
__________________
We have learned from our mistakes; we now reproduce them almost perfectly!

We're here to protect Democracy - not practice it!
Nauticalwolf is offline   Reply With Quote
Old 04-14-10, 04:26 PM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Nauticalwolf View Post
3. Here is a picture of a telegrapgh that I saw on Reapers WIP UI mod.
I think it looks great but I doesn't appear to be dynamic. I have made my own graphic and "attached it to the dial hand (New val). It now moves as a telegraph should. When you select the new throttle setting the little handle moves there first and then the dial hand follows. Problem is it doesn't scale up when you zoom in, and even the dial hand it is attached to stays at the same small size. I can't figure out how the change to the graphic has "broken" the scalling?


4. I'm trying to achieve different looking "stands" for each of the dials and cant figure out why it always reverts to just initial graphic. I have adjusted the cropping area for each "toggle" but they all just revert to the same one

3) instead of creating a new hand and attaching it to the new value, if you substitute what you want the new value to be (graphic wise) then everything should work (scaling, etc.). Since the new value will be a 'needle' that has a handle with it. Make sense? Open the menu editor and look what the graphic used for new value is - make that be what you're trying to do above (give it the correct .dds and crop settings). Because I do animations on the dials you would have to edit all the animation code and all to make the way you're trying to do work - it's not worth it. The easier way is to replace the new value with what you want.

4) It reverts to just initial graphic because the underlying control is a button. The button has 4 materials (not selected, selected, mouse over, ?? - and probably not in that order). Because these are game (c++) controlled, the game isn't updating the VisibleBitmapIndex property of those buttons. What I would do: ensure that each dial's button's materials crop settings are staggered. What was crop settings for material #2 of dial #1 is now crop settings for material #1 of dial #2. What was crop settings for material #3 of dial #1 is now crop settings for material #1 of dial #3. See what that gets you. Basically you don't want the same crop settings for any material of any dial. Material #1 != Material #2 != Material #3 != Material #4 for any dial and Material #1 dial #1 != Material #1 dial #2 != Material #1 dial #3, so on and so forth for the other materials.
TheDarkWraith is offline   Reply With Quote
Old 04-14-10, 06:31 PM   #4
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by Nauticalwolf View Post
Here is a picture of a telegrapgh that I saw on Reapers WIP UI mod.
I think it looks great but I doesn't appear to be dynamic. I have made my own graphic and "attached it to the dial hand (New val). It now moves as a telegraph should. When you select the new throttle setting the little handle moves there first and then the dial hand follows. Problem is it doesn't scale up when you zoom in, and even the dial hand it is attached to stays at the same small size. I can't figure out how the change to the graphic has "broken" the scalling?
In my Mod the Dial handle is Assigned to NewVal while the inner dial Needle is assigned to CurVal.
This way you select speed as normal with the telegraph handel and the inner needle rotates from its current position to your selected position.
Works nice in game compared to the needle been attached to the handle - had tried it that way first.
reaper7 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 02:32 AM.


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.