PDA

View Full Version : hull integrity


pabbi
04-16-12, 06:02 PM
How can i remove hull integrity % that tell's you the condition of your hull.
I'm using RFB and like to remove the % numer in the damages screen.:06:

Great thanks for any help given.:salute:

iowa101
04-16-12, 09:20 PM
Just so I'm clear you want to remove the damage meter which by the way tells you how much you have left on your life sort of thing. First, why? And secondly I have no idea, but I'd imagine something like that would be some what hard coded, but I quite possibly could be wrong.

DrBeast
04-17-12, 12:35 AM
One quick and dirty way of getting rid of it would be editing the menu_1024_768.ini file located in Data\Menu. Open it with Notepad and do a search for 0x3E0A0000 - you'll find a few entries in the G3E section (in mine it spans from G3E I24 to G3E I29, but I'm using other mods that modify menu_1024 so the Ixx numbers could be different in yours).

Before you alter anything, MAKE A BACKUP of the file! Even better, make a mini-mod which can be enabled with JSGME: in your MODS folder, create a new folder named Remove Hull Integrity (or something like that). Inside that, create a new folder named Data, and inside that one create a folder named Menu. Copypasta the menu_1024_768.ini file you want to work on (if you're not using any other mods that alter that file, you'll fetch it from MODS\RFB\Data\Menu). So, your mini-mod should look something like this: MODS\Remove Hull Integrity\Data\Menu\menu_1024_768.ini. Open that file with Notepad and locate the G3E Ixx entries which contain 0x3E0A0000. As a reference, here's what mine looks like (I'm using TMO+OTC):


[G3E I24]
Name=Hull damage
Type=1026;Menu group
ItemID=0x3E0A0000
ParentID=0x3E000000
Pos=41,-95,150,21
Zone= 41 673 150 21 0 1 0x3E080000 0.5 0 0x3E0A0000 -0.5 0 0 0
Color=0xFFFFFFFF

[G3E I25]
Name=Hull damageDigit2
Type=1030;Static bmp
ItemID=0x3E0A0022
ParentID=0x3E0A0000
Pos=112,-2,12,17
Zone= 153 671 12 17 0 1 0x3E0A0021 0 -0.5 0x3E0A0022 -1 0.5 0 0
Materials=1
Display=2;Linear
Mat 0=data/menu/Skins/American/gui/layout/CrewSystemsManagement.dds
Crop 0=0.567383,0.525391,0.00585938,0.0332031
MatFlags=0x9
TexFmt=0x0

[G3E I26]
Name=Hull damageDigit1
Type=1030;Static bmp
ItemID=0x3E0A0021
ParentID=0x3E0A0000
Pos=124,-2,12,17
Zone= 165 671 12 17 0 1 0x3E0A0020 0 -0.5 0x3E0A0021 -1 0.5 0 0
Materials=1
Display=2;Linear
Mat 0=data/menu/Skins/American/gui/layout/CrewSystemsManagement.dds
Crop 0=0.567383,0.525391,0.00585938,0.0332031
MatFlags=0x9
TexFmt=0x0

[G3E I27]
Name=Hull damageDigit0
Type=1030;Static bmp
ItemID=0x3E0A0020
ParentID=0x3E0A0000
Pos=136,-2,12,17
Zone= 177 671 12 17 0 1 0x3E0A0000 0.906667 -0.0952381 0x3E0A0020 0 0 0 0
Materials=1
Display=2;Linear
Mat 0=data/menu/Skins/American/gui/layout/CrewSystemsManagement.dds
Crop 0=0.567383,0.525391,0.00585938,0.0332031
MatFlags=0x9
TexFmt=0x0

[G3E I28]
Name=Hull damage
Type=1029;Static text
ItemID=0x3E0A0004
ParentID=0x3E0A0000
Pos=-38,10,150,40
Zone= 3 682 150 40 0 1 0x3E0A0022 0 -0.5 0x3E0A0004 -1 0.5 0 0
Color=0xFE
Font=20
Text=5308
TextFlags=0x15

[G3E I29]
Name=Background
Type=1030;Static bmp
ItemID=0x3E0A001F
ParentID=0x3E0A0000
Pos=111,0,38,21
Zone= 152 673 38 21 0 1 0x3E0A0021 0.5 -0.5 0x3E0A001F -0.5 0.5 0 0
Materials=1
Display=2;Linear
Mat 0=data/menu/Skins/American/gui/layout/CrewSystemsManagement.dds
Crop 0=0.728516,0.503906,0.0307617,0.0410156
MatFlags=0x9
TexFmt=0x0


This whole block needs to go, so delete the bugger. When you're done, you'll have to rearrange the numbering so you don't jump from G3E I23 to G3E I30. Start renumbering all the following sequences of G3E until you reach G3F - that's the beginning of another group.

When you're done, save the file and enable your mini-mod with JSGME. You'll get a warning that it will overwrite the menu_1024 file in RFB - proceed, that's exactly what you want. Fire up the game and let us know how it went. As I was typing this, it occured to me that you may have to make some changes in another file as well (Data\Menu\menu.txt), but it's insanely late over here and I need to catch some Zs. If the above change wasn't enough, and if someone else doesn't shed more light, I'll check back tomorrow.

pabbi
04-17-12, 05:32 PM
Forgot to tell you:doh:, i'm using SH4 v.1.4

So here is what i'm looking at:hmmm::


[G3E I53]
Name=Sample functional subsystem
Type=1026;Menu group
ItemID=0x3E090000
ParentID=0x3E010000
Pos=75,-154,150,46
Zone= 437 537 150 46 2 1 0x3E010000 0.25 -0.77 0x3E090000 0 0 0 0
Color=0xFFFFFFFF

[G3E I54]
Name=Text
Type=1029;Static text
ItemID=0x3E090001
ParentID=0x3E090000
Pos=40,-1,100,44
Zone= 477 536 100 44 2 1 0x3E090000 1 -0.5 0x3E090001 -1 0.5 -10 0
Font=19
Text=5300
TextFlags=0x15

[G3E I55]
Name=Ico
Type=1031;Stat bmp array
ItemID=0x3E090005
ParentID=0x3E090000
Pos=10,-7,32,32
Zone= 447 530 32 32 0 1 0x3E090000 0 -0.5 0x3E090005 0 0.5 10 0
Color=0xFFFFFFFF
Materials=22
Display=0;No stretch
Mat 0=data/menu/gui/layout/subsystem icons.tga
Crop 0=0.0078125,0.0078125,0.125,0.125
Mat 1=data/menu/gui/layout/subsystem icons.tga
Crop 1=0.148438,0.0078125,0.125,0.125
Mat 2=data/menu/gui/layout/subsystem icons.tga
Crop 2=0.289063,0.0078125,0.125,0.125
Mat 3=data/menu/gui/layout/subsystem icons.tga
Crop 3=0.429688,0.0078125,0.125,0.125
Mat 4=data/menu/gui/layout/subsystem icons.tga
Crop 4=0.570313,0.0078125,0.125,0.125
Mat 5=data/menu/gui/layout/subsystem icons.tga
Crop 5=0.851563,0.0078125,0.125,0.125
Mat 6=data/menu/gui/layout/subsystem icons.tga
Crop 6=0.0078125,0.0078125,0.125,0.125
Mat 7=data/menu/gui/layout/subsystem icons.tga
Crop 7=0.0078125,0.148438,0.125,0.125
Mat 8=data/menu/gui/layout/subsystem icons.tga
Crop 8=0.148438,0.148438,0.125,0.125
Mat 9=data/menu/gui/layout/subsystem icons.tga
Crop 9=0.289063,0.148438,0.125,0.125
Mat 10=data/menu/gui/layout/subsystem icons.tga
Crop 10=0.429688,0.148438,0.125,0.125
Mat 11=data/menu/gui/layout/subsystem icons.tga
Crop 11=0.570313,0.148438,0.125,0.125
Mat 12=data/menu/gui/layout/subsystem icons.tga
Crop 12=0.851563,0.148438,0.125,0.125
Mat 13=data/menu/gui/layout/subsystem icons.tga
Crop 13=0.0078125,0.148438,0.125,0.125
Mat 14=data/menu/gui/layout/subsystem icons.tga
Crop 14=0.0078125,0.292969,0.125,0.125
Mat 15=data/menu/gui/layout/subsystem icons.tga
Crop 15=0.148438,0.292969,0.125,0.125
Mat 16=data/menu/gui/layout/subsystem icons.tga
Crop 16=0.289063,0.292969,0.125,0.125
Mat 17=data/menu/gui/layout/subsystem icons.tga
Crop 17=0.429688,0.292969,0.125,0.125
Mat 18=data/menu/gui/layout/subsystem icons.tga
Crop 18=0.570313,0.292969,0.125,0.125
Mat 19=data/menu/gui/layout/subsystem icons.tga
Crop 19=0.710938,0.292969,0.125,0.125
Mat 20=data/menu/gui/layout/subsystem icons.tga
Crop 20=0.851563,0.292969,0.125,0.125
Mat 21=data/menu/gui/layout/subsystem icons.tga
Crop 21=0.0078125,0.4375,0.125,0.125
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3E I56]
Name=BackgroundPartOfSubsystem
Type=1030;Static bmp
ItemID=0x3E090004
ParentID=0x3E090000
Pos=0,-1,150,44
Zone= 437 536 150 44 2 1 0x3E090000 0.5 -0.5 0x3E090004 -0.5 0.5 0 0
Color=0xFFFFFF46
Materials=1
Display=2;Linear
Mat 0=data/menu/data/yellow.tga
Crop 0=0,0,0.03125,0.03125
MatFlags=0x1
TexFmt=0x0

