Question About Icons in Factories

What determines which picture is shown to buld a ship in the frigate and capital ship factories and where are those pict file stored? The name strings and the description strings are ok, as well as the built ship models, but the icons for in the factory are incorrect.  I am merging 2 mods and thats the only thing I can't get correct about the races I integrated.

10,322 views 7 replies
Reply #1 Top
The pic. files are stored in the "Window" folder. Its in the same location as the "GameInfo" and "Mesh" and "Textures" folders are. Within the "windows" folder the are numerous files. Look for the files with "ship". eg. HUDIcon-ship, InfocardIcon-ship, MainViewIcon-ship and Picture-ship. I'm not sure if your trying to add an existing picture for your new ship or not,but if you are, locate the ship info within these files that is like the one you wish to replicate, copy it and paste it to the list and change its name to the same as what corralates within that ship's(that you have created) entity file. I'm not 100% sure as to what exactly it is that determines weather it goes into the capital ship factory or the frigate, but I think it depends on what type of entity file it is. eg weather its a "CAPITALSHIP entity" or a "frigate entity" file. Anyway I have done what I said above and it worked. Hope this helps And good luck.
Reply #2 Top

Ok, zero you got most it right. However, what code determines what icon it uses in the files are determined is found in the brushes files

for example for the tech orbital frigate factory the code in the brushes file: HUDIcon-Module.brushes

brush
    name "HUDICON_PLANETMODULE_TECHORBITALFRIGATEFACTORY"
    content "States"
    Disabled
        fileName "Unit_Hud_Disabled" -> file name, would be in the Unit_Hud_Disable.tga
        pixelBox [ 153 , 119 , 47 , 33 ] -> location of the icon in pixels (remember the program draws a box based on your starting and ending location), I believe the first two is the starting location of the box, and then next two is the (x,y) size of the box
    Pressed
        fileName "Unit_Hud_Pressed"
        pixelBox [ 153 , 119 , 47 , 33 ]
    CursorOver
        fileName "Unit_Hud_CursorOver"
        pixelBox [ 153 , 119 , 47 , 33 ]
    Focused
        fileName "Unit_Hud_Normal"
        pixelBox [ 153 , 119 , 47 , 33 ]
    Normal
        fileName "Unit_Hud_Normal"
        pixelBox [ 153 , 119 , 47 , 33 ]

Reply #3 Top


What determines which picture is shown to buld a ship in the frigate and capital ship factories and where are those pict file stored? The name strings and the description strings are ok, as well as the built ship models, but the icons for in the factory are incorrect.  I am merging 2 mods and thats the only thing I can't get correct about the races I integrated.

i think in the entity file where it says:

hudIcon "HUDICON_ABILITY_ADAPTIVESHIELD"
smallHudIcon "HUDICON_ABILITY_ADAPTIVESHIELD"

let say you have a capital ships that uses a frigate icon, don't worry just say it uses the frigate icon name and it automacially use it

I'm not 100% sure as to what exactly it is that determines weather it goes into the capital ship factory or the frigate, but I think it depends on what type of entity file it is. eg weather its a "CAPITALSHIP entity" or a "frigate entity" file. Anyway I have done what I said above and it worked. Hope this helps And good luck.

I am sure it is determined in the player entity files where you determine the ships

capitalShipInfo
        Page:0
            count 5
            entityDefName "CAPITALSHIP_TECHBATTLESHIP"
            entityDefName "CAPITALSHIP_TECHCARRIER"
            entityDefName "CAPITALSHIP_TECHCOLONY"
            entityDefName "CAPITALSHIP_TECHSUPPORT"
            entityDefName "CAPITALSHIP_TECHSIEGE"
    frigateInfo
        Page:0
            count 6
            entityDefName "FrigateTechScout"
            entityDefName "FrigateTechLight"
            entityDefName "FrigateTechLongRange"
            entityDefName "FrigateTechSiege"
            entityDefName "FrigateTechAntiFighter"
            entityDefName "FrigateTechColony"
        Page:1
            count 6
            entityDefName "FrigateTechCarrier"
            entityDefName "FrigateTechUtility1"
            entityDefName "FrigateTechUtility0"
            entityDefName "FrigateTechHeavy"
            entityDefName "FrigateTechStarbaseConstructor"
            entityDefName "FrigateTechAntiModule"

+1 Loading…
Reply #4 Top

ah ok excellent, I didn't think to look in a file, I assumed they were seperate files.  Thank you.

Also anyone know which of the main folders you can use sub folders in, I have seen sub folders in at least one mod, but it does not appear to work in gameinfo, either that or I did not test it long enough.  I would really like to seperate each race into subfolders, to help keeping 1500+ files organized

Reply #5 Top

the folder structure is the same as sins & entrenchment ie gameinfo, textures, sound, mesh, particle, string, window, galaxy, pipelineEffect, TextureAnimations each containing there respective file types and for entrenchment the manifests in the root folder for the mod and NO sub folders under these are accessed

harpo

 

Reply #6 Top

ok finally figured out the frigate and cap factory issue... found the 4 hudicon_somethings.tga files.... was able to merge the 2 mods by renaming the second one, and creating hudicon manifests that pointed to the new hugicon_somethings2.tga files

Reply #7 Top
Ok! thanks Mooster, that makes sense. About the Icon locations. I'm still a little unclear as to exactly how the player entity files actually do it but I'll take your word for it. Sorry if this is is comming out all in 1 paragraph and is a little hard to follow, but for some reason the forum won't let me quote or even post a reply with paragraphs.