Problem with adding overlay- please help.
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.
-
- Posts: 40
- Joined: August 25th, 2013, 12:50 pm
Problem with adding overlay- please help.
i have a problem, i want to add graphics to the game they won't draw in editor or game.
my graphics-files are named ice-parts1, ice-parts2 ... until ice-parts6
they are in a folder named frozen (i tried to rename it to frozen2, because frozen is used by mainline but i still have the problem)
in terrain.cfg i used this code
and in terrain_graphics.cfg i used this code
(i copied the code from mainline and changed it a bit)
have you an idea, why it doesn't draw in editor?
my graphics-files are named ice-parts1, ice-parts2 ... until ice-parts6
they are in a folder named frozen (i tried to rename it to frozen2, because frozen is used by mainline but i still have the problem)
in terrain.cfg i used this code
Code: Select all
[terrain_type]
symbol_image=frozen/ice-parts1
editor_image=frozen/ice-parts1
id=icechasm
editor_name= _ "Iceparts"
string=^Aip
aliasof=At,_bas
submerge=0
editor_group=testgraphics
[/terrain_type]
Code: Select all
{OVERLAY_RANDOM_L *^Aip -1 frozen/ice-parts}
have you an idea, why it doesn't draw in editor?
Re: Problem with adding overlay- please help.
By coincidence, I was working on a similar terrain about a year ago, and I got it working without issues. Here is my code:
Pictures I used were frozen/ice-shards.png , frozen/ice-shards-2.png etc to frozen/ice-shards-7.png . I don't know what is exactly your problem, but coding it like I did should work.
Code: Select all
{OVERLAY_RANDOM *^Xis frozen/ice-shards}
Code: Select all
[terrain_type]
symbol_image=frozen/ice-shards4
id=ice_shards
editor_name= _ "Ice Crystals"
string=^Xis
aliasof=_bas
editor_group=wesnoth-UMC-LotI
[/terrain_type]
-
- Posts: 40
- Joined: August 25th, 2013, 12:50 pm
Re: Problem with adding overlay- please help.
i tried it but it didn't help
when i start the editor, i can see the graphics in the side-menu, then i select it and i want to place it somewhere on the map.
but there is nothing what i can see, (similar to an village- or castle-overlay, i still see the grass, but when i go over this field with the mouse, i can see "iceparts" in the right edge on the top.
when i start the editor, i can see the graphics in the side-menu, then i select it and i want to place it somewhere on the map.
but there is nothing what i can see, (similar to an village- or castle-overlay, i still see the grass, but when i go over this field with the mouse, i can see "iceparts" in the right edge on the top.
Re: Problem with adding overlay- please help.
Perhaps this would help:
http://forums.wesnoth.org/viewtopic.php?f=21&t=39434
http://forums.wesnoth.org/viewtopic.php?f=21&t=39434
rmj
-
- Posts: 40
- Joined: August 25th, 2013, 12:50 pm
Re: Problem with adding overlay- please help.
i tried it but it doesn't help