Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: ReeNoiP on March 06, 2010, 05:12:27 am

Title: Tables and briefing icons
Post by: ReeNoiP on March 06, 2010, 05:12:27 am
I'm trying to add some extra icons to the briefing, but I'm not sure how to put it into the tables. I know they go to icons.tbl and the structure of the input (define regular,fade and highlight for terran, vasudan and shivan version), but I can't seem to add to the list in FRED. For instance:

Code: [Select]
; ICON_CAPITAL
$Name: icont-cap ; regular
$Name: Fadeicont-Cap ; fade anim
$Name: iconhighlight06 ; highlight anim

$Name: iconv-cap ; regular
$Name: Fadeiconv-Cap ; fade anim
$Name: iconhighlight06 ; highlight anim

$Name: icons-cap ; regular
$Name: Fadeicons-Cap ; fade anim
$Name: iconhighlight06 ; highlight anim

; Extra_capships
; SD Ravana
$Name: SDavana ; regular
$Name: Fade_SDRavana ; fade anim
$Name: iconhighlight07

; SD Ravana
$Name: SDavana.ani ; regular
$Name: Fade_SDRavana ; fade anim
$Name: iconhighlight07

; SD Ravana
$Name: SDavana.ani ; regular
$Name: Fade_SDRavana ; fade anim
$Name: iconhighlight07

; ICON_PLANET
$Name: iconplanet ; regular
$Name: FadeiconPlanet ; fade anim
$Name: iconhighlight03 ; highlight anim

$Name: iconplanet ; regular
$Name: FadeiconPlanet ; fade anim
$Name: iconhighlight03 ; highlight anim

$Name: iconplanet ; regular
$Name: FadeiconPlanet ; fade anim
$Name: iconhighlight03 ; highlight anim


Puts my new inserts my new icons as Planet in FRED and bumps everything below it down (planet icon becomes asteroid etc.). If I put the entry at the bottom of the table they don't show up at all.

What I would really like is to make a extra_icons.tbm, containing all the necessary inputs to use the icons. But I'm not sure if that is possible.
Title: Re: Tables and briefing icons
Post by: Snail on March 06, 2010, 08:16:33 am
In short, it's not possible at the moment.

The icons.tbl is almost completely hardcoded, in that you can only control (via tables) which entry links to which effects file. There are a hardcoded number of entries that the game will allow. These are the ones you see in the briefing editor in FRED (Gas Miner, Knossos Device, Planet, Asteroid etc.). Each entry points to an effects file (well, files, that is Fade, Bitmap and Highlight) which is what you see in-game.

What's more all of these entries have some specific traits, for example Unknown will always show the 3D-question mark when clicked, Asteroids will ways show the Asteroid ship type when clicked, and the planet can't be clicked at all no matter what you do with the table.

Anyway the point is, you can't add any new entries, only modify existing ones. Fortunately a lot of them are duplicates. You could probably swap Largeship and Largeship Wing (which point to the same effects as Cruiser and Cruiser Wing) off for your own icons. Any other built-in icons you never use such as Support Ship or Transport Wing can also be replaced.


I think this has been changed in newer builds, or at least will be changed soon. For now you'll have to settle with modifying the given ones unless you can find a build with a dynamic icons.tbl. Which AFAIK doesn't exist. Yet.
Title: Re: Tables and briefing icons
Post by: ReeNoiP on March 06, 2010, 08:30:43 am
Oh that's too bad. I was making icons to match the different ships. No more having the Lucifer represent a Ravana etc.
Title: Re: Tables and briefing icons
Post by: Snail on March 06, 2010, 10:00:59 am
Oh that's too bad. I was making icons to match the different ships. No more having the Lucifer represent a Ravana etc.
Keep at it! I'm sure the SCP will find a way for this to be possible soon if they haven't already.
Title: Re: Tables and briefing icons
Post by: Wanderer on March 07, 2010, 02:49:12 am
There has work towards this end but it has never been completed
Title: Re: Tables and briefing icons
Post by: Droid803 on March 07, 2010, 02:45:41 pm
It's hardcoded but you can have a set per species. Just add new species which are clones (ie. Shivan2, Terran2, Vasudan2). For each one you can have an entire new set of icons :P

This is very much a hack-job though.
Title: Re: Tables and briefing icons
Post by: ReeNoiP on March 09, 2010, 03:00:47 pm
I have made icons for the following ships now:
SD Ravana
SD Demon
SC Rakshasa
GTC Aeolus
GTF Pegasus
GTtca Hestia (needed it for Uncharted Territory  :p)
GVD Typhoon

If you want them, you can grab them here (http://www.mediafire.com/file/yg2llmyn2oz/Icons.rar).

I noticed a icons for some ships can be found in fsport, so I won't make those. I'm not sure if different fighter types are really needed either.

Anyway thanks for the idea about replacing repeated entries. At least I can use the icons now.
Title: Re: Tables and briefing icons
Post by: Aardwolf on March 09, 2010, 07:12:45 pm
I have made icons for the following ships now:
SD Ravana
SD Demon
SC Rakshasa
GTC Aeolus
GTF Pegasus
GTtca Hestia (needed it for Uncharted Territory  :p)
GVD Typhoon

If you want them, you can grab them here (http://www.mediafire.com/file/yg2llmyn2oz/Icons.rar).

I noticed a icons for some ships can be found in fsport, so I won't make those. I'm not sure if different fighter types are really needed either.

Anyway thanks for the idea about replacing repeated entries. At least I can use the icons now.

Aeolus? Aeolus already existed. And there's no such thing as GVD Typhoon. It's got a different spelling because it's a different word, with a different meaning.
Title: Re: Tables and briefing icons
Post by: ReeNoiP on March 10, 2010, 01:35:41 am
 :ick: Typhon then.