Several of our mainline campaigns are in the works for upgrades at the moment, which includes adding characters and enhancing existing scenarios. We are looking for more artwork to supplement these upgrades, including the following:
We are happy to announce that Wesnoth is now able to accept donations on Liberapay . While Wesnoth does rely on the work of dedicated volunteers, no project can function completely cost-free. Revenue from the Apple App Store and from donations goes towards maintaining our servers,...
There have been numerous important forum posts and wiki articles written by users and developers. We reference these pages a lot, and decided to put them together in a convenient list.
Write clearly, be nice to others, and be very careful when posting anything related to politics or religion. When asking for help, remember that everyone here is a volunteer. Prefer editing your previous post over double posting. No animated avatars or graphical signatures. Don’t plagiarize other’s...
Here you can find configuration files to enable WML syntax highlighting for various text editors :
Gedit (and other Gnome based editors): Has full WML support and partial inline lua support.
wml.lang goes in /usr/share/gtksourceview-3.0/language-specs .
cobalt-wml.xml goes in...
This lists removed WML functionality and helpful hints for avoiding pitfalls.
A similar thread for changes before 1.18 can be found here .
Compatibility breaking (requires updates to work)
now reduces target unit hitpoints to 0 before triggering last_breath, die events. This affects mentioned...
The purpose of this thread is to provide links to particularly useful information and code examples of WML and Lua on the wiki, without cluttering up this forum with more and more stickies. As such, the wiki pages linked here should be kept working and up to date - if an unmodified piece of example...
Does you campaign produce obscure WML errors on startup and you don't know what line in your 2000 lines of WML causes it? Instead of going through everything line by line and try to spot the mistake you've made, or before posting your entire campaign on the forums in the hopes that someone wants to...
People often use WML attribute or tag names that are misspelled or just plain fictitious when trying to debug WML — or even tag structures that (to the trained eye) are logical to the writer but have no basis in reality. You should always look up the proper format first, and we have a dedicated...
I dont know where in my code is a core of the problem. Ive checked all die events and added if there if variable isnt null then unstore unit. Game is still spamming info about unstoring unit that is null. Anyone can take a look in to abilities.cfg file that you can find in to my addon folder...
Hey, Im working on new campaign and I don't know how to create recall list to have units from first scenario in next one. Anyone could write me here it? I tried my self but it didn't work.
Hello! I have macro called spawner. It spawns by default walking corpse at a given x,y coordinate and the last argument is an array of turns to tell when should spawn. My code looks like that:
In use it looks like that:
However the logged message shows that TURNS is 1,6,10,13 and I get the...
Hello! I want to end a scenario when the Caravan and the gear horder unit gets adjacent. So I created 2 moveto event for them to cover the cases when the Caravan moves and when the gear horder moves. However the event triggers always when they make a move action.
Hello! I'm trying to make a realistic zombie campaign. When a living unit gets hit from a walking corpse it turns into a walking corpse. This mechanic works, however the new walking corpse can move and attack immediately and that is not desired. I read the wiki abot unit attributes, so I tried to...
Hello, I'm trying to develop my own factions of catgirls. The art was started and can be found here .
I'm trying to recolor the following sprite with two color ranges. There's the default magenta palette and a new cyan palette. I'd like the magenta to be recolored normally to the team color, but...
20241124 09:19:20 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:20 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:21 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:21 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:21...
there is a lot of material on how to create good animations (e.g. but it mostly talks about the images part. But another part of the animation is actually in the WML. I.e. things like these:
How far does the unit slide into the tile of the opponent?
Does it maybe even go back before...
I set up a Github workflow for running WML tools on the repo of my custom era. I thought it could be interesting for some. Feel free to use and adapt it it if you think it's useful for you as well.
The tricky bits are:
I need the mainline Wesnoth repository, but that is huge and I only want the...
Should probably be two posts but I've spent way too long on these issues already.
: First the easy and original issue:
Getting a message in logfile, repeated 5 times with exact same timestamp.
Appears in log after story so in prestart/start I guess.
Just wondering if it's significant?...
When I run wmllint on one of my scenarios, I get the error message
This is the snippet of code where the complaint comes from:
I guess the problem is that the unit Arzemar is only defined in a macro and there are a few events that create it, but it's not guaranteed to be created by this...
Hi I have a set_menu_item which appears for units with a role of worker , it allows the worker to engineer (transform) terrain.
It currently uses the filter ( #new filter to check for enemy units within 3 hexes with the role of Structure ) , this hides the menu when the worker is within 3 hexes of...
Main Question
How do I install the latest versions of WML tools? I am using the package `wesnoth-1.16-tool` on Ubuntu, but I want to develop for Wesnoth 1.18, so it seems like having the 1.16 tools is a bit suboptimal, even if it will already be better than nothing. It sounds like...
Is it possible to create an ageless worls conquest era, so we can choose it over the default wc era?
Is it necessary to modify the WC mod for ageless units?
Can we play with swapping ageless recruits from different factions just like using default wc era?
I'm trying to make ability, that recruits random unit from side recruitment list.
I decided to do this by picking random number base on length of $rec_side.recruit array, however there's one problem: when I try to get $rec_side.recruit.length, the value is 0. Is there anything I can do to solve...
I'm having an issue with getting duplicate traits on my units when I made the jump from 1.14 to 1.18.
I've tried to use the 'exclude_traits' and exclude itself, but this seems to make the trait not show at all.
Here is the snippet of code of the unit I've been using as the guinea pig:...
Hey fellas, WML noob here. Let's say I want an event where the camera pans to a spooky castle and then a timely animated lightning bolt strikes a hex.
How do I animate the lightning bolt?
And let's say I want an event so that any tile you kill an enemy ghoul on has a scenery/flames01-15 animation...
Hi, I want to create a custom decoration for my mod which I only want to display in between certain teams. Also I want to display the graphic on top of the units, so they are properly visible. This is why I'm using the halo property to achieve the over layer effect, but the problem is when it given...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum