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 09-02-08, 04:33 PM   #1
Darkbluesky
Sparky
 
Join Date: Sep 2006
Posts: 155
Downloads: 61
Uploads: 0
Default menu_1024_768.ini guide?

Hi,

Is there out there a guide of the menu_1024_768.ini file? I mean, what that means each of the variables and their values, as for example

ParentID=0x40030000
Pos=16,-182,134,20
Color=0x585858FE
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/layout/bgr00.tga
MatFlags=0x1
TexFmt=0x9

Is there some guide about modding SH3, at least its text file?

Tx
Darkbluesky is offline   Reply With Quote
Old 09-02-08, 08:10 PM   #2
sonar_PL
Machinist's Mate
 
Join Date: Sep 2006
Location: czestochowa
Posts: 123
Downloads: 32
Uploads: 0
Default

I tried to find any menu*.ini solutions but still nothing. We need good coder for coding good SH MENU EDITOR tool but its sounds like only dreams
sonar_PL is offline   Reply With Quote
Old 09-03-08, 12:53 AM   #3
Darkbluesky
Sparky
 
Join Date: Sep 2006
Posts: 155
Downloads: 61
Uploads: 0
Default

Well, it doesn't sound so difficult, I believe that even I could code myself a SH3 Menu Editor, IF I could obtain full (or enough complete) description of all the variables, what they do AND their possible values...in order to do some editor more useful than an improved notepad...

Last edited by Darkbluesky; 09-03-08 at 02:00 AM.
Darkbluesky is offline   Reply With Quote
Old 09-03-08, 02:40 AM   #4
wdq4587
A-ganger
 
Join Date: Sep 2005
Posts: 71
Downloads: 10
Uploads: 0
Default

There are a SH4 menu maker. But I don't know it can do how much.

I also found one post tell some detail of menu_1024_768.ini. Not all but I guess about 1/3 secret. But I can not find the saved page in my office PC (may be in home PC), or remember some keywords to search it.

Something I need to say is many MenuItemID is hard coded. You can not delete and replicate it. It can be move. onelifecrisis can do that. But my attempt have failed.

--------------------

Just found it: [TEC] Tutorial: Deconstructing the menu_1024_768.ini file items
http://www.subsim.com/radioroom/showthread.php?t=111832

Last edited by wdq4587; 09-03-08 at 02:53 AM.
wdq4587 is offline   Reply With Quote
Old 09-03-08, 08:00 AM   #5
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

For those who can read German, there's a menu.ini guide somewhere on another forum. I think it was latemail who wrote it but my memory may be wrong. I don't have a link, sorry.
onelifecrisis is offline   Reply With Quote
Old 09-03-08, 08:02 AM   #6
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

Quote:
Originally Posted by wdq4587
Something I need to say is many MenuItemID is hard coded. You can not delete and replicate it. It can be move. onelifecrisis can do that.
I can?
onelifecrisis is offline   Reply With Quote
Old 09-03-08, 10:36 AM   #7
sonar_PL
Machinist's Mate
 
Join Date: Sep 2006
Location: czestochowa
Posts: 123
Downloads: 32
Uploads: 0
Default

Lol

Maybe someone make a FAQ how this menu work and how to edit this
sonar_PL is offline   Reply With Quote
Old 09-03-08, 08:12 PM   #8
wdq4587
A-ganger
 
Join Date: Sep 2005
Posts: 71
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by onelifecrisis
Quote:
Originally Posted by wdq4587
Something I need to say is many MenuItemID is hard coded. You can not delete and replicate it. It can be move. onelifecrisis can do that.
I can?
You can move hard coded menuitem like light on dials from G2B to G3F, but my try move from G2B to G26 failed.
wdq4587 is offline   Reply With Quote
Old 09-03-08, 08:45 PM   #9
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by onelifecrisis
Quote:
Originally Posted by wdq4587
Something I need to say is many MenuItemID is hard coded. You can not delete and replicate it. It can be move. onelifecrisis can do that.
I can?
:rotfl:
I think you 'Mind Freaked' someone.
  Reply With Quote
Old 09-04-08, 08:45 AM   #10
onelifecrisis
Maverick Modder
 
Join Date: Aug 2007
Location: England
Posts: 3,895
Downloads: 65
Uploads: 3
Default

LOL @ privateer

On topic, here's some info I posted to Joe and Hitman in the U-Jagd forum during the concurrent development of OLC GUI and U-Jadg Tools. It's the only info I have which is written down anywhere. Note that since writing this I discovered that the tips I gave do not always work. For every "rule" that governs the menu file, there's an exception somewhere.

This post is related to one thing: how to make an image look right in the menu file.

Quote:
Originally Posted by onelifecrisis
Image Types and BmpState=1

There are two image types. Type=1030 will not trap the mouse; when you click on it, the mouse will interact with whatever is behind the image. Type=1031 will trap the mouse, even where it is transparent!

Correction: Whether or not the mouse is trapped depends on the BmpState=1 flag! Setting this flag will cause the image to trap the mouse (note that this flag is required for dials to work). However, Type=1030 images will ignore this flag and will therefore never catch the mouse.

So, an image can only catch the mouse if it is Type=1031 and it has BmpState=1.

MatFlags=0x$$

$$ is a decimal number between 0 and 31, which represents 5 flags which affect the way in which an image is displayed. There is some interaction between the MatFlags and the Display setting - in particular, some flags only affect stretched (or rotated) images, and others only affect non-stretched images.

I hope you already know binary to decimal conversion - if not just ask and I'll explain. I've called the flags A (0/1), B (0/2), C (0/4), D (0/8), and E (0/16).
  • Flag A controls transparency. If A is off (0) then the alpha channel will be ignored. If A is on (1) then the image will be transparent but will also lose some colour depth; colours seem to be reduced to 16bit, and there is no dithering either so it can look quite bad! Adding noise to the original image can provide a slight improvement by effectively forcing a bit of dithering, but I'm trying to find a better way. This flag works for stretched and non-stretched images. Update: TexFmt=0x9 fixes the "low colour depth" problem. I recommend using this setting on all images!
  • Flag B doesn't seem to do anything... I'm still trying to work out what it's for.
  • For a non-stretched image (Display=0) using C (4) and E (16) in combination (i.e. 20) will cause the image to be displayed pixel for pixel (instead of the default which, for reasons unknown, seems to be about 0.8 pixels per pixel). These flags don't seem to have an effect on stretched images, but I need to do more testing...
Update: While the C and E flags seem to have little effect on a stretched image without the D flag set, using them both with the D flag gets even better results than with the D flag alone. This was unexpected because most of the stretched images in menu_1024_768.ini do not use the C and E flags. Perhaps setting these flags uses more memory or impacts on performance in some other way? At any rate, I've edited the summary below.
  • For a stretched image, using flag D (8) will "smooth out" the stretch. If you don't use this flag your stretched image will look very bad indeed. It seems to have no effect on unstretched (Display=0) images.
So, in summary, these settings should be used for just about all new images:
TexFmt=0x9
MatFlags=0x29

OLC

Last edited by onelifecrisis; 09-04-08 at 09:02 AM.
onelifecrisis is offline   Reply With Quote
Old 09-04-08, 09:11 AM   #11
asanovic7
Captain
 
Join Date: Mar 2008
Posts: 515
Downloads: 70
Uploads: 0
Default golly gosh

I wonder how smart those programmers in those big companies are with having to know all these stuff?
How come you olc, know all that??
Are you all 160 above the freeze or what? Where is my place in this world?

I am trying to read that but it freaks me out before the end of the first line..
Just wanted to say deconstructing the menu bla bla is for sh4 with some stupid zone.. The guys orientation is mainly on that darn zone, and his explanation is not so complicated like olc's, which in the end is not so bad but not so usable.

Cheers

p.s. anyone for a beer?
asanovic7 is offline   Reply With Quote
Old 09-04-08, 09:24 AM   #12
joegrundman
Ocean Warrior
 
Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
Default

sure, i'll have a beer! What's good in Croatia?
__________________
"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 09-04-08, 08:23 PM   #13
wdq4587
A-ganger
 
Join Date: Sep 2005
Posts: 71
Downloads: 10
Uploads: 0
Default

I don't think the SH3 program is designed as a open project for you modder to easy make mod for it. They only not do some thing to prevent you to modify it, like some company would do. They have their home made tool called "Kashmir" function just like s3editor but never release it.

For example the GUI system, I mean 2D GUI, generally it should user a middle layer to connection the program code with menuitem. There are actually a middle layer file: Dials.cfg (and partly of command_en.cfg). But only cover a little part. Obviously the programmer think he can change code any time to meet the 2D GUI designer need. So there are no necessary to add it. If someone want make a extendable project, he will not code this way. Add a complete middle layer file will not need much work and may be even reduce himself work time. (For example he can add a function before MenuItem exist, so he don't need wait GUI designer)
wdq4587 is offline   Reply With Quote
Old 09-04-08, 08:36 PM   #14
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

If one takes the stance that something can not be done?
You are Doomed from the start to fail.

No, We do not have Kashmir.
But that fact has stopped no one.

And things deemed impossible mere days ago?
Are being done everyday!!

The first step is to say to yourself,
I can do it!!

The next step is to just do it!!
Time and time again until you find the solution.

Then you 'Mind Freak' everyone!
:rotfl:
  Reply With Quote
Old 09-05-08, 05:08 AM   #15
latemail
Gunner
 
Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 10
Uploads: 0
Default

Quote:
Originally Posted by Darkbluesky
Hi,

Is there out there a guide of the menu_1024_768.ini file? I mean, what that means each of the variables and their values, as for example


Is there some guide about modding SH3, at least its text file?

Tx
This may help you a bit, it´s only german but I use many screens for illustration the important parts .........

pls contact me, if something isn´t that clear ..........

LINKS : Web -Tutorial (Thread : see my Sig)
__________________


______________________________________

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


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:15 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.