Missing Building Icon

codefreak5

Procrastinator
Joined
Oct 23, 2013
Messages
153
Location
United States of America
I am currently making a new civilization. Recently, the icon for my UB has disappeared - but only for one particular size, and only in two locations, as you'll see in the pictures I'll upload. I'm at a loss as to why this would happen, as it hasn't before.
You'll find the current files in the OP of the thread linked in my signature.
 

Attachments

  • Missing Icon 1.png
    Missing Icon 1.png
    75.1 KB · Views: 69
  • Missing Icon 2.png
    Missing Icon 2.png
    44.2 KB · Views: 75
  • Missing Icon 3.png
    Missing Icon 3.png
    73.2 KB · Views: 68
I believe the problem is, at least for 32x32 sizes, that the building icon is set to <PortraitIndex>3</PortraitIndex> (in other words, the fourth icon) but for the YlisseAtlas32.dds there are only 2 icons. So if you add the other icons at that size, even if they're not needed, I think it should probably work.
 
I believe the problem is, at least for 32x32 sizes, that the building icon is set to <PortraitIndex>3</PortraitIndex> (in other words, the fourth icon) but for the YlisseAtlas32.dds there are only 2 icons. So if you add the other icons at that size, even if they're not needed, I think it should probably work.

I tried that, and unfortunately, it did not work.
The downloads have undergone a minor update to reflect these changes.
 
Update/Bump
I can confirm that this problem not only affects the building, but the unit as well.
I've tried deleting/remaking the icon atlas, re-coding the XML, pretty much everything I can think of.
Nothing really sticks out in the logs, but I'll provide an excerpt if it proves useful.
Spoiler :
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6552144 71653192
PageCache: 6 13
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 6131664 58995216
Scratch: 0 0

Largest Allocations:
Malloc: 262144
PageCache: 1172
Scratch: 6640

Prepared Statements:
Current: 8
------------------------------
[164126.155] no such table: Language_zh_CN
[164126.155] In Query - insert into Language_zh_CN('Tag', 'Text') values (?, ?);
[164126.155] In XMLSerializer while updating table Language_zh_CN from file Localization/IGE_ZH_CN.xml.
[164127.341] Validating Foreign Key Constraints...
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.341] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[164127.622] Invalid Reference on Buildings.Civilopedia - "TXT_KEY_BUILDING_STATUE_OF_NAGA_PEDIA" does not exist in Language_en_US
[164129.509] Failure to check references for foreign key Units(PolicyType).
[164129.509] no such table: PolicyTypes
[164129.509] Failed Validation.
[164130.149]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 6598144 71653192
PageCache: 7 13
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 6150480 58995216
Scratch: 0 0

Largest Allocations:
Malloc: 262144
PageCache: 1172
Scratch: 6640

Prepared Statements:
Current: 12
------------------------------
[164174.578] no such column: Type
[164174.578] In Query - select * from Natural_Wonder_Placement where Type = ? LIMIT 1


Also, the entire buildings section in the Civilopedia is gone, and I don't know why. It only happens when my mod is activated, though - I checked. The logs don't seem to tell me anything, though I could be missing important information in them somewhere.
 

Attachments

  • Capture.PNG
    Capture.PNG
    4.7 KB · Views: 52
  • Capture 2.PNG
    Capture 2.PNG
    461.4 KB · Views: 76
The problem's been fixed. I needed to use the ARGB format for the 45x45 .dds file.

Civilopedia issue is still there, though, and it's bigger than I thought - all of the tabs after Units are empty.
I should really make another thread about that.
 

Attachments

  • Fixed 3.PNG
    Fixed 3.PNG
    24.3 KB · Views: 57
  • Fixed 2.PNG
    Fixed 2.PNG
    7.1 KB · Views: 103
  • Fixed.PNG
    Fixed.PNG
    6.7 KB · Views: 42
  • Fixed 4.PNG
    Fixed 4.PNG
    7.3 KB · Views: 138
Civilopedia issue is still there, though, and it's bigger than I thought - all of the tabs after Units are empty.

Enable logging, click on the Civilopedia, check Lua.log - there will be errors
 
Inside the Lua log, I'm finding these two lines:
Spoiler :
[198279.407] Runtime Error: Assets\DLC\Expansion2\UI\Civilopedia\CivilopediaScreen.lua:672: bad argument #1 to 'ConvertTextKey' (string expected, got nil)
[198279.407] Runtime Error: Error loading Assets\DLC\Expansion2\UI\Civilopedia\CivilopediaScreen.lua.

This seems to happen when the game starts.
I also find this when I open the buildings tab:
Spoiler :
[198481.148] CivilopediaScreen: SetSelectedCategory(6)
[198481.148] CivilopediaScreen: CivilopediaCategory[CategoryBuildings].DisplayList
[198481.164] Runtime Error: Assets\DLC\Expansion2\UI\Civilopedia\CivilopediaScreen.lua:6357: attempt to index field '?' (a nil value)

I've looked through the lua file it's referencing. Line 672 has to do with promotions and text keys, while line 6357 has to do with populating the building list.
 
Code:
[198279.407] Runtime Error: Assets\DLC\Expansion2\UI\Civilopedia\CivilopediaScreen.lua:672: bad argument #1 to 'ConvertTextKey' (string expected, got nil)

According to that, one of your promotions is missing a pedia entry

Code:
672: local name = Locale.ConvertTextKey( thisPromotion.PediaEntry )
 
Back
Top Bottom