SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REL] SH4 1.5 Crew Message Box (menu_1024_768.ini edit) (https://www.subsim.com/radioroom/showthread.php?t=132032)

jimbob 03-01-08 03:01 PM

[REL] SH4 1.5 Crew Message Box v.1.1 (menu_1024_768.ini edit)
 
Ahoy Skippers und Kapitäns!

SH4 1.5 Crew Message Box v.1.1

Use Jonesoft Generic Mod Enabler (JSGME)
http://www.users.on.net/~jscones/software/products.html

or backup the file ...\\Data\Menu\menu_1024_768.ini manually
and swap it yourself.

And this is how it looks:

http://www.imagehosting.com/out.php/...25_Walther.jpg


Code:

FAQ:
         
         
Version history?
   
1.1 has 3 lines of text and is raised a little to make room
for the Walther's H2O2 button. Check the pic Walther.jpg.
   

lol wut?
         
This little mod is for Silent Hunter 4 - Wolves of the Pacific Uboat Missions
hat is stock versions patched up to 1.5

Im using resolution 1280x1024 atm.
This will not work on other resolutions per se,
but its really easy to mod the values by yourself for your resolution.

               
Why?
       
Looks better IMO.
               
       
When?
       
2. March 2008
               
               
Where?

My filefront place:
http://hosted.filefront.com/jimboblolwut/2183515/


DOWNLOAD

Have fun.

Ragtag 03-01-08 06:08 PM

Nice, Now i dont have to move that box everytime i start a mission :)

ustahl 03-03-08 09:03 AM

Another menu_1024_768.ini editing request
 
Hi,
I want to relocate those little Information Icons that since 1.5 appear in the upper right screen corner.
I want them to appear down right above the fuel/battery/air/CO2 indicator, to the left of the Speed Indicator. I running the game in 1680x1050 widescreen, so there is plenty space for relocated items.

In the past (pre 1.5) I've changed several items by editing menu_1024_768.ini guided by Panthercules, but I don't know what parts to edit now in 1.5, as the Info Icons are new items.

jimbob 03-03-08 12:18 PM

Those icons are in hud files allrite,
and there's American and German hud files now what with the 1.5.

It'll be lotsa work to figure out the right ItemID's for all those buttons,
which Im not even sure if I've seen them all.

Just did a little search and it appears that menu_1024_768.ini has quite a few calls for hudfiles.

I wonder if they could be those "warnings":
Code:

[G3F I115]
Name=Group warnings
Type=1026;Menu group
ItemID=0x3F0C0000
ParentID=0x3F000000

Since there's calls for something like this:
Code:

[G3F I124]
Name=Warning_NewObjective
Type=1032;Button
ItemID=0x3F0C001B
ParentID=0x3F0C0000
/snip
Mat 0=data/menu/Skins/American/gui/layout/hud.tga
/snip
ToolTipText=4309

And the tooltip that it uses could be traced back in menu.txt file to:
Code:

4309=New objective
I cannot remember all those buttons that pops up there
but one was about "objectives",

Maybe they're not about "Group warnings" , maybe they're somewhere else,
im just thinking'a'loud now.

Anyhoo...
one just have to hassle with the values and go see what happens ingame.
Add some, take some, and start the game to see if the buttons are moving.
If not, change it back and try another item/group.
Gotta look for those popup texts since those phrases comes from menu.txt
which gives it a number and that number should be found in menu_1024_768.ini file.
Sooner or later one hits teh jackpot.

So, when the ItemID's are known, then its just a matter of moving them around,
that'll be some math to figure it out for different resolutions etc.
but im willing to bet the principle is the same as for the crewmessagebox.

IMO using ItemID's are better than the [G3F I115] label, since they stay the same.
think about all the possible changes to menu_1024_768.ini file in the future.

Well, I'll test some values and see if I find any ItemID's for those buttons.
If I find one, I guess they all should have the same ParentID.

Or maybe not.

Heh, it's "go figure" most of the time.

This could take some time, thought.

:arrgh!:

ustahl 03-03-08 01:46 PM

