Unit Button troubles

woodelf

Bard
Retired Moderator
Joined
Jun 12, 2003
Messages
15,036
Location
Gallery
I'm sure this is an easy one, but I can't figure it out....

Why do my new unit buttons show up in the civilopedia, when they're being built, but NOT when the active unit is offscreen? In that case I get a larger pink button. What did I do incorrectly?

Thanks in advance
 
For some crazy :crazyeye: reason by default there are two different images that are used for pedia/build queue images and the off-screen arrow images. To fix that, in the button tag of unit definition you need to specify only one image (the first one) and remove the comma at the start on the path. Like so:
Code:
<Button>Art/Interface/Buttons/Units/shipoftheline.dds</Button>
As opposed to this:
Code:
<Button>,Art/Interface/Buttons/Units/Frigate.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,2,9</Button>
The comma thing (the one in the front) I'm not sure about, sometimes I have to remove it to make it work, other times leaving it works just fine.
 
Bless you Rabbit! :hatsoff: There are certain things in this game that can be maddening!
 
You were mostly correct rabbit. When you add a new button you don't want the comma, but if you use one of Firaxis' buttons you need the comma (maybe since it's in the resource_atlas?)

And yes it appears in the build circle on the city as well. Thanks again!
 
You were mostly correct rabbit. When you add a new button you don't want the comma, but if you use one of Firaxis' buttons you need the comma (maybe since it's in the resource_atlas?)

And yes it appears in the build circle on the city as well. Thanks again!

I took the commas out in song of the moon(v0.102). Did you not notice this when adding new units or are are you using an old version of the mod?
 
I noticed. :p

I was playing around while I was downloading the newest version. All is good now.
 
Back
Top Bottom