help with civpedia & pedia icons

register

Prince
Joined
Jun 10, 2014
Messages
408
Hi,

I wonder if someone can help me with it. I am trying to add new government types and new icon to each one but something is going wrong and i don't know how to fix it. All descriptions and paths in Civilopedia and Pedia seems to be ok but in the game the new governments (with red mark) have icons copied from different governments or randomly picked icon like for Tribalism for example. I have all necessary icons stored in right folder art/tech chooser/icon. I made another copy and placement in art/civilopedia/icons just in case because it seems like anarchy's icons is taken from this folder by default. Any idea?
 

Attachments

  • civpedia&pedia.jpg
    civpedia&pedia.jpg
    262.5 KB · Views: 76
  • game.jpg
    game.jpg
    191.2 KB · Views: 87
Your attached photo is showing large icons in the pediaicons, but do you have the small as well?
 
Give the gov an icon by adding this in the pediaicons.txt file:

#ICON_GOVT_Confederation
art\tech chooser\icons\confederationlarge.pcx
art\tech chooser\icons\confederationsmall.pcx

If it corresponds with the icon in ...\Art\tech chooser\Icons
then it will take that icon, or else it will pick the icon of the corresponding tech.
 
@wuhjah - yes, small icons and paths are added.

@Theov - there is small change with your help but still not right. In government's menu small icon is the same as it was but if you click confederation or other type of government, you can see the screen with icon I need but small one instated large one?


/edit/ I forgot to say that governments with red line next to it, cannot be research as a tech on its own but as a available type of government when player will research let's say "oligarchy", so icon for this government is copied to other governments available when you research "oligarchy".
 

Attachments

  • gov.jpg
    gov.jpg
    158.5 KB · Views: 108
I imagine it has to be a small overlooked detail...

Could it be your using an underscore in the name of the picture..._large? In some others you are using a hyphen...-large
 
register, you even have to place the governments needing techs in the correct place of your pediaicons file (no differentiation between Non-Tech Govts and Tech Govts):

Wrong:

#END LEADER/RACE ART

#########################################################################################
#START CIVILOPEDIA ART
#Non-Tech Govts
#ICON_GOVT_ANARCHY
art\civilopedia\icons\anarchy large.pcx
art\civilopedia\icons\anarchy small.pcx
#ICON_GOVT_DESPOTISM
art\civilopedia\icons\despotism large.pcx
art\civilopedia\icons\despotism small.pcx
#End non-tech Gov'ts

Correct:

#END LEADER/RACE ART

#########################################################################################
#START CIVILOPEDIA ART
#Non-Tech Govts
#ICON_GOVT_ANARCHY
art\civilopedia\icons\anarchy large.pcx
art\civilopedia\icons\anarchy small.pcx
#ICON_GOVT_DESPOTISM
art\civilopedia\icons\despotism large.pcx
art\civilopedia\icons\despotism small.pcx
#ICON_GOVT_X,Y,Z
(per example in RARR):

#ICON_GOVT_THEOCRACY
art\tech chooser\icons\theocracy_large.pcx
art\tech chooser\icons\theocracy_small.pcx
#ICON_GOVT_FEDERAL_REPUBLIC
art\tech chooser\icons\federalrepublic large.pcx
art\tech chooser\icons\federalrepublic small.pcx
#ICON_GOVT_SOCIAL_DEMOCRACY
art\tech chooser\icons\socialdemocracy large.pcx
art\tech chooser\icons\socialdemocracy small.pcx
#ICON_GOVT_FASCIST
art\tech chooser\icons\fascism large.pcx
art\tech chooser\icons\fascism small.pcx
#ICON_GOVT_Con_Monarchy
art\tech chooser\icons\ConMonarchy large.pcx
art\tech chooser\icons\ConMonarchy small.pcx
#ICON_GOVT_Abs_Monarchy
art\tech chooser\icons\Absolute Monarchy-Large.pcx
art\tech chooser\icons\Absolute Monarchy-small.pcx
#ICON_GOVT_Fundamentalism
art\tech chooser\icons\Fundamentalism large.pcx
art\tech chooser\icons\Fundamentalism small.pcx
#End non-tech Gov'ts

In that column you have to list all governments, that should use icons, that are different to the techicons.
 
I've attached the .txt file that Civinator is referring too :)

If you haven't made any other mistakes, then it should work.
It seemed as if you named the small icon 'large' too... but maybe that's something else.
 

Attachments

  • Pediaicons.txt
    284.2 KB · Views: 42
God knows. I am still working on tech tree and buildings and some descriptions. This should be finished soon but later I have to add 300-400 units and after that I to need re-render 20-30 units because I found some issues.
 
Top Bottom