Worldbuilder: adding units...icon missing?

ww2commander

Emperor
Joined
Aug 23, 2003
Messages
1,243
Location
Australia
I did a few searches but came up blank so hoping someone can confirm if this is a bug or I did something stupid.

When placing units via worldbuilder, the flag icons wont display but the unit is created and placed correctly. Its there because I can edit it after placing, but its 'invisible' on the map.

Loading the map in game works perfectly fine and the unit flag icon is correct.

Is this a bug with worldbuilder or is there an additional flag setting somewhere (???) that I need to set for worldbuilder icons?
 
Crud....I just realized (in my half asleep state when typing this) that I posted it in the Civ 4 forum as opposed to the Civ 5 forum.

J...can you move it please.
 
Thanks J.


Probably should add some further detail.

I have added quite a few new units and they all appear in the create unit drop down box. When I choose one of the new units, and place it on the map it does so, but wont display the little icon flag on that hex indicating a unit is placed there.

The only way I know it is there is if I choose the edit unit option and select the hex. I can edit all properties.

This would not be an issue if it was a handful of units, but I am planning on placing a huge amount of units across a custom map and the necessity to identify the units is critical.
 
I'm not one to bump my own threads...but I am desperate to get some feedback if this is a common bug or only my end!

Its holding me up from trying to finish my Eastern Front scenario :(
 
Nevermind...I figured it out.

I was confusing the unit atlas icons for the SV icons used by worldbuilder.

Turns out I now have to do some extra work to associated each new unit with a SV icon.
 
I am in the process of producing new strategic view icons, but have not played around too much with them.

Here is what I discovered (probably known by the more experienced modders):

1. New SV icons must be added via a separate XML file as per the Ghengis Khan scenario.

2. New SV icons work fine in the strategic view for now (I have not seen any funny business yet like described on the forums!).

3. New SV icons will not display properly in Worldbuilder unless they are located in the 'resource\DX9' folder where Civ 5 is installed. Worldbuilder must be hardcoded to look in the resource folder???
This means you need to duplicate the SV icons into this folder in order to work with and edit units in worldbuilder. This is an acceptable workaround. If they are missing from the resource folder then you get a blank checkered pattern instead of the proper icon!

4. SV icons can be saved using DXT5 with alpha and there should not be any issue.
 
Further discoveries in the land of Strategic Icons (atleast for me!)

The hard limit for the whole ArtDefine_StrategicView seems to be 210 entries.

That means units, improvements, terrain etc.

Once it gets past 210 the icons get messed up with incorrect icons for new entries and in most cases no icon is displayed in game.

I ran an SQL query to remove all existing SV unit icons from the table and then insert my own entries (over 40 so far) and all things seem to be lining up correctly on the main screen and in strategic view as long as I keep under the hard limit.

EDIT: Also forgot to mention, another thing I noticed was that the entries in the civ5artdefines_sv_units.xml file seem to reference the art def entry as <Type> whereas the actual table entry (if using SQL) is actually <StrategicViewType>. This should be noted as any XML mods that try to change the SV artdefs might erroneously reference the XML table fields as opposed to the ones actuall in the DB (which I view via the SQLite Manager add-in for Firefox. Also another reason to use SQL rather than XML modding as its easier and quicker to fix on the fly.
 
Just incase anyone is interested, I think I am making some headway on the strategic icon situation.

I need to wrap up some lose ends and then I will check if all SV icons line up and compare this to any existing problems noted on this forum.

I will take some screenshots if things prove to work and create a new thread outlining what I did.

Lets hope I don' run into any further issues, but at this stage it seems to be a hard coding cap causing all the problems.
 
I ran an SQL query to remove all existing SV unit icons from the table and then insert my own entries (over 40 so far) and all things seem to be lining up correctly on the main screen and in strategic view as long as I keep under the hard limit.

Thank you for an extremely helpful series of posts. :goodjob:

Ran into hard limit as you indicated, but only wanted to remove a few modern-era SV icons to make some room in the list for my own icons.

Code:
DELETE FROM ArtDefine_StrategicView
WHERE StrategicViewType
BETWEEN 'ART_DEF_UNIT_MECH' AND 'ART_DEF_UNIT_MODERN_ARMOR'
 
Back
Top Bottom