Overlay macro do not what i think it does or isn't working.
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Overlay macro do not what i think it does or isn't working.
I have this in the main.cfg
this on terrain.cfg
this on terrain_graphics.cfg
I have the image sand_rubble_i.png on the {~add-ons/ce_era/images/terrain} folder
When I open the editor, it finds the group, it finds the terrain, and i see the proper icon and if put the tile somewhere I see my image, the terrain gain the properties of my terrain. But no image keeps on the map.
what's my mistake?
Code: Select all
#ifdef EDITOR
[binary_path]
path=data/add-ons/CE_Era
[/binary_path]
[editor_group]
id=CE
name= _ "Competitive Era"
icon="group_custom"
[/editor_group]
{~add-ons/Ce_Era/terrain_graphics.cfg}
{~add-ons/Ce_Era/terrain.cfg}
#endif
Code: Select all
#sand rubble
[terrain_type]
symbol_image=sand_rubble-tile
id=sand_rubble_i
name= _ "Rubble"
string=^Dri
aliasof=Xt
mvt_alias=-,_bas,Hh
editor_group=CE
[/terrain_type]
Code: Select all
{OVERLAY ^Dri sand_rubble_i}
When I open the editor, it finds the group, it finds the terrain, and i see the proper icon and if put the tile somewhere I see my image, the terrain gain the properties of my terrain. But no image keeps on the map.
what's my mistake?
- Ken_Oh
- Moderator Emeritus
- Posts: 2178
- Joined: February 6th, 2006, 4:03 am
- Location: Baltimore, Maryland, USA
Re: Overlay macro do not what i think it does or isn't working.
This is the proper syntax for the macro:
Code: Select all
{OVERLAY *^Dri sand_rubble_i}
Re: Overlay macro do not what i think it does or isn't working.
Thanks a lot, now it works properly, it's a shame how i keep losing big amount of times trying to post a mistake like that.
- Ken_Oh
- Moderator Emeritus
- Posts: 2178
- Joined: February 6th, 2006, 4:03 am
- Location: Baltimore, Maryland, USA
Re: Overlay macro do not what i think it does or isn't working.
It happens to the best of us.
Well, it happens to me, at least. I really can't speak for the best of us.
Well, it happens to me, at least. I really can't speak for the best of us.