Hall Of Fame always shows correct civ-icons somehow

Skajaquada

Crazy Engineer
Joined
Mar 4, 2007
Messages
134
I'm still working on getting the Civ-icons to show for the computer-players. I've found there are references to CIV_COLOR_ATLAS in HallOfFame.lua, IconSupport.lua, UniqueBonuses.lua and VoteResultsPopup.lua.

I've tried simply replacing those references with my new icon-atlas but it doesn't seem to do anything loading the files every which way. The main thing I could gather from the files are that they mostly make a check if "civ" something is set, then use civ.IconAlas, otherwise just use that string "CIV_COLOR_ATLAS".

The strangest, and this I really could use some help with, is that the Hall Of Fame-window seem to always show the correct civ-icons even when the HallOfFame.lua file or any other file that I previously mentioned aren't even part of the project. It then really seem like HallOfFame.lua is the only file loading the icon-atlas "correct". Going through it it makes calls to IconHookup and IconLookup in IconSupport.lua.

The obvious test, printing "atlas" in those two functions gave the following result:

Spoiler :
VictoryProgress: IconHookup: CIV_COLOR_ATLAS_LEGENDS
VictoryProgress: IconHookup: CIV_COLOR_ATLAS_LEGENDS
VictoryProgress: IconLookup: CIV_ALPHA_ATLAS
EndGameMenu: IconHookup: CIV_COLOR_ATLAS_LEGENDS
TechPanel: IconHookup: TECH_ATLAS_1
TechPanel: IconLookup: UNIT_ACTION_ATLAS
EndGameMenu: Play audio: AS2D_VICTORY_SPEECH_DIPLOMATIC_VICTORY
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
Demographics: IconLookup: CIV_ALPHA_ATLAS
Demographics: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
HallOfFame: IconHookup: LEADER_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: CIV_COLOR_ATLAS_LEGENDS
HallOfFame: IconHookup: DIFFICULTY_ATLAS
HallOfFame: IconHookup: CIV_COLOR_ATLAS
HallOfFame: IconHookup: WORLDTYPE_ATLAS
HallOfFame: IconHookup: WORLDSIZE_ATLAS
HallOfFame: IconHookup: GAMESPEED_ATLAS
EndGameMenu: IconHookup: CIV_COLOR_ATLAS_LEGENDS
LoadMenu: IconLookup: CIV_COLOR_ATLAS
SelectCivilization: IconLookup: CIV_COLOR_ATLAS
SelectGameSpeed: IconHookup: GAMESPEED_ATLAS
SelectGameSpeed: IconHookup: GAMESPEED_ATLAS
SelectGameSpeed: IconHookup: GAMESPEED_ATLAS
SelectGameSpeed: IconHookup: GAMESPEED_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectDifficulty: IconHookup: DIFFICULTY_ATLAS
SelectMapType: IconHookup: WORLDTYPE_ATLAS
SelectMapType: IconHookup: WORLDTYPE_ATLAS
SelectMapType: IconHookup: WORLDTYPE_ATLAS
SelectMapType: IconHookup: WORLDTYPE_ATLAS
SelectMapType: IconHookup: WORLDTYPE_ATLAS
SelectMapSize: IconHookup: WORLDSIZE_ATLAS
SelectMapSize: IconHookup: WORLDSIZE_ATLAS
SelectMapSize: IconHookup: WORLDSIZE_ATLAS
SelectMapSize: IconHookup: WORLDSIZE_ATLAS
SelectMapSize: IconHookup: WORLDSIZE_ATLAS
SelectMapSize: IconHookup: WORLDSIZE_ATLAS
SelectMapSize: IconHookup: WORLDSIZE_ATLAS
GameSetupScreen: IconLookup: CIV_COLOR_ATLAS
GameSetupScreen: IconHookup: WORLDTYPE_ATLAS
GameSetupScreen: IconHookup: WORLDSIZE_ATLAS
GameSetupScreen: IconHookup: DIFFICULTY_ATLAS
GameSetupScreen: IconHookup: GAMESPEED_ATLAS
GameSetupScreen: IconHookup: LEADER_ATLAS
Credits: Header type not found.


The LEGENDS-part is my own icon-atlas like the one in Kael's guide... Obviously the Hall Of Fame could get it's icons in another way because it's not restricted to active players. Not sure how that helps me.

Other than that I've gone through files like DiploList.lua and checked that it calls functions from the IconSupport.lua so my hope is really to retrieve some "fix" from HallOfFame.lua and use it there...

One thing I'm starting to suspect is that it's not those with references to CIV_COLOR_ATLAS that are the problem but those calls to the functions in IconSupport.lua that send in faulty icon-atlases. I'm saying this because other lists that show the wrong civ-icons like the Victory-screen (VictoryProgress.lua) only makes calls to those functions in IconSupport.lua and doesn't try to use CIV_COLOR_ATLAS. Hopefully then additional checks and actions in the IconSupport.lua can fix this mess.

Any thoughts? This is the progress I've made tonight. I checked some Civ-mods in the Civ-pack forum and none seem to address this problem, so we're all pretending it isn't there? :)

SOLVED: Darn same DefaultPlayerColor for lots of civilizations gave this error...
 
The main thing I've discovered today and what appears to be the last piece of the puzzle is that the Victory-screen, Trade-screen and probably some other seem to get their Civ-icons from the AlphaIconAtlas... Also the sizes are a little wrong. This seem to be the case even when I've removed all files from my mod-project that do anything with icons.

I've tried to start a normal game without mods and it doesn't seem like there's a difference between the Civ-icons used on those screens so I've no idea why they should be wanting to use the alpha-atlas. Also anyone know what that atlas is for? Reading the comments it seem to be used to blend the team- or civilization-color with the icon for when several Civilizations use the same icon.
 
Top Bottom