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)

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 ;)

karamazovnew 07-31-09 12:15 PM

Holy mama.... I bet you didn't do that by hand. Do you by any chance still have the code for entering the data into a table? Would be veeery useful :yeah:. Right now I have to enter all of the data by hand and it's quite annoying. Also, when I move a menu group, I don't need to update just that item, but all of the items, since the Zone line's X and Y position is absolute :wah:. Maybe a tool to update the file automatically...But for the moment, that's beyond me. It took me one day to write this macro to renumber the items (hsie's tool didn't work for me for some reason). It's for a simple form with one button (btnRenumber) and one text box (txtPage). It renumbers the items on a page (as long as the item is in the correct page ofc).

Private Sub btnRenumber_Click()
Dim iItem As Integer
Dim myRange As Range
If txtPage.Value = vbNullString Then
MsgBox "You must enter the Menu Page"
ElseIf Application.Documents.Count < 1 Then
MsgBox "No document Opened"
Else
iItem = 1
Set myRange = ActiveDocument.Range(Start:=0, End:=ActiveDocument.Content.End)
myRange.Select
With Selection.Find
.Forward = True
.Wrap = wdFindStop
.Text = "[" + txtPage.Value + " I"
Do While .Execute
Selection.Extend
Selection.Extend
Selection.Extend
Selection.TypeText Text:="[" + UCase(txtPage.Value) + " I" + CStr(iItem) + "]"
iItem = iItem + 1
Set myRange = ActiveDocument.Range(Start:=Selection.End, End:=ActiveDocument.Content.End)
myRange.Select
Loop
End With
End If
End Sub


Come to think of it, I don't understand why there was never a tool to visually mod the interface. VB has plugins to view DDS and TGA, a piece of code could make a table with all the items and parameters in the menu.ini file, then show them. Appying the inverse formulas might allow you to drag/move items. There are maximum 200 items on a page so that shouldn't crash the pc. The Display line might be an issue, but... :hmmm: Actually forget it, it might take longer to do it than to mod the file by hand :har:.

JoeCorrado 07-04-10 04:35 PM

Bumped again- two years later. :rotfl2:

JoeCorrado 09-03-13 11:15 PM

And bumped once again... just 3 years later. Good to see so many of the old die hard companions still here and active after all this time.

Since I am back to SH4 again and because after a long break I forget so much stuff, this was the thread I looked up as a place to start again. Old mods disappear, my favorite home brewed mods get lost and I need to start from scratch.

This thread is where so much enjoyment (outside of the actual game play) got their beginnings. This thread never gets old for me. Hope some other mad scientist gamers get a chance to read through and feel the satisfaction of successfully creating their first mod.

adrians69 02-27-25 07:01 AM

Thanks so much for this tutorial, it has helped me fix my missing chrono, radio and gramophone in 2560x1440.

:Kaleun_Salute:


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