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)
-   -   Star shell mod anywhere? (https://www.subsim.com/radioroom/showthread.php?t=124631)

Digital_Trucker 12-12-07 12:22 PM

Sure
 
When I say, I got the shell on the screen, I got a radio button for it on the screen, but never could get the game to relate the button to the shells. The button is on the screen (I used the same nomenclature as the other shells in the hopes that would make the game realize that the button was for the star shells) but the button does not function whether you have Star Shells in the .sim or not. I think that the game just isn't looking for the menu id of the star shell button (or I haven't found the correct menu id yet).

I hadn't looked at this since before the 1.4 patch, so I need to double check whether it still functions with the patch. I'm in the process of checking it right now. Once I'm sure that it still displays correctly, I'll post the code I used in the menu.ini file and will upload the entire thing (with the graphics changes) so others can play with it and possibly get it to work.

Digital_Trucker 12-12-07 01:03 PM

Here's what I have so far
 
The code that I added to the menu.ini file is as follows :


Code:

[G38 I7]
Name=SS
Type=1036;Radio
ItemID=0x38010010
ParentID=0x38010000
Pos=127,-29,26,142
Zone= 901 505 26 142 0 1 0x38010003 1 -1 0x38010010 0 1 10 -1
Materials=8
Display=2;Linear
Mat 0=data/menu/gui/shells/us_shells.tga
Crop 0=0.703125,0.7656253,0.203125,0.2441344
Mat 1=data/menu/gui/shells/us_shells.tga
Crop 1=0.703125,0.7656253,0.203125,0.2441344
Mat 2=data/menu/gui/shells/us_shells.tga
Crop 2=0.09375,0.7656253,0.203125,0.2441344
Mat 3=data/menu/gui/shells/us_shells.tga
Crop 3=0.296875,0.7656253,0.203125,0.2441344
Mat 4=data/menu/gui/shells/us_shells.tga
Crop 4=0.5,0.7656253,0.203125,0.2441344
Mat 5=data/menu/gui/shells/us_shells.tga
Crop 5=0.296875,0.7656253,0.203125,0.2441344
Mat 6=data/menu/gui/shells/us_shells.tga
Crop 6=0.5,0.7656253,0.203125,0.2441344
Mat 7=data/menu/gui/shells/us_shells.tga
Crop 7=0.296875,0.7656253,0.203125,0.2441344
MatFlags=0x9
TexFmt=0x0
Font=0
Text=0
TextPosFlags=0x2
TextFlags=0x0
CheckBoxWidth=0
StatesColors=0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF
ToolTipText=2233
 
[G38 I8]
Name=AA
Type=1036;Radio
ItemID=0x38010006
ParentID=0x38010000
Pos=87,-29,26,142
Zone= 901 455 26 142 0 1 0x38010002 1 -1 0x38010006 0 1 10 -5
Materials=8
Display=2;Linear
Mat 0=data/menu/gui/shells/us_shells.tga
Crop 0=0.703125,0.541016,0.203125,0.2441344
Mat 1=data/menu/gui/shells/us_shells.tga
Crop 1=0.703125,0.541016,0.203125,0.2441344
Mat 2=data/menu/gui/shells/us_shells.tga
Crop 2=0.09375,0.541016,0.203125,0.2441344
Mat 3=data/menu/gui/shells/us_shells.tga
Crop 3=0.296875,0.541016,0.203125,0.2441344
Mat 4=data/menu/gui/shells/us_shells.tga
Crop 4=0.5,0.541016,0.203125,0.2441344
Mat 5=data/menu/gui/shells/us_shells.tga
Crop 5=0.296875,0.541016,0.203125,0.2441344
Mat 6=data/menu/gui/shells/us_shells.tga
Crop 6=0.5,0.541016,0.203125,0.2441344
Mat 7=data/menu/gui/shells/us_shells.tga
Crop 7=0.296875,0.541016,0.203125,0.2441344
MatFlags=0x9
TexFmt=0x0
Font=0
Text=0
TextPosFlags=0x2
TextFlags=0x0
CheckBoxWidth=0
StatesColors=0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF
ToolTipText=2232

Basically, I added the new [G38 I7] section, made a few changes in the old [G38 I7] (which is now the [G38 I8] and increased the rest of the chapter numbers to reflect the insertion (i.e. old [G38 I7] became [G38 I8]). I also added some graphical work to allow for a fourth shell type and idenifying the AA and SS shells.

The button still shows up, but doesn't function as it should. I'm still thinking that the game is not looking for any menu id associated with the star shell and that is why it isn't working. But I've gotten in trouble for thinking before:rotfl: , so someone please prove me wrong and get it to work:up:

I've uploaded the work I've done so far to http://files.filefront.com/Shell+Mod.../fileinfo.html . This include the menu.ini changes, the graphic work for the additional shell (and identifying the AA and SS shells) and the .sim files for all three guns with 50 star shells.

If anyone can get this button to function, it would be wonderful. If not, then we can just insert the star shell id for the AA, relabel the AA shell to SS and make the changes necessary to have the shells loaded for all the guns. If that is the case, though, that means that there would be no way to use the AA shels later in the war, so a little trade-off is necessary.

TheDarkWraith 12-12-07 03:57 PM

Quote:

Originally Posted by Digital_Trucker
If anyone can get this button to function, it would be wonderful. If not, then we can just insert the star shell id for the AA, relabel the AA shell to SS and make the changes necessary to have the shells loaded for all the guns. If that is the case, though, that means that there would be no way to use the AA shels later in the war, so a little trade-off is necessary.

not necessarily so. Make a clone of the gun and change the AA ID back to it's original AA shell. Add a new entry in the .cfg file that references this new gun to start in whatever year it is supposed to start (for having AA shells). That's one way around that one :up:

Digital_Trucker 12-12-07 06:09 PM

Quote:

Originally Posted by Racerboy
not necessarily so. Make a clone of the gun and change the AA ID back to it's original AA shell. Add a new entry in the .cfg file that references this new gun to start in whatever year it is supposed to start (for having AA shells). That's one way around that one :up:

Excellent point:up: It would be nice, though, if the fourth shell type could be implemented. I'm hoping that someone with a lot better grasp of the file relationships might be able to get it to work.:hmm:


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