Thanks for making this "clear".:doh: You surely made me realize the complexity of the matter.:nope: Those icons I want relocated are indeed small parts of "data/menu/Skins/American/gui/layout/hud.tga" and no independent graphic files in their own right. No wonder I didn't find any single graphic files for each appliccable info icon.

I also started trying to find relevant differences/clues by comparing menu_1024_768.ini versions 1.4 and 1.5 in Winmerge, but that proved a hopeless chore for my humble abilities. It's simply too overwhelming.:damn:

I throw in the towel - for the time being I'll play moving those info icons each time manually, and hope that somebody more skillful than myself will come up with a solution, eventually. That is, if it's worth the effort.:hmm::shifty:

jimbob 03-03-08 03:01 PM

My hunch was right.

Here it is:

Code:

[G3F I115]
Name=Group warnings
Type=1026;Menu group
ItemID=0x3F0C0000
ParentID=0x3F000000
Pos=873,-15,100,32
;Zone= 873 753 100 32 0 1 0x3F000000 0.95 -0.04 0x3F0C0000 -1 0.5 0 0
; location is them 2 last values, vertical , horizontal
Zone= 873 753 100 32 0 1 0x3F000000 0.95 -0.04 0x3F0C0000 -1 0.5 -110 -800
Color=0xFFFFFFFF

Red drops it down.
Olive moves sideways.

Pics or it didn't happen?

Those popup texts go somewhat right:
http://www.imagehosting.com/out.php/i1610856_3.JPG

..dials get larger:
http://www.imagehosting.com/out.php/i1610858_2.JPG

...but it's not that bad modification:
http://www.imagehosting.com/out.php/i1610861_1.JPG

I haven't seen it yet what happens if theres lotsa buttons poppin up.
So, this is probably not the final placement for me.

Also, I got 1280x1024 resolution so you need to adjust the values
where you want the box to be since I cannot test them.

Have fun.

:arrgh!:

ustahl 03-03-08 03:47 PM

Some menu_1024_768.ini visual fixes for 22" widescreen
 
Thought I'd share some fixes for 1680x1050 widescreen resolution I'm using with v1.5(Addon), as this resolution seems quite common with 22" LCDs nowadays. I use them mainly in order to have various screen items obscure as little of the screen as possible, making them show up closer to the corners/edges. I think these fixes make the screen "cleaner" and look better.

Additionally, I like to have the Target Position Keeper available from start on, hence that fix.

For other resolutions the positional values of course vary, but maybe these fixes are of interest to some 22" LCD people.

Edit relevant sections in data\menu\menu_1024_768.ini:

1. Message Box position (similar to Jimbob's posting #1 above)
2. Message Box Transparency (message box made transparent)
3. Position Keeper pulled out from start (position keeper not hidden from start)
4. Chronometer position (upper right screen corner)
5. Event Camera position (lower left corner above toolbar)

1. Message Box position:
[G3F I248]
Name=Group messages 2
Type=1026;Menu group
ItemID=0x3F2A0000
ParentID=0x3F000000
Pos=256,-4,350,94
Zone= 256 764 350 94 0 1 0x3F000000 0.25 0 0x3F2A0000 0 0 100 -900
;Zone= 256 764 350 94 0 1 0x3F000000 0.25 0 0x3F2A0000 0 0 0 -4
Color=0xFFFFFFFF

2. Message Box Transparency:
[G3F I249]
Name=Bkgr capture
Type=1031;Stat bmp array
ItemID=0x3F2A00FF
ParentID=0x3F2A0000
Pos=0,0,350,94
Zone= 256 764 350 94 0 1 0x3F2A0000 0.5 -1 0x3F2A00FF -0.5 1 0 0
Color=0xFFFFFF00
;Color=0xFFFFFF80
Materials=1
Display=2;Linear
Mat 0=data/menu/data/black.tga
Crop 0=0,0,0.5,0.5
MatFlags=0x1
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

3. Position Keeper pulled out from start:
[G42 I1]
Name=Page PositionKeeper
Type=1027;Menu page
ItemID=0x42000000
ParentID=0x0
Pos=0,0,1024,768
Zone= 0 768 1024 768 2 1 0x0 0.5 -0.5 0x42000000 -0.5 0.5 255 0
;Zone= 0 768 1024 768 2 1 0x0 0.5 -0.5 0x42000000 -0.5 0.5 0 0
LoadingMode=1

4. Chronometer position:
[G29 I2]
Name=Chrono
Type=1026;Menu group
ItemID=0x29020000
ParentID=0x29000000
Pos=412,0,312,300
Zone= 412 768 234 225 0 1 0x29000000 1.195 0 0x29020000 -1 0 -300 0
;Zone= 412 768 234 225 0 1 0x29000000 1.23 0 0x29020000 -1 0 -300 0
Color=0xFFFFFFFF

5. Event Camera position:
[G23 I1]
Name=Page event camera
Type=1027;Menu page
ItemID=0x23000000
ParentID=0x0
Pos=0,0,1024,768
Zone= 0 768 1024 768 0 0 0x0 0 0 0x23000000 0 0 0 0
;Zone= 0 768 1024 768 0 1 0x0 0 0 0x23000000 0 0 0 0
LoadingMode=2


Credit goes to Panthercules for helping me out last year in v1.4.

I have forgotten how make & post screenshots, so I'm limited to discribe the fixes in writing.:oops: I know a screenshot would be more descriptive....:oops:

ustahl 03-03-08 03:59 PM

Jimbob, you seem to be a genious!:know:
I thought I'd stop messing with the files etc. and play the game for a change, and then you come along with a solution I thought impossible, and naturally a have to give it a try for my 1680x1050 resolution.:up:
Thanks for "spoiling" my intended gaming session.:sunny:

jimbob 03-03-08 04:03 PM

Thanks.

I'll be off to find my values for with the chrono, eventcamerabox and positionkeeper.

:lol:

ustahl 03-03-08 05:05 PM

Heureka! Matter solved!:D
The correct values in menu_1024_768.ini to make the little info icons (Group warnings) appear snug left of the Speed Telegraph and above the Fuel, Battery, Compressed Air, CO2 Indicator on a 1680x1050 resolution screen are as follows:

[G3F I115]
Name=Group warnings
Type=1026;Menu group
ItemID=0x3F0C0000
ParentID=0x3F000000
Pos=873,-15,100,32
Zone= 873 753 100 32 0 1 0x3F000000 0.95 -0.04 0x3F0C0000 -1 0.5 -300 -915
;Zone= 873 753 100 32 0 1 0x3F000000 0.95 -0.04 0x3F0C0000 -1 0.5 0 0
Color=0xFFFFFFFF

Thanks a ton Jimbob for finding the basic solution! I merely made the resolution adjustement for the 22" widescreen. Now I have exactly what I was looking for.:sunny:

ustahl 03-03-08 06:29 PM

Trying to post a screenshot
 
Here's a screenshot of my modifications to menu_1024_768.ini as described further above for 1680x1050 resolution:

http://img206.imageshack.us/img206/1...imgust1ca2.jpg


http://profile.imageshack.us/user/us...imgust1ca2.jpg

jimbob 03-03-08 07:16 PM

Niice lookin.
:D

Im testing some stuff, porting them to 1.5.
and working on those JTxE-ini files to use with jimimadrid's JTxE.exe,
get it from here.

Amazing tool.

ottos did a nice pack of ini files before Xmas for it.

Just collecting some info, making the files to uses with that tool and maybe later
releasing cuz i think some folks would like to use them too.

It's very hard to find for whom the €redits should go, thought,
them really original topics about menu.ini editing.

:arrgh!:

LukeFF 03-14-08 12:34 AM

Nice hints, thank you!

Now, does anyone know in 1.5 what lines control the placement of the clipboard?

ustahl 03-14-08 06:14 AM

Sorry, but what clipboard do you mean? In game screenshots?:hmm:

jimbob 03-14-08 06:51 AM

Yeah, pics or it didn't happen, hehe..

Anyhoo, im wondering what's the entry in menu.ini file for that
box that pops up and tells teh date:

http://www.imagehosting.com/out.php/...44_datebox.jpg

Any ideas?


:arrgh!:


All times are GMT -5. The time now is 02:23 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.