• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Mordachai

Second Lieutenant
31 Badges
Jun 1, 2004
166
44
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • BATTLETECH
  • Knights of Honor
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Ancient Space
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Pillars of Eternity
  • Mount & Blade: Warband
  • 500k Club
  • Warlock: Master of the Arcane
  • Sword of the Stars II
  • Sword of the Stars
  • Magicka
  • Hearts of Iron III
  • Deus Vult
When you mouse over a fleet, you get a tooltip that includes a pip-icon, ship-class name, colon, and count for each class of military vessel in your fleet.

e.g.:

. Corvette: 5
: Destroyer: 2
:: Battleship: 1

(i'm improvising the pip icons, above)


The icons that represent those pips in that tooltip are specified in texticons.gfx.

However, adding additional entries there for additional ship classes doesn't show the new pip-icons in the tooltip. :(

I can find no references to any of the sprites defined in that file. I'm beginning to think they're hard-coded.

Does anyone else know whether there is a master text file or template for the tooltips that might be altered to pick up the new ship class texticons of my mod?
 
You mean you added entries in the texticons.gfx at "\Stellaris\interface" and also placed new image in "gfx/interface/icons/text_icons/" with same name as your entry?

Based on the the file it looks like it really should work.
 
You mean you added entries in the texticons.gfx at "\Stellaris\interface" and also placed new image in "gfx/interface/icons/text_icons/" with same name as your entry?

Based on the the file it looks like it really should work.
Yes, exactly.

interface\texticons.gfx:
Code:
    spriteType = {
        name = "GFX_text_battlecruiser"
        texturefile = "gfx/interface/icons/text_icons/icon_text_battlecruiser.dds"
    }
  
    spriteType = {
        name = "GFX_text_light_carrier"
        texturefile = "gfx/interface/icons/text_icons/icon_text_light_carrier.dds"
    }
  
    spriteType = {
        name = "GFX_text_battleship"
        texturefile = "gfx/interface/icons/text_icons/icon_text_battleship.dds"
    }
  
    spriteType = {
        name = "GFX_text_carrier"
        texturefile = "gfx/interface/icons/text_icons/icon_text_carrier.dds"
    }
  
    spriteType = {
        name = "GFX_text_dreadnought"
        texturefile = "gfx/interface/icons/text_icons/icon_text_dreadnought.dds"
    }

gfx\interface\icons\text_icons\
Code:
icon_text_battlecruiser.dds
icon_text_battleship.dds
icon_text_carrier.dds
icon_text_dreadnought.dds
icon_text_light_carrier.dds

The battleship is there because it gets 5 pips in my mod, not 4.
 
That's the thing - there aren't any references to *any* of the named items in that file. None. Nowhere within Stellaris at all.
So I'm wondering if it's a generic template with fill-in-the-blanks style formatting (such as venerable printf("Hello %s", "World") - so there's no reference to these things, they're used to fill in the %s argument, essentially.

Or if they're even less accessible and that above presumed formatting string is embedded / hard-coded in the exe, and not moddable.

Other things like this seem to work - it would appear that those same icons do appear underneath a fleet banner in the system view. So you get a hanging list of ships in a fleet with red (enemy) or green (friendly) pips, and a count under that.

Those come from gfx\interface\system\*.dds I believe, and my images there do work, and those are specified in:
interface\solar_system.gfx

But like the text icons, are not themselves referenced from anywhere else (that I can find).

So I think maybe this is an oversight in Stellaris.exe? But I hoped someone else would have direct knowledge of something I'm missing / failing to do...?
 
So you've got them to show up in game and the only thing lacking is their tooltip? Then I'm afraid I don't know why it shouldn't work, my only idea would be for the names to match but I guess they already do.

@Divine Is tooltips for new ship classes moddable?