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...
Does anyone have any experience in Lua versus WML ? I assume that WML has more generic
and far reaching support than Lua but I would be interested how far one can go via lua. For me it
may be easier to go via lua for my campaign, but my impression is that WML is more widely in
use - but I may be...
When working on animation-filled cutscene-style scenario with Hejnewar, we decided to use DiD code that skips animations etc when dialogs are skipped. However, the code not only didn't work well with current development version, but also didn't cover our needs, as we used tag a lot and sometimes...
I have an add-on called Random Units that randomly chooses recruits from all available unit types. In 1.14, the only way to do this without OOS is to include the unit WML in a custom tag and get the unit type ids from the resulting cfg. I was able to include units from both core and Era of Myths...
I'm using Random Units in the Ageless Era with the Random Campaign, lots of fun. But I wanted the Random Units to only be for the human side. In Radom_Units.lua at line 188 I added
if wesnoth.sides .controller == human then
So;
onEvent(
'recruit',
My orignal lua query was sorted in double quick time, thanks again to all who took the trouble to help. I made the fatal error fo fiddling with it and I can't work out how I broke it :annoyed:
This is the original version which works, followed by the WML...
I'd like to give a unittype a laststrike attack special (the reverse of firststrike).
Presently I'm looking at adapting the code for initiative from HttT.
However, if anyone happens to be able to post the (lua?) code for firststrike, I may be able to create this ability just by reversing...
I'm trying to learn some basic lua by creating a custom tag but am finding clear information regarding very basic language elements difficult to find (but then my google-fu is terrible ) and after perusing the web I now have more questions than ever, hence this post.
Hi all, my goal/project 's to add more factions to wc2
It worked but the option Tell me how recruit works gives an error When browsing units of the new faction
I noticed in the error, that lua uses the old/default path for addon, i tried changing that in main.lua and beside every LUAREQUIRE...
Hello, in my quest to patch up 1.15 World Conquest, I have stumbled upon these two deprecation warnings (the last 2 left).
I have checked the wiki but I have found no documentation related to these things and the warning messages don't really seem helpful.
On the topic of map:get_tiles_radius -->...
Getting the following lua error, I believe when enemy units are supposed to drop an item (although I have seen item drops work, at least with 2 players):
Seems simple enough, it identifies the file and the problem (assuming I'm reading it correctly); z_index is being used without being defined....
The call to wesnoth.find_path is causing segmentation fault.
Any help would be appreciated.
Thanks
Edit:
Passing a unit as the first parameter won't crash find_path.
I need to use find_path without having a unit defined. How can I do that?
How can I call the map generation version of...
So after uploading my add-on 'Ageless World Conquest' in 1.14 by Duuuude there is an issue that the standard (Default factions) World Conquest 2 is getting Ageless enemy leaders/commanders recruited. Although it is a different add-on, WC2 is reaching into AEWC2 and choosing ageless leaders for...
Hi everyone,
I'm currently developing a campaign that an item management system written in lua from another add-on (LotI).
I am trying to overload a function to modify which unit can use what.
I have already succeeded for function that does not take an input parameter, but I cannot find how to do...
I have much programmed in Lua long ago, but my very bad memory cannot remmember anything of the details. Below a few issues I find myself unable to deal with alone:
* I have searched long, also much on the lua users wiki, but there definitely seems to be nothing about directories,...
I am making a new tag-block and would like to allow users to indicate the units by WML var names.
How is it at all possible since a SUF does not have a variable= key? (or I did not find it)
I know about the sub-tag but it first converts potential units into a WML var (and complicates, and also...
I just had a Lua error, think (and hope) it may be a stupid bug by me, but who know?
attempt to call a nil value (field 'move_full') in ai_helper.lua at line 218 (if/else block below). This is in function 'checked_move_core':
'checked_move_core' is itself called by 'checked_move_full'...
The way the path finder presently works is pretty weird in my view. I take it for granted that the one we access via wesnoth.findpath is the same as the one in the player interface; in any case, they show identical defaults (for my uses). If it is not the case, the reflexion remains valid --if it...
Maybe it's just an issue of funny naming:Wwhy is cfg called that way? Why not input or params ? Can I safely assume that it is always, and only, params/input stored in a table? (or userdata)
What is __cfg?
What is, clearly and factually, __literal? And...
I'm an engineering student and I have a project of creating an AI for Wesnoth using Reinforcement Learning. Since python is generally the best when it comes to ML, we wan't to create the brain of our AI using python and use the LuaAPI to communicate with the game.
Initially, I wanted to use...
Hi I'm showing an ability on a unit and want this to display under the unit icon for the player who owns that unit only, i.e. I want enemies to be unable to see that ability on the unit's map icon, the ability is added/removed over the course of the game... I've tried filtering of various sorts but...
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