• 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.

UncappingBadger

Recruit
24 Badges
Jun 17, 2016
8
2
  • Naval War: Arctic Circle
  • Stellaris: Galaxy Edition
  • Stellaris: Leviathans Story Pack
  • Arsenal of Democracy
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Together for Victory
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normandy 44 Deluxe Edition
  • Steel Division: Normandy 44
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • Crusader Kings II
Greetings,

First of all let me start off by saying that modding is alien to me. I heard somewhere that Stellaris ontop of being a great game made modding very easy so I decided to give it a try.

I'm working on a mod that creates a new ship aura. I've managed to get the effect in game and also get it balanced which in itself is a small miracle. What i'm having a problem with is giving my new aura an icon of its own. I can give it a stock icon just fine (I used the sensor mk4 icon to begin with). I've looked on the WIKI and can't seem to get an answer that actually explains what i'm meant to do. It gives me code, and a vague file structure.

My file Structure is as follows:

*Filenames changed for clarity

Documents>Paradox...>Stellaris>mod>MyMod>

I then have 2 sub folders

Common>Component_Templates
GFX>Interface>Icons

From what i'm able to gather from the wiki I place my DDS image (my icon) in the icons folder. Then in the interface folder. I then make a file called icons.gfx with the following code:

spriteType = {
name = "GFX_mymod"
texturefile = "gfx/interface/icons/GFX_mymod.dds"
}

spriteType = {
name = "GFX_mymod"
texturefile = "gfx/interface/icons/GFX_mymod.dds"
noOfFrames = 1
}

It's worth mentioning that inside of the "00_utilities_auras.txt" (my new one, not the original) I have the following code:

utility_component_template = {
key = "My mod"
size = medium
icon = "GFX_MyMod"
icon_frame = 1
power = -400
cost = 250
The game doesn't seem to mind the above configuration and loads perfectly fine but when I go into the ship designer and look at my aura its blank.

-------------------------------------

The second issue I have is that if myself and my friend run the mod (either by installing manually or by downloading from the Steam Workshop) we can't use it in multiplayer. We can see it in Singleplayer Ok but MP its just not present.

Any help would be greatly appriciated.

Badger.
 
Well I am not sure if this will fix the issue, but all icons for components are in gfx/interface/icons/ship_parts/ship_part_<component_name>.dds

And the icons.gfx file should be called something else as it will otherwise overwrite the vanilla file. And if you are missing it you need to put
Code:
spriteTypes = {
    spriteType = {
              name = "GFX_ship_part_<component_name>.dds
              texturefile = "gfx/interface/icons/ship_parts/ship_part_<component_name>.dds"
    }

}

But most of this shouldn't matter.
 
That didn't help at all. If anything its made me more confused.

Why would I put my icon in the games default directory. Wouldn't that cause more issues when it came to uploading it to the steam workshop?

I don't believe adding the code you have suggested to mine would do anything due to having already had the Sensor Mk4 icon successfully appear in game. I really need a dev to tell me what the score is as nobody in the community seems to know and the Wiki's are as much help as a chocolate fire guard :(
 
That didn't help at all. If anything its made me more confused.

Hm what exactly do you not understand?

The important part about it is that you need to put

Code:
spriteTypes = {

}

around your icon sprite definitions. I added it because you did not specify that you have it so I was not sure if you do.

The easiest way to help you is if you upload your mod as a zip here.

Why would I put my icon in the games default directory. Wouldn't that cause more issues when it came to uploading it to the steam workshop?

Uhm no? How would that make uploading the mod more problematic? You always use their directories to add anything...

For example adding a technology icon is only possible by adding it to the icons/technologies/ folder. You don't have to add all the files in that folder to your mod. You only have to add your additional files and those that you want to overwrite.

I don't believe adding the code you have suggested to mine would do anything due to having already had the Sensor Mk4 icon successfully appear in game. I really need a dev to tell me what the score is as nobody in the community seems to know and the Wiki's are as much help as a chocolate fire guard :(

Well can't help you if you aren't going to try stuff...

And I don't see what the devs should tell you? Adding Icons works, so the problem is on your end and not on theirs. All you can do is adjust and test, until it works.