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)
-   -   [TEC] Tutorial: Deconstructing the menu_1024_768.ini file items (https://www.subsim.com/radioroom/showthread.php?t=111832)

vanjast 04-16-07 01:34 PM

Brilliant... nice and precise :up:

l3th4l 04-27-07 02:55 AM

Nice tutorials! Thanks a lot! :up:

I have one question still left that i didn't see answered. Might be something obvious that i missed for some reason ;)


I thought about the night filter item [G31 I23] and how to modify it to cover the whole screen (which afaik it already does) AND be on top of everything else, including the menu bar at the bottom. i also would like it to be applied on every menu screen, particulary periscope view.

any way to accomplish that? i experimented with the parentID to get it sorted on top of other things but haven't had much success so far. I also have no idea at all how I can make it apprear in other menus...

Dustyboats 04-29-07 07:37 AM

Compass and other Dials
 
Quote:

Originally Posted by Chrall
I've been doing a lot of work with the gauges lately and I have yet to find the command for the zoom. I've stopped looking for it, since I don't belive it's there anymore.You can do it the "easy" way and size the whole thing up, but of course that will make it bigger in normal mode.

Here is a compass I made today, bit bigger and with a more readable dial. As you can see I haven't center it properly yet.
http://img386.imageshack.us/img386/7...2043218sm3.jpg

As the old song lines says..."My Eyes are dim, I cannot see...." Dear Zamboni, once you master this "Enlarged Dials" project....Please may we have the completed mod on the Mods Page.....Everso Thankful.....Dusty

FooFighters 11-25-07 09:15 AM

Does anybody now how to find or make an ItemID ??

I am trying to include the length of ships to the rec manual.
This is what I made so far..

This part does not show up
[G25 I53]
Name=Length val
Type=1029;Static text
ItemID=0x2507000? <---- which number must this be ?
ParentID=0x25070000
Pos=357,0,165,22
Zone= 543 327 165 22 0 1 0x25070002 1 -0.5 0x25070008 0.02 0.5 0 0
Color=0xFE
Font=19
Text=955
TextFlags=0x4

This shows up in game, so it works
[G25 I54]
Name=Length
Type=1029;Static text
ItemID=0x25070002
ParentID=0x25070000
Pos=264,0,90,22
Zone= 450 327 90 22 0 1 0x25070001 1 -0.5 0x25070002 0 0.5 0 0
Color=0xFE
Font=19
Text=2016
TextFlags=0x6

I now have the length workin thru the names file.
But this not the best way.

Hope someone can help ?

Foo
:up:

vanjast 11-25-07 09:35 AM

In one of the other files. cannot remember which, all Menu Items have an identification number. Linked to this Parent Item are Child Items, and so forth.
So you have a family tree, so to speak, of linked items.

AFAIK SH3/4 uses this heirarchial structure to make up the objects used in a particular window (Control room, Periscope, etc). I vaguely remember trying to make up a new Parent and child IDs but this failed as these IDs seemed to be hard-coded into the software, so I had to play with the existing IDs

FooFighters 11-25-07 01:21 PM

Quote:

Originally Posted by vanjast
In one of the other files. cannot remember which, all Menu Items have an identification number. Linked to this Parent Item are Child Items, and so forth.
So you have a family tree, so to speak, of linked items.

AFAIK SH3/4 uses this heirarchial structure to make up the objects used in a particular window (Control room, Periscope, etc). I vaguely remember trying to make up a new Parent and child IDs but this failed as these IDs seemed to be hard-coded into the software, so I had to play with the existing IDs

wow.. I would like to know which file that is..
The only one I found is data/menu/menu.txt

But no ID's in there

Digital_Trucker 11-25-07 01:39 PM

Me, too
 
Quote:

Originally Posted by FooFighters
Quote:

Originally Posted by vanjast
In one of the other files. cannot remember which, all Menu Items have an identification number. Linked to this Parent Item are Child Items, and so forth.
So you have a family tree, so to speak, of linked items.

AFAIK SH3/4 uses this heirarchial structure to make up the objects used in a particular window (Control room, Periscope, etc). I vaguely remember trying to make up a new Parent and child IDs but this failed as these IDs seemed to be hard-coded into the software, so I had to play with the existing IDs

wow.. I would like to know which file that is..
The only one I found is data/menu/menu.txt

But no ID's in there

Oh, I'd love to know which one it is, too. Might help solve the problems I've been having gettting the star shells to work with the deck guns. I looked through a few and went half blind trying to find it, but if I do find it somewhere, I'll be sure to post it.

vanjast 11-25-07 03:19 PM

I'll have to look it up again as it was yonks ago... I do remember the Parent ID's existing, whether it's in the same file or the Command file maybe...

Still must look it up, but so busy doing everything else, except this important stuff.. you know.. :)

JoeCorrado 03-26-08 10:48 PM

Bump. Because stuff this good deserves it.

msb80sc 07-30-08 03:48 PM

Digital_Trucker, I managed to get SS shells working by copying the shell ID and pasting it to the AA shell spot in the gun.sim file. In the .upc files just use AA instead of SS in the shell type. It has worked on twim 20mm, 3_50, 4_50, 5_25 and 105mm. Those are the only ones I have tried it on and it worked fine once I got my system down.

Oh, what's this got to do with the menu.ini? Well I using TMO and the only ammo option is HE. So I had to undo the ammo gui to get the other shells to show up and change the AA tool tip too match the SS tool tip.

I had played around with AA shells and I can't seem to get the flak effect to work. So I decided to switch them. Make sure your detonation range is set reasonable, mine is at 2000. shell.sim file I think it is.

Digital_Trucker 07-30-08 04:20 PM

Thanks, msb80sc:up: I never tried going the substitution route.

keltos01 01-13-09 04:38 AM

bump !

keltos01 03-12-09 12:29 PM

where ?

karamazovnew 07-31-09 05:56 AM

Damn, where would I be without this tutorial? :har: Well, still, manually figuring out the pixel positions in the Zone and Pos line would take ages, but I've just finished a small table in Excel that does all that work for me :yeah:. I just plug in the ItemId, width and height, the Parent Id, the positioning ParentId(as it can be different from the true parent), the X and Y ponders and the offsets (yeap, only those... :haha: few right?). Then it gererates the position values in both lines. Right now I'm just moving things around to get used to it, but after that, once I start making new items I guess I'll need to figure out how the crop lines can be automated. To be honest, I'd love to have a small macro that analyses the file and makes a table of all the items in a page but that's beyond me. I'll post the table after I make it a bit more useful.

skwasjer 07-31-09 08:01 AM

I already made such a list in januari past year:

http://sh4.skwas.net/menu/menuini.xls

Good luck!

PS: Be advised, I must be for v1.4 since my upload date is 18-1-2008 ;)


All times are GMT -5. The time now is 08:51 AM.

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.