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 04-11-08, 04:00 AM   #1
ichso
Ace of the Deep
 
Join Date: Jul 2005
Location: Germany's oldest city alive
Posts: 1,066
Downloads: 57
Uploads: 0
Default Advice(s) on menu_1024x768.ini please

Hi,

I was about to write a PM to OLC but thought it might be good to ask that in general so somebody who might need this too comes across this question.

At first a little problem:
At the nav map (F5) I don't get the speed conversion charts, which is strange as no other mod fiddled with the menu_1024...ini so far and the SpeedTable.tga is also there. I currently played in 1280x1024 resolution but set it back to 1024x768 as I thought a higher resolution interferes with the absolut pixel-related positions of the items in menu_1024...ini.

Now the other thing:
I just started playing SH3 again and found out about the OLC GUI (1.2.3). I really love it and use it. But a few month ago, I also loved the 6 Dials Sim Feeling mod.
I now want to integrate this two into one mod.
I know that there's already a kombi mod out there for sliding dials and the OLC GUI, but I like it more if 1. the dials are bigger and 2. there slide in from the right (or at least the bottom more to the right).
Don't know why, but I have my gripes with using dials on the left.

The "6 Dials ..." mod has a great manual of how to setup up the mod piece by piece. So I followed the instructions and wanted to start out with the big compass on the
right (as it is already in GWX 2.0 too, but not anymore with OLC GUI).
I added the according sections into the menu_1024...ini as described in the readme.exe of the "6 Dials..." mod.

I added it right behind the whole OLC-stuff section, gave it it's unique number etc.
I didn't change any position values for this dial item but it appears on the bottom to the left is only seen halfway and doesn't slide out either.

Now my question is: what exactly controls WHERE you have to point the cursor to make any item slide out.
And where is the point of ordinates in SH3 (0,0) ? In the upper left corner of the screen ? And if you use any screen resolution, does that interfere with those absolute pixel values in the menu_1024...ini ?

Thanks in advance, i.
ichso is offline   Reply With Quote
Old 04-11-08, 04:22 AM   #2
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

Quote:
Originally Posted by ichso
Now my question is: what exactly controls WHERE you have to point the cursor to make any item slide out.
And where is the point of ordinates in SH3 (0,0) ? In the upper left corner of the screen ? And if you use any screen resolution, does that interfere with those absolute pixel values in the menu_1024...ini ?

Thanks in advance, i.
It's just a rollover state so you only need to be in the general area of the menu item to have it appear. If you have the popout compass, the slideout area you mouse needs to be in is anywhere along the height on the item/tga. If you are experiencing trouble with menu items, you have cross pollination from other mods/menu.ini's & possible menu groups sharing the same group/item name.

Top left is 0,0 so all other co-ordinates stem from this point. You can even go into minus numbers, like the draggable flaggen sheet.

Resolution has no effect on the menu.ini. All co-ordinates are still in a 1024x768 configuration.
__________________
danlisa is offline   Reply With Quote
Old 04-11-08, 04:39 AM   #3
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Quote:
Originally Posted by danlisa
Resolution has no effect on the menu.ini. All co-ordinates are still in a 1024x768 configuration.
The second part is correct.
SH3 doesn't "translate" higher resolutions down to 1024x768 very well when it comes to the menu file. If your menu ini relies on pixel-perfect positioning (e.g. OLC GUI) then rounding errors at higher resolutions can result in malfunctioning slide-outs.
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 04-11-08, 06:19 AM   #4
bert8for3
Ace of the Deep
 
Join Date: Dec 2005
Location: Canada
Posts: 1,124
Downloads: 110
Uploads: 0
Default

Quote:
Originally Posted by ichso
...
I just started playing SH3 again and found out about the OLC GUI (1.2.3). I really love it and use it. But a few month ago, I also loved the 6 Dials Sim Feeling mod.
I now want to integrate this two into one mod.
I know that there's already a kombi mod out there for sliding dials and the OLC GUI, but I like it more if 1. the dials are bigger and 2. there slide in from the right (or at least the bottom more to the right).
Don't know why, but I have my gripes with using dials on the left.
...
Ichso, have you used the MyFavoriteDials mod (MFD)? It was a combo of 6Dials and some other stuff.

The reason I ask is that I would also love to have the bigger (and slideout) dials but also a few of the other elements of MFD such as the transparent text and command stuff at the bottom. OLC's GUI is terrific, but there are some aspects I prefer from MFD (this is absolutely not a criticism of OLC's GUI, just to be clear, merely personal preference).

Anyway, all to say that if you need a hand I'd be happy to help. I have no modding experience or ability (just some very limited idea about how the file structure works), but could eg test or whatever. Even if you just wanted to merge in 6Dials, I could maybe learn enough to figure out how to merge MFD.
__________________
bert8for3 is offline   Reply With Quote
Old 04-11-08, 09:04 AM   #5
ichso
Ace of the Deep
 
Join Date: Jul 2005
Location: Germany's oldest city alive
Posts: 1,066
Downloads: 57
Uploads: 0
Default

Thanks for the hints.

I'm currently installing a second SH3 version, which I'm going to use without GWX and Patches to test my results. It just loads way faster than with GWX on top

I think I begin to understand how everything works in this file.

If the mod wants to create the switchable 25m-260m depth gauges, it first creates a group to put all needed graphics and controls together. An ItemID and ParentID allow you to reference specific items (menus, dials, ...).
So, for the depth gauge group, there is an item of type menu group, that works as the top level item for the whole depth gauge group.

Code:
G3F I347
Name=FLB Sale`s 6 Anzeigen, Tiefenmesser
Type=1026;Menu group
ItemID=0x3F0C0000
ParentID=0x3F000000
Pos=678,344,344,344
Color=0xFFFFFFFF
VertSlide=-343
So this is also the only item of the whole group that needs to get the absolut position on the screen and the slideout setting.
The other items (that refer to this one as their parent item) have position values only relative to this one's.

The following items (which still belong to this group) then load the needed graphics, like the dial graphic or backgrounds and pointers.

My problem now is, that I copied the whole section of the MyFavDial mod, which has something to do with the depth gauges, at the end of my G3F section in menu_1024_768.ini.
I renamed the numbers for the new items, so that they follow the numbering of the G3F section. (It ended at G3F I346 and I named them G3F I347, G3F I348,...).

But the dial doesn't get displayed correctly.
The only thing that gets displayed is a little digital number which gives my current depth and which slides in and out.
If I click somewhere near it I give a speed command, although I don't see the dial.
Don't know what is wrong or missing, just inserted the section as the mod does.
And I'm using stock SH3 now, so there is no other mod disturbing this.

Quote:
Originally Posted by bert8for3
Anyway, all to say that if you need a hand I'd be happy to help. I have no modding experience or ability (just some very limited idea about how the file structure works), but could eg test or whatever. Even if you just wanted to merge in 6Dials, I could maybe learn enough to figure out how to merge MFD.
Help is appreciated
As I see, we seem to have the same goals on this. I never did anything with this file before, too.

The thing I want to do, is to just integrate the depth gauges, speed dial and compass like it was with the original MFD.
As I use OLC GUI, I wanted to adjust the sliding settings, so that for example the speed dial slides further upwards than it did in the original MFD. Because the OLC GUI has this bar at the bottom which would otherwise be in the way of the sliding dial.



EDIT: Intelligent as I am, I forgot to include the needed graphics. No wonder that none got displayed if there weren't any...
I just forgot that in stock SH3, there where no such big dial graphics but with GWX there where.
Depth gauges now working as intended in original MFD.
ichso is offline   Reply With Quote
Old 04-11-08, 09:06 AM   #6
danlisa
Navy Seal
 
danlisa's Avatar
 
Join Date: Oct 2005
Location: Cornwall, UK
Posts: 5,499
Downloads: 45
Uploads: 1
Default

Have you installed the textures that are required for the larger dials?
__________________
danlisa is offline   Reply With Quote
Old 04-11-08, 09:21 AM   #7
ichso
Ace of the Deep
 
Join Date: Jul 2005
Location: Germany's oldest city alive
Posts: 1,066
Downloads: 57
Uploads: 0
Default

Now I have, and now the depth gauges work as they should.

I'm currently fiddling with the slide setting.
There are two sections:

Code:
(G3F I347)
Name=FLB Sale`s 6 Anzeigen, Tiefenmesser
Type=1026;Menu group
ItemID=0x3F0C0000
ParentID=0x3F000000
Pos=678,344,344,344
Color=0xFFFFFFFF
VertSlide=-100

(G3F I348)
Name=Group feedback
Type=1026;Menu group
ItemID=0x3F010000
ParentID=0x3F000000
Pos=678,344,344,344
Color=0xFFFFFFFF
VertSlide=-100
Where one seems to control how far the whole group slides upwards and the other how far it would slide downwards again when the cursor leaves the area.

My respect for the modders increases as it is pretty annoying to start a big application as sh3 everytime you want to test a little change you made
ichso is offline   Reply With Quote
Old 04-11-08, 09:33 AM   #8
bert8for3
Ace of the Deep
 
Join Date: Dec 2005
Location: Canada
Posts: 1,124
Downloads: 110
Uploads: 0
Default

Quote:
Originally Posted by ichso
My respect for the modders increases as it is pretty annoying to start a big application as sh3 everytime you want to test a little change you made
You might want to try an empty campaign files mod for that ... I put it up here http://hosted.filefront.com/bert8for3 ... from another post ... "You'll load faster for testing if you use a dummy or empty campaign folder (back up your existing campaign folder first). If you search the forum, you should find an empty_campaign mod. Enable it with JSGME, which will itself also backup your existing campaign folders (but make a separate backup first to be sure). That will let you start up faster, 'cause it won't have to load full campaign files." edit/add: Forgot to mention ... if you do that, start the game up directly via the sh3 game icon, and not via SH3Cmdr (if you use it). That way, you won't mess up SH3Cmdr's recognition of your saved campaign. After you're done testing, which best just in an academy mission or a created simple test mission for faster loading, disable the empty campaign mod, which will put you back where you were before, then you can start up via SH3Cmdr to resume your saved campaign.

edit/add: and let me know if I can help at all (which is already exaggerating my non-existent abilities :rotfl: ). I'll study the posts above on the weekend, RL work interfering now.
__________________
bert8for3 is offline   Reply With Quote
Old 04-11-08, 10:02 AM   #9
ichso
Ace of the Deep
 
Join Date: Jul 2005
Location: Germany's oldest city alive
Posts: 1,066
Downloads: 57
Uploads: 0
I created a single mission where my boat sails lonley on the open atlantic in a world empty of any other ships or people.

I found out that in my previous post, the first vertical slide value does actually nothing. By changing the position and vertical slide value in the second block the depth gauges now float 100 pixels above the lower screen boundary. This should be enough to not interfere with the OLC GUI's bottom bar.

But this comes with a price: because there is now a little bit room between the screen bottom and the (fully upslided) dial, the dial tries to slide back down to the bottom if the cursor stays in the (100 pixel high) area between it and the bottom.
So to avoid a slight 'shaking' of the dial, the mouse cursor has to follow it a little bit as it slides up.
But I think this is something one can easily get used to.

Now I will try to insert the other sliding dials too and if everything works as intended, I will try the whole thing together with GWX and OLC GUI.
ichso is offline   Reply With Quote
Old 04-11-08, 10:41 AM   #10
ichso
Ace of the Deep
 
Join Date: Jul 2005
Location: Germany's oldest city alive
Posts: 1,066
Downloads: 57
Uploads: 0
Default

Does the speed conversion chart in OLC GUI slides out at every station or just when you're at the nav map station ?

EDIT:
The adjustments are working correctly without OLC GUI.
But when I pasted my additions into the menu_1024...ini which comes with OLC GUI, there appears some strange behaviour which I think OLC should be able to explain best.

The sliding dials work like they should but after inserting them, the TDC, the attack disk and the left dial bar of OLC GUI are always present and won't disappear. It doesn't *seem* to depend on the sliding dials because no matter if one of them is slided out or no one is visible, those three items decribed above don't change their behaviour.

What I did is the whole sliding dials section beneath the OLC GUI stuff. The latter ends at (G3F I400) so the sliding dials start at (G3F I401) and go on to 46x. No wrong numbers inbetween or something, I checked extra carefully.
Maybe it's something with the ItemID or ParentID numbers ? I didn't check all of them yet.

Last edited by ichso; 04-11-08 at 11:01 AM.
ichso is offline   Reply With Quote
Old 04-11-08, 11:15 AM   #11
Gairith
Planesman
 
Join Date: May 2005
Location: Below . . .
Posts: 186
Downloads: 4
Uploads: 0
Default

I currently use the 6 dial mod with stock GWX and I have considered trying out OLC GUI. Will be watching your progress on this.
__________________
"You can either watch things happen, make things happen, or wonder what the heck happened." Capt. Phil Harris

GWX 2.1 - SH3 Commander 3.2 - OLC Ubermod 2.4.2
-
DiD
Gairith is offline   Reply With Quote
Old 04-11-08, 01:17 PM   #12
ichso
Ace of the Deep
 
Join Date: Jul 2005
Location: Germany's oldest city alive
Posts: 1,066
Downloads: 57
Uploads: 0
Default

Ok, I need a little more help.

As described above I had the problem that some of the items of OLC GUI weren't functional anymore after inserting the sliding dials into the menu_1024...

I discovered that some of the ItemIDs of OLC GUI stuff and my sliding dials where identical. So I wanted to just rename my inserted items to resolve this conflict.

Because these are over 100 Blocks that need to be edited by hand, I simply used notepad++ to search for regular expressions (0x3F...) and replace them by 0x9F...
Of course only in the sections of my added dials and nowhere else.
Then I also realised that some of those 'high level' items in my list refered to the 'highest level' item of the G3F section, which is in Block (G3F I0) and has the ItemID 0x3F000000. So I edited all (e.g. 6) blocks which refer to this (G3F I0) as their parent item so that they again show 0x3F0000000 as their ParentID.

This in fact resolved this conflict. I was happy to fire SH3 up again and see OLC GUI and the sliding dials in great teamwork, but after loading a mission I had to realise that my sliding dials were sliding and showing up correctly but they weren't functional anymore - just for decoration.

All those Items still have IDs like 0x9F... as described above but I did not see that become a problem. With my method every gui item in the file has it's unique block number and ID. And the 'high level' items of the sliding dials refer to their correct parent item (which is G3F I0 with ItemID=0x3F000000).

Would be great if some more experienced modder could explain to me what makes my inserted dials unusable.
ichso is offline   Reply With Quote
Old 04-11-08, 02:31 PM   #13
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

All the ID's on a page have to start with the page ID.

In other words, everything on 3F has to start with 0x3F.
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis is offline   Reply With Quote
Old 04-11-08, 04:34 PM   #14
ichso
Ace of the Deep
 
Join Date: Jul 2005
Location: Germany's oldest city alive
Posts: 1,066
Downloads: 57
Uploads: 0
Default

I researched the structure of the ItemIDs a little bit in my sliding dials section and found out that every ID correspondes to the regex 0x3F..0...

So what I did was to replace each of those regular expressions by 0x3F..7...
and because some of the items have 0x3F000000 as their ParentID I changed those few ones back to this value.
So everything should be in order, but when loading the game the sliding dials slide correctly but still aren't usable.

Very strange indeed...

EDIT: I also researched my menu_1024...ini (original from OLC Gui) and there are no items with ID 0x3F..7... so there shouldn't be any conflict left.
ichso is offline   Reply With Quote
Old 04-12-08, 02:37 AM   #15
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

You did add your new dials to dials.cfg?
__________________
Freedom of speech - priceless. For everything else there's Mastercard.
onelifecrisis 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 10:08 AM.


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.