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 all. There has been some discussion in the development IRC channel as of late of reorganizing the Lua libraries into a more coherent, consistent, and organized API. To that end, I have created a proposal on the wiki for how such a reorganization might look. Also note that to ensure backwards...
I want to delete some attributes from wml tag config object aka vconfig aka userdata aka WML object, but it is protected from editing. I tried to make table copy of it using ipairs(), but this way i only get subtags and i can't get attibutes.
I was wondering if there was a way to easily set the tooltip of a widget, similar to wesnoth.set_dialog_value. In Scenario with Robots add-on, it looks like elements with tooltips can be constructed in a way that sort of mimics this, but it isn't very intuitive and even if I figure out what's...
Hi, i am not familiar with tags but i have encountered a problem that i think using lua would be solvable:
Basically i want to create code that is part of my umc era that checks if any campaigns are being loaded and if a campaign is being loaded does an action, if multiplayer is being loaded does...
How to change color of text in lablel? How to set right align of element insted of center? Can i set element on specific x,y of panel?
One more question. How to make GUI dialog be displayed to only current player?
I realy need some kind of example, may be this made using tree view insted of listbox. There is in practice no documentation for tree view, and im stuck with this code
and Not defined tree nodes error. I want to make dialog like settings, where is list of items on left side, and when you choose...
Hi all, I was messing around with some lua today.. User Interface to be more precise..
It's quite a nightmare to be honest.. so I thought every little drop of information helps.. in this area..
So I will be putting here my little drops of successful codes.. even if they are tiny..
I'm trying to figure out a way to read and modify unit.variables. . . I noticed that lua interface has proxy support for unit.variables. through wesnoth.get_unit api. Too bad that doesn't extend recursively to child containers providing easy access to grouped variables. Alternative methods to...
I've got an external candidate action that controls if the AI will try to use a particular attack. The attack is not always available due to special, however the weapon special does not not prevent the AI from successfully using this attack, so I need to put a check in for whether the special...
Hi,
Found some threads saying to do print('foo') but that doesn't seem to help me.
Logs also moved from stdout / err to Documents\My Games\Wesnoth1.13\logs
Found `log` command but don't know of any domains.
Is there a way to get a list of all units available for placement via , as well as the data contained within the ?
Or to put it another way, what I'm looking for is the programmatic equivalent of (for every unit in the game, as well as potentially any campaign currently being played): placing the...
I thought I'd ask if it's even possible before attempting to figure it out as learning exercise.
What's I was thinking about was a way to control the attack of a stronger unit when pairing strong and weak units to help the weak unit advance. If the strong unit stopped striking when that target...
This seems odd, but overriding the on_event in lua causes a bunch of blank lines to be printed every time a hex is highlighted by the mouse (Wesnoth 1.12.4 and Mac 10.10.4). Any idea on what is causing it?
Just by using that, not even printing anything, I see a lot of blank lines in the console....
I should start out by saying I barely know what I'm doing here, so this may be a stupid question, but is there some disconnect between what Lua can access and what is seen in :inspect?
But using :inspect, I can see there is an entry for the profile image for that unit
I can print a profile...
I have a few lua questions, but since I'm really new to it, these might be a little noobish. Ok here goes.
I have this huge pile of shop code dumped across multiple files that uses hundreds of variables, and I was hoping to find a way to simplify it with lua. SAMPLE:
I'm trying to return a WML table of tags from a lua function, the idea being that it's similar to splitting WML between files and then including them in a main file via:
has worked in the past in wesnoth lua even if the second line is left out, so that a table with something at = but nothing at = is created, according to the code I had written back then.
Wasn't there some strict lua kind of change ? I find a post from 06 Jan 2015 but that's...
Sorry to take your time, I have googled hard before writting here.. (Wesnoth version 1.10.7)
Anyone could tell me the lua codes for adding and removing labels? (partuicularily team labels)
if you have full information please include also lua commands to change label from show to team only into...
Today I merged a feature to master which allows to write random map generators in lua. I hope that this will make it much easier to develop and distribute random map generators, since they won't need to be written in C++ or tied to the release cycle.
To use it, select either map_generation= lua or...
I'm looking for something like a pre-moveto event. I want to fire an event based on a unit's target hex (like moveto), but I want the event to fire as the unit starts moving instead of at the end of its move. Is there a way to do this?
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