[CivUP 2.3.2/GEM 1.12.2] ShowInPedia for building does not work

skodkim

Deity
Joined
Jan 16, 2004
Messages
2,497
Location
Denmark
Hi

I have a building that would like to hide in the civilipedia but I can't seem to get the ShowInPedia tag to work.

Tried searching the GEM files but I can't seem to find examples other than for units.

It's not high priority.

\Skodkim
 
Thank you for pointing this out, it had a check in the Wonders section but not the Buildings section. I added that now.

Add "IsVisible=1 and ShowInPedia=1" to line 728 of Civup/3_Interface_Branches/Misc/CivilopediaScreen.lua

WHERE IsVisible=1 and ShowInPedia=1 and FaithCost == 0 ...


Also line 716:

where IsVisible=1 and ShowInPedia=1 and FaithCost > 0
 
Thanks for the reply Thal

I followed your instructions but infortunately I can't open the civilopedia screen after this. Maybe I'm just doing it wrong. I changed the lines to the following:

Line 716:
Spoiler :
for building in DB.Query("SELECT Buildings.ID, Buildings.Description, Buildings.PortraitIndex, Buildings.IconAtlas from Buildings inner join BuildingClasses on Buildings.BuildingClass = BuildingClasses.Type where IsVisible=1 and ShowInPedia=1 and FaithCost > 0 and BuildingClasses.MaxGlobalInstances < 0 and BuildingClasses.MaxPlayerInstances <> 1 and BuildingClasses.MaxTeamInstances < 0;") do


Line 728:
Spoiler :
WHERE IsVisible=1 and ShowInPedia=1 and FaithCost == 0 AND BuildingClasses.MaxGlobalInstances < 0 AND BuildingClasses.MaxPlayerInstances <> 1 AND BuildingClasses.MaxTeamInstances < 0 AND Technologies.Era = ?;]];


\Skodkim
 
Back
Top Bottom