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, 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??...
So I've implemented this function in LUA now. Using that very code from later versions. I had to remove the
helper.wml_error 's filter didn't match any unit
part, because it would give me an error (dunno why).
This works. Except it fails to store defence for a unit if it's a...
I don't know if there is a better board in which to categorize this request or discussion. It seems to my albeit limited knowledge that most AIs nowadays are written in Lua.
Situation: With one of my add–ons in development — Food Fighters, — I am writing s which allow users to swap out the weapons...
I know you can make it so a wesnoth.message looks like it's sent by a player in-game, but would it be possible to change the colour to something else than white, too? Either through lua or wesnoth (I'm not very good at lua, so I don't know)
I need to add some code to this function, but I can't find the original code for it and I don't feel like re-writing it from scratch... Is there something I'm missing? I can make it return time, but that variable is simply miliseconds since the SDL library was initialised... so is there any...
I‘m totally new to this game and therefore do not have any experience coding for it. I would like to get some help with a piece of code I could enter into the console to turn off the hotkey display in the menues if at all possible. :hmm:
I have been rewriting Orocia logic in Lua. When designing format for bonuses for enemy units, I reached solution that I think should be possible to do in more elegant way.
I want to hold bonus definitions in table, where combination of turn number and difficulty setting returns what modifications...
This topic is about new WML tag I work on. tag shows dialogs that use GUI 2, similar to . My implementation introduces two new features. First of all choices are synchronized so tag should work fine in multiplayer games. Additionally script takes care of grid generation, so user only need to...
Hello, I am in a process of porting my campaign to 1.13~1.14 and I have noticed a lua error related to a piece of code which was working well on the stable version of the game.
The error looks like this:
And it sends me to this particular line of my animation.lua file:
There was some time ago a post (I can no longer find it, was it deleted?) about how to create new unit status tooltips and get to show them with this code:
I've only copied the code, I don't quite understand Lua.
My problem is, that when I try to translate the UMC, the tooltip doesn't show...
I want people to be able to access a rigt-click menu item while another player is playing their turn in multiplayer. The WML function doesn't allow it. Is there a way to do this with lua?
Guess I shouldn't expect too much tech support for game mods, ;) but thought I'd ask anyway.
After not playing Battle for Wesnoth for years, I finally installed 1.12.6 and am getting back into it. Also went and installed a few interesting-looking mods. One of these was the Ultra Super Death Gore...
I'm not certain how to document this, report it as a glitch, or whether either of those should be done.
The lua engine seems to parse through any lines between a code= and the . I know this because i had something like
And, of course, i got complaints of the 0x2D being unexpected and all that...
wesnoth.show_popup_dialog ( is an easy way to bring up a message box that resembles the we all see at the start of a scenario. (It also resembles the old-style messages, before they were moved to the bottom of the screen.)
I'm not sure whether this is just a matter of me being rusty or whether...
Im am creating a faction.
Basically, I try to recruit units next hex by in-game menu items.
I have edited and modified from source: Ageless_Era/data/EoMa_data/abilities-summon.cfg
In local game multiplayer, I got lua errors on version 1.13.7 , saying:
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...
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