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...
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...
For a while now I've been working on an element -themed multiplayer era for Wesnoth 1.13. It seemed like I knew how to use the LUA script up until now, when I noticed a problem that I can't figure out how to solve. There are four LUA scripts being used:
Is it possible to synchronize the game all and have all players have the same info as one side in particular, at the end of a set menu item event? :hmm:
I made a custom dialog with a listbox. As the list gets bigger, the dialog grows until it hits the edge of the screen. I can't figure out how to make it stop growing at a more reasonable size. (It has a scrollbar.)
Hallo. Does API for addons allows to read some random tags? Hmm, wat i'm trying to say... For example, may i create some custom file with proper tag structure but using totally unknown (new) tag names and then read it from script? Thanks.
What is Lua used for exactly? I was under the impression that WML was the sole scripting language of wesnoth. Is the language an alternative to WML? How do the two relate exactly?
Lua is a very interesting and powerful language; ever since starting with wesnoth UMC development, it has always intrigued me, and I've always wanted to participate in the discussion on the Lua Labs forum... And I don't believe it; I'm here!
So I went into the LuaWML page, learned some basic...
I started writing a campai(g)n longer ago than I care to think on v1.12.
With 24 scenarios completed and playable I decided that I'd upgrade to 1.14.4 as I needed to check everything worked on the latest release.
My PC runs Windows 7 Home Premium Service Pack 1 and has Intel i3 so it's not...
Murky Weathercast is a rework of the popular Dark Forecast survival scenario. The scenario doesn't aim to introduce any fundamentally new elements (for now) into the classic Dark Forecast gameplay. There's a new mapset and the code is being reworked. And I have some problems with...
I'd like to use some translatable strings from vanilla (specifically Enemy, Owned, Allied) that get shown under village description
in lua.theme_items. But I have no idea what those strings would be called, or how I should go on about using them.
I haven't really dabbled with Wesnoth's translation engine so I'm curious if there's any way to probe for a client's local language setting (this would be for theme_items).
I need my code to get executed every millisecond-second. The only lua theme item that seems to refresh that often is the timer (report_countdown), which updates every 10 milliseconds. The problem is however that in both local and lan games this code seems to work even with the timer turned off, but...
Hi all,
Porting my Randomizer to Lua and then realising global variables aren't stored in the savefile forced me to come up with this lua table converter.
I hope you can find it useful, here is the description from Readme.md:
This script converts between regular lua and lua wml tables. It is...
I didn't realise global lua variables don't get stored in saves and I based my new version of my add-on around them. Now I'm forced to use on_load and on_save, but there's one weird thing going on.
On load is also fired on game start, so I'm forced to add checks in my variable converting function...
1.14 has removed the differentiation between sides a client controls and networked human sides. That used to be a nice way to determine which sides a client controlled. We now have wesnoth.get_viewing_side(), which works nicely to determine if the currently playing side belongs to any client....
Ok.. I have a complicated question... I might need some undocumented features or even magic to help me here..
In 1.12 droided side has AI controller or similar...
In 1.14 droided side has human controller or similar.. nothing indicates that the side is controlled by ai at all... I couldn't find...
Hi, could anyone enlighten how wesnoth.get_viewing_side() could be used? (wesnoth 1.12)
it always says that im trying to call nil value or something similar.. I tried ipairs, array, and many many more... nothing seem to work, just error all the time. Tiny example of how to extract side from it??...
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