[G3E I57]
Name=Background
Type=1030;Static bmp
ItemID=0x3E090003
ParentID=0x3E090000
Pos=0,-1,150,44
Zone= 437 536 150 44 2 1 0x3E090000 0.5 -0.5 0x3E090003 -0.5 0.5 0 0
Color=0xFFFFFF46
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/layout/crewsystemsmanagement.tga
Crop 0=0.00732422,0.179688,0.000488281,0.00195313
MatFlags=0x1
TexFmt=0x0


I think i'm on the right way but if any one knows better i would accept all help given.:06:

DrBeast
04-17-12, 06:07 PM
Forgot to tell you:doh:, i'm using SH4 v.1.4



You're on 1.4? Crud, that changes things a bit. 1.5 added several entries to menu_1024, G3E is not the place to look for. Nevertheless, if you search for 0x3E0A0000 you'll find the entries you'll need to delete - that's the code for all the entries related to Hull Damage.

pabbi
04-17-12, 07:36 PM
Well i have a problem 0x3E0A0000 can not be found in my menu_1024
try'd to serch for hull damages, but no luck. Entry 5308=Hull damage in the text menu can not be found in menu_1024.
It's time for bed now will have to look better at this.:zzz:

DrBeast
04-17-12, 07:54 PM
Well i have a problem 0x3E0A0000 can not be found in my menu_1024
try'd to serch for hull damages, but no luck. Entry 5308=Hull damage in the text menu can not be found in menu_1024.
It's time for bed now will have to look better at this.:zzz:

Yeah, I ran into another kind of problem with this - thought I'd try out my proposed solution, myself, and been getting CTDs for my trouble. Went for a less radical approach (editing out 5308 in menu.txt), but that's not it. I'll dig around the forum to see if I can find a few other relative posts I seem to remember having stumbled upon in the past.

ETA: managed to find an old menu_1024 file from my backup of 1.4-era mods. Well you're right - there ARE no entries for Hull Damage in there! I am baffled...

Traveller
04-17-12, 08:31 PM
pabbi, in the menu.txt file try deleting line: 589=HULL INTEGRITY %s %

It should read only: 589=

That might work for v1.4

pabbi
04-18-12, 09:02 PM
I tried deleting line 589=HULL INTEGRITY %s % as you said, no go.:(
I tried to put " ; " in front of %s %, no go.:(
I have thougth about this all night, and right now i am very tired and frustrated.
Of to get some sleep now.

pabbi
04-20-12, 04:33 PM
Last night i took a look at h.sie's Colored Hull Integrity mod made for SH3. In it he give's a code ItemID=0x67000404, i think it leads to hull code's in menu_1024_768.ini, i tried to look for this code in SH4 menu_1024_768.ini and found this:

[G67 I683]
Type=1029;Static text
ItemID=0x67000404
ParentID=0x67000000
Pos=805,-168,250,30
Zone= 805 600 250 30 0 1 0x67000000 0.786133 -0.21875 0x67000404 0 0 0 0
Color=0xFF
Font=5
Text=0
TextFlags=0x0

Now my question is, am i on the right way or is this code leftovers from SH3. (I think it is).


Let me remind you my game is SH4 1.4 with

RFB v.1-4 031408 + rfb zone files and rfb torpedo fix.
RSRDC RFBv14_v390 + patch 2
OTC for RFB1.4
and few other small mods.

pabbi
04-20-12, 04:39 PM
Just so I'm clear you want to remove the damage meter which by the way tells you how much you have left on your life sort of thing. First, why? And secondly I have no idea, but I'd imagine something like that would be some what hard coded, but I quite possibly could be wrong.


yoshida-kun i think real life skipper's had no way of knowing how theyr hull was with out diving the boat to find out.

Just my humble oppinion.

DrBeast
04-20-12, 06:07 PM
I've searched this forum high and low for an answer to this, but it was fruitless - seems this is not the first time you are asking for this modification btw, I found a post of yours dating back to '09. In fact, this request has been put forth a few times in the past, but there was never a valid answer. Moreover, given that things have changed from 1.4 to 1.5, I'm afraid there's no way for me to try to work out a solution. Sorry :cry:

pabbi
04-20-12, 06:43 PM
I've searched this forum high and low for an answer to this, but it was fruitless - seems this is not the first time you are asking for this modification btw, I found a post of yours dating back to '09. In fact, this request has been put forth a few times in the past, but there was never a valid answer. Moreover, given that things have changed from 1.4 to 1.5, I'm afraid there's no way for me to try to work out a solution. Sorry :cry:


Well to bad, thanks for the help any way.:up: