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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-05-08, 11:55 PM   #16
lambda*sqrt(u*x)
Mate
 
Join Date: Jan 2008
Location: Some U-Boat pen in Austria
Posts: 59
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by latemail
Quote:
Originally Posted by lambda*sqrt(u*x)
Thank you! In the meantime I worked out a rudimentary linear slide rule... maybe I'm going to spice it up...

Hi lambda,

i´am very interested in your solution (especially in the "RelativeDrag=Yes"-part), even when it´s rudimentary, it would be a fine extension for my modding-tutorial .... and it would be helpfull for the next FF as well

if you like to share, pls post or PM the code

CU
Latemail
Is there a RelativeDrag=xx option? If yes, I will try to get some results with these...
__________________
SH III 1.4b
+ GWX 3.0
+ TMT v2
+ OLC GUI MkIId + ACM + Ext. FreeCam
+ no submarine icon on map
+ SH3 Cmdr 3.2
85% (ext. views ON)
lambda*sqrt(u*x) is offline   Reply With Quote
Old 02-06-08, 04:44 AM   #17
latemail
Gunner
 
Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by lambda*sqrt(u*x)
Quote:
Originally Posted by latemail
Quote:
Originally Posted by lambda*sqrt(u*x)
Thank you! In the meantime I worked out a rudimentary linear slide rule... maybe I'm going to spice it up...
Hi lambda,

i´am very interested in your solution (especially in the "RelativeDrag=Yes"-part), even when it´s rudimentary, it would be a fine extension for my modding-tutorial .... and it would be helpfull for the next FF as well

if you like to share, pls post or PM the code

CU
Latemail
Is there a RelativeDrag=xx option? If yes, I will try to get some results with these...

Hmmmm, I din´t follow the instructions of joegrundman in detail, but he mentioned that you have to add something like the following to the Dials.cfg:

[Dial75]
Name=circularsliderule
Type=16; DIAL_TORP_DEPTH
Cmd=Set_torpedo_depth
Dial=0x0x3F070015
CrtVal=0x0x3F070014You
NewVal=0x0
DialVal=0,360
RealVal=5,5.2; meters
Circular=Yes
CmdOnDrag=Yes
RelativeDrag=Yes

You obviously found another way if I get you right .... and I´am really interested in the "How-To-Do"!!

To get it clear for me:
- you made an object (Slide rule) which is moveable (as a MenuGroup I suppose)
- you add two objects (tongue, transp. window) to it
- you can adjust the tongue and window on the slide rule like in reality
- if you move the slide rule, the added objects keep their relativ position to it

then I have two questions:
1. how do you restrict the movemant of the added objects to a linear one?
2. how did you mange the relativ movemant of the whole group?

on my first attempt yesterday I can build only these two versions;
first - menu moving, objects fixed to the menu, but not moveable
second - menu moving, objects moving, but not together


CU
latemail is offline   Reply With Quote
Old 02-06-08, 05:33 AM   #18
joegrundman
Ocean Warrior
 
Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
Default

Hi Latemail

I'm not sure that you fully understand what's been said above.

I suggest you download and install the U-jagd tools mod to see what it is that has been created and how it works (although i thought you were familiar with the OLC GUI which incorporates most of the U-jagd tools).

This sliderule which we are talking about is a circular slide rule. It looks like the one in the pictures posted by Puster Bill. Lambda.... is also referring to a linear (straight) sliderule, but this is a different project.

The circular sliderule is not draggable as a whole. It uses the slideout function.

The command to make things draggable is Draggable=Yes in the menu file, and that is how the Jonz draggable chrono works, the draggable Navmap reference sheets by FLB Sale, and the draggable nomograph.

What you have seen is RelativeDrag=Yes in the dials.cfg. This is related to the property of how circular dials drag. If Relative drag =No, then the "top" position of the dial will always snap to where you click with the mouse (like the AOB notepad tool)

If RelativeDrag=Yes then the dial will rotate as you grab the dial with the mouse and drag it, like the range dial in the TDC.

klar?

However, it could be possible to make the complete dial draggable instead of slideout. I'll have a go at making that.

@ Puster Bill - nice work! The middle wheel doesn't need to be clear, just the indicator arm. You could just glue any scrap of convenient trtansparent material to it for that purpose

joe
__________________
"Enemy submarines are to be called U-Boats. The term submarine is to be reserved for Allied under water vessels. U-Boats are those dastardly villains who sink our ships, while submarines are those gallant and noble craft which sink theirs." Winston Churchill

Last edited by joegrundman; 02-06-08 at 06:52 AM.
joegrundman is offline   Reply With Quote
Old 02-06-08, 06:02 AM   #19
latemail
Gunner
 
Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by joegrundman
Hi Latemail

I'm not sure that you fully understand what's been said above.

I suggest you download and install the U-jagd tools mod to see what it is that has been created and how it works (although i thought you were familiar with the OLC GUI which incorporates most of the U-jagd tools).

This sliderule which we are talking about is a circular slide rule. It looks like the one in the pictures posted by Puster Bill. Lambda.... is also referring to a linear (straight) sliderule, but this is a different project.

The circular sliderule is not draggable as a whole. It uses the slideout function.

The command to make things draggable is Draggable=Yes in the menu file, and that is how the Jonz draggable chrono works, the draggable Navmap reference sheets by FLB Sale, and the draggable nomograph.

What you have seen is RelativeDrag=Yes in the dials.cfg. This is related to the property of how circular dials drag. If Relative drag =No, then the "top" position of the dial will always snap to where you click with the mouse (like the AOB notepad tool)

If RelativeDrag=Yes then the dial will rotate as you grab the dial with the mouse and drag it, like the range dial in the TDC.

klar?

However, it could be possible to make the complete dial draggable instead of slideout. I'll have a go at making that.


Klar, THX for your explanations, due to my "dusty" English I´am sometimes not really sure if I get the content right. But in this case I understand the two different projects, and I would like to solve lambda´s problem as well. As I wrote:

- made an object (e.g. Slide rule) which is moveable (a MenuGroup with Drag=true) - easy, DONE
- add two objects (e.g. tongue, transp. window) to it - easy, DONE
- you can drag the tongue and window - easy (Drag=true), but how to limit the movemant to a linear one?
- if you move the Group, the added objects keep their relativ position to it - no idea, didn´t see anything like that before!!

But maybe " ... with a little help from my friends ... "
latemail is offline   Reply With Quote
Old 02-06-08, 08:10 AM   #20
lambda*sqrt(u*x)
Mate
 
Join Date: Jan 2008
Location: Some U-Boat pen in Austria
Posts: 59
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by latemail
Klar, THX for your explanations, due to my "dusty" English I´am sometimes not really sure if I get the content right. But in this case I understand the two different projects, and I would like to solve lambda´s problem as well. As I wrote:

- made an object (e.g. Slide rule) which is moveable (a MenuGroup with Drag=true) - easy, DONE
- add two objects (e.g. tongue, transp. window) to it - easy, DONE
- you can drag the tongue and window - easy (Drag=true), but how to limit the movemant to a linear one?
- if you move the Group, the added objects keep their relativ position to it - no idea, didn´t see anything like that before!!

But maybe " ... with a little help from my friends ... "
Thank you joegrundman for making clear. latemail, I did not yet try it as a menu group, that's the next thing to try for... As of now, I'm just using three separate and only separately draggable items (the slide rule, its tongue, and its window), and their movement AFAIK can't be restricted to linear... that's how far my understanding goes, and I'm really new to modding, so I hope to find some new ideas and some help...
__________________
SH III 1.4b
+ GWX 3.0
+ TMT v2
+ OLC GUI MkIId + ACM + Ext. FreeCam
+ no submarine icon on map
+ SH3 Cmdr 3.2
85% (ext. views ON)
lambda*sqrt(u*x) is offline   Reply With Quote
Old 02-06-08, 09:14 AM   #21
joegrundman
Ocean Warrior
 
Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
Default

The way the U-jagd tools works is to take existing dials and give them different images.

It occurs to me that you could try using a sliderbar like you find on the message box. You have one fixed background of part of the sliderule, one slider image you replace with the second part of the sliderule and you could maybe fit a third sliderbar with the pastic indicator.

Look at this entry for the message sliderbar. there's lots to here to get you started

[G3F I149]
Name=MsgSlider
Type=1034;Slider
ItemID=0x3F040003
ParentID=0x3F040000
Pos=2,-32,15,84
Materials=8
Display=0;No stretch
Mat 0=data/menu/gui/layout/m_back.tga
Mat 1=data/menu/gui/layout/m_back.tga
Mat 2=data/menu/gui/layout/m_back.tga
Mat 3=data/menu/gui/layout/m_back.tga
Mat 4=data/menu/gui/layout/m_slide.tga
Mat 5=data/menu/gui/layout/m_slide.tga
Mat 6=data/menu/gui/layout/m_slide.tga
Mat 7=data/menu/gui/layout/m_slide.tga
MatFlags=0x1
TexFmt=0x9
SliderValue=1
SliderNumSteps=1
Vertical=true
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

Anyway it's just an idea, it may not work.
__________________
"Enemy submarines are to be called U-Boats. The term submarine is to be reserved for Allied under water vessels. U-Boats are those dastardly villains who sink our ships, while submarines are those gallant and noble craft which sink theirs." Winston Churchill
joegrundman is offline   Reply With Quote
Old 02-06-08, 09:22 AM   #22
latemail
Gunner
 
Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by lambda*sqrt(u*x)
Thank you joegrundman for making clear. latemail, I did not yet try it as a menu group, that's the next thing to try for... As of now, I'm just using three separate and only separately draggable items (the slide rule, its tongue, and its window), and their movement AFAIK can't be restricted to linear... that's how far my understanding goes, and I'm really new to modding, so I hope to find some new ideas and some help...

Ok, so I will stay in touch, maybe we find a solution, would be very helpfull for other tools too .........
__________________


______________________________________

finished
OLC1.1.4/1.2.1-Sale-Kombimod for Stock (Thread)
OLC1.2.1-Sale-Kombimod for GWX 2.0 (Thread)
OLC1.2.3-Sale-Kombimod for GWX 2.0 (Thread)

working on
Modding-Tutorial for menu_1024_768.ini (Thread, presently only german)

latemail is offline   Reply With Quote
Old 02-06-08, 10:54 AM   #23
lambda*sqrt(u*x)
Mate
 
Join Date: Jan 2008
Location: Some U-Boat pen in Austria
Posts: 59
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by joegrundman
The way the U-jagd tools works is to take existing dials and give them different images.

It occurs to me that you could try using a sliderbar like you find on the message box. You have one fixed background of part of the sliderule, one slider image you replace with the second part of the sliderule and you could maybe fit a third sliderbar with the pastic indicator.

Look at this entry for the message sliderbar. there's lots to here to get you started

[G3F I149]
Name=MsgSlider
Type=1034;Slider
ItemID=0x3F040003
ParentID=0x3F040000
Pos=2,-32,15,84
Materials=8
Display=0;No stretch
Mat 0=data/menu/gui/layout/m_back.tga
Mat 1=data/menu/gui/layout/m_back.tga
Mat 2=data/menu/gui/layout/m_back.tga
Mat 3=data/menu/gui/layout/m_back.tga
Mat 4=data/menu/gui/layout/m_slide.tga
Mat 5=data/menu/gui/layout/m_slide.tga
Mat 6=data/menu/gui/layout/m_slide.tga
Mat 7=data/menu/gui/layout/m_slide.tga
MatFlags=0x1
TexFmt=0x9
SliderValue=1
SliderNumSteps=1
Vertical=true
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

Anyway it's just an idea, it may not work.
Hm... a good thing to look into - but why are all those Mat x's quadruple-referenced? Do you know a documentation about all those entries?

EDIT: OK... got an answer for this one... thanks latemail (Deutsch ist meine Muttersprache) for the menu...ini tutorial!
__________________
SH III 1.4b
+ GWX 3.0
+ TMT v2
+ OLC GUI MkIId + ACM + Ext. FreeCam
+ no submarine icon on map
+ SH3 Cmdr 3.2
85% (ext. views ON)

Last edited by lambda*sqrt(u*x); 02-06-08 at 11:05 AM.
lambda*sqrt(u*x) is offline   Reply With Quote
Old 02-06-08, 11:31 AM   #24
latemail
Gunner
 
Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
Default

Quote:
EDIT: OK... got an answer for this one... thanks latemail (Deutsch ist meine Muttersprache) for the menu...ini tutorial!

gut zu wissen good to know that
__________________


______________________________________

finished
OLC1.1.4/1.2.1-Sale-Kombimod for Stock (Thread)
OLC1.2.1-Sale-Kombimod for GWX 2.0 (Thread)
OLC1.2.3-Sale-Kombimod for GWX 2.0 (Thread)

working on
Modding-Tutorial for menu_1024_768.ini (Thread, presently only german)

latemail is offline   Reply With Quote
Reply

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 04:51 PM.


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