Civ-icons not showing up on computer-player in-game

Skajaquada

Crazy Engineer
Joined
Mar 4, 2007
Messages
134
This is somewhat strange. I've managed to create a few new civilizations all with their own Civ-icons. They show up in the menues before you start a game for all civilizations but in-game they only show up on the player-civ (victory-screen, diplomacy-screen etc.) while the computers use some ugly default ones.

I found something with the file IconSupport.lua. It makes references to CIV_COLOR_ATLAS directly and following Kael's guide I imported my icons by creating a new entry and ID like that. However replacing that CIV_COLOR_ATLAS with my new ID does nothing, either changing the file in the Civ-folder or trying to import it in the mod. Then I tried updating "FileName" for the already existing Icon-entries but then the mod didn't work at all only showing the default-civilizations.

I'll look more into the last part tomorrow but I'm asking because it seem like something simple I'm not seeing (like a option for the Civ). There are mods that add civilizations, right? Or did some patch screw this up right now? Anyway, I searched some but couldn't find a thread for it.

SOLVED: Same default-player-color for several civilizations sure do give a strange error, then again it's used for the team-color icons it might be really sensitive.
 
I found something with the file IconSupport.lua. It makes references to CIV_COLOR_ATLAS directly and following Kael's guide I imported my icons by creating a new entry and ID like that.

Yeah, you can't do that. You can't replace an existing icon atlas, not if you want the game to work right, unless you can find a way to extract the .dds files from the .fpk without any issues.
Bottom line, you'll need to create your own atlas, with a different name. This'll apparently mean modifying a few Lua scripts that currently hard-code the atlas name; you get the same issue if you want to create a new strategic resource, because it hard-codes to use TERRAIN_ATLAS, so you have to modify ResourceIconManager.lua for that. It sounds like the same sort of thing applies here. (Blame the devs.)
 
I seem to be out of luck. I managed to update the filename-attribute of the existing icon-atlas entries. It updated the icons in the pre-game menu, so I'm sure the changes worked, but it was the same problem in-game.

Then I searched all the Civ-folder for entries with the words CIV_COLOR_ATLAS and imported them to my project. Some had XML-files that even seemed to make direct references to the DDS-files as well as the atlas-table... Anyway, I tried changing everything but it didn't seem to work. In-fact changes there seem to break everything as I'm not getting my new icons in the pre-game menu any-more.

One thing that might be a problem is that some of the LUA-files with that entry doesn't have corresponding XML-files. I don't know if those can't be read properly. Anyway, I tried including them with and without InGameUIAddin and VFS set to true and false but nothing worked.
 
Back
Top Bottom