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...
Anyways, I've been looking at a couple online tutorials for Lua and the documentation in LuaWML, and I think I have a general grasp for the syntax and stuff. I've looked at a number or examples (especially the ones in core), and I've been able to...
hi, I'm new to Lua development in Wesnoth. Just trying to write some simple lua code for a task, and I wonder how to log and debug lua. e.g. if i want to print the value of a variable on screen or in a log file or whatever console if there is one, how to do so? i heard that Wesnoth client could be...
For the last couple months I've been slowly working on reducing the download size of inferno8's campaign To Lands Unknown.
My current project is to reduce the number of files needed for many of the animations seen in game by allowing movement without restricting it to hexes.
Since it's now at a...
The point: Should wml action tags (implemented in lua or C++) which take a standard filter have an additional tag introducing that filter ? Such as although it is not really neccessary there.
pros:
-Better overview, separation, especially if additional -specific keys get added later.
-Keys...
I'm looking for a way to feed raw WML files into Lua so I can extract data from them, but no matter what I do, I can't get to actually store any data. The following code is in a testing state to show exactly what doesn't work.
for my campaign I decided it would be useful if I could read the faction files in {multiplayer/factions} and put the contents of a tag into a lua table, and then send the contents of some of the keys into wesnoth variables.
Exasperation, on request, coded this a-ways back for me to fix my problem with wesnoth crashing for my WML version of the code.
But I noted that the effect from his terrain-defense variable had no effect (I tested it by having a unit attack a target in grassland and forest, 20 and 30 respectively,...
Well, I said I was gonna put myself to Lua, which I have done. For the past few days/weeks, I have read a few tutorials, browsed our wiki, etc. So now at least I understand the basic syntax of the language, I've looked at a few example, and I'm able to understand most of them.
I have a file, called 'globals.lua', that I've been using to contain all the boilerplate that I believe should go at the top of every Wesnoth Lua file. From reading this forum, it seems there are a lot of new Lua coders who are starting themselves off by making content for Wesnoth 1.9. I think my...
Hey everyone, I was attempting to disable autosaving in an RPG scenario, and instead go for a manual save so that there would be no cheating involved. I cannot disable the save mechanism, so I tried to utilize the :nosaves command.
This is from menu_events.cpp for some context:
I felt I might as well, since LUA is what WML is built upon. Unfortunately, I've managed to break LUA after changing three values.
Derived from and stuck in a scenario ( event). All I've changed is gold to steal_gold to avoid identical functions. Looks like function wml_actions is only valid in...
The wesnoth core macro MODIFY_UNIT does not allow changing more than one key per unit per call. This results in the need to repeatedly store and unstore the unit (performance ?!) to change more than one key, or to not use the macro at all.
First I wrote a wml version of this functionality using :...
Downloaded the game last week and observed a lot of games. RPG maps are what makes this game very interesting to play for me and so found out about Bob's RPG addons what makes the game even cooler now.
Used to making scripts for Warcraft 3 in the long past and the...
EDIT
At least in this case the backtrace was helpful, the problem was that the SLF looking for a suitable nearest hex was quite restrictive, thus nNearestHex was nil...
Since 1.9 it happens very few times that I get a backtrace that doesn't make any sense, here is one.
The attempt to index field...
Ok, now it did happen to me that I accidentally passed by reference and thereby modified a passed wml table at the position where helper.parsed was called, although I wanted to modify only the table I got from helper.parsed. In case that userdata is passed to those functions, all of the __literal,...
Trying to improve the experience of playing Nightmares of Meloen , I have started to write some formule AI routines so that the AI takes into account some of the specials and abilities of the faction.
As I am not knowledgeable in AI development nor do I know anything of wesnoth's formula AI, my...
First one:
2) Open and save _main.cfg of my add-on. Close txt editor.
3) Run the game, click Multiplayer-Local Game.
After this actions game just closes without any usual windows errors.
(And I want to know what I do with lua code wrong there.)
The following code is taken from the 1.7 addon Wesnoth Lua Pack , published by Melinath. In case you don't know, this was a collection of useful snippets of lua code for people to use.
I want to be able to use these two tags in my campaign, but unfortunately I don't know the first thing about lua,...
I'd like to go through all the mainline macros that can be used in events and rewrite them in Lua as action tags. I think tags are easier to read than macros, and Lua makes it easy to replace them. I'd like some feedback as to how I might approach this project. I could do one of the following...
I have these files (see below) and I expect them to result in:
- on every new turn display a message that says Hello world!
Instead they result in:
- The scenario loads, I see the map and all the sides (the map-file has starting positions for 9 sides so I don't need any in the scenario-file) and...
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