Search found 726 matches
- April 10th, 2024, 9:10 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 2140
Re: Working lua need advice deciding which method is best
If you used global variables then stringx.vformat(_("There is a $color $species."), _G) something of this idea will work. _G is table of global variables. The stringx.vformat documentation also suggests using WML variables - then this should work: stringx.vformat(_("There is a $color...
- April 10th, 2024, 8:52 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 2140
Re: Working lua need advice deciding which method is best
* - What is the correct term for doing a {...} btw? A table constructor . Oh, no pressure or anything but if you do get chance (and aren't utterly bored with my stupidity) I'd still like to know what it was with _ I got wrong. _ is a function which should always take as its argument a single litera...
- April 10th, 2024, 2:59 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 2140
Re: Working lua need advice deciding which method is best
First, why does using both stringx.vformat and concatenation not make sense? Can stringx.vformat also concatenate and I missed it? Well, yes? Isn't that basically what your second example was doing - concatenating strings using stringx.vformat , without using the concatenation operator ( .. )? I'm ...
- April 10th, 2024, 12:55 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 2140
Re: Working lua need advice deciding which method is best
I prefer the first (concatenation) method however I've read on stackoverflow that this is inefficient. I would not worry about this unless you are (a) inside a loop, and (b) performing concatenation on the same string over and over again inside that loop. Performing a single string concatenation, o...
- April 9th, 2024, 11:21 pm
- Forum: Users’ Forum
- Topic: So, let's make a scenario
- Replies: 11
- Views: 3010
Re: So, let's make a scenario
I'm confused what the confusion is about at this point. I think the problem is that the scenario editor is just confusing. It basically assumes that you already know how to write WML code by hand, but if you know how to write WML code by hand, it's not clear that the scenario editor is actually use...
- April 9th, 2024, 3:40 am
- Forum: Scenario & Campaign Development
- Topic: Ascension
- Replies: 101
- Views: 23367
Re: Ascension
That doesn't look right - the underscore character
See the example .pbl file.
_
for marking a string as translatable cannot be used in a .pbl file.See the example .pbl file.
- April 7th, 2024, 3:43 am
- Forum: Users’ Forum
- Topic: Dumb Newbie Questions
- Replies: 6
- Views: 2293
Re: Dumb Newbie Questions
https://sourceforge.net/projects/wesnoth/files/ has every version released in the last 20 years.
- April 7th, 2024, 1:03 am
- Forum: Users’ Forum
- Topic: Dumb Newbie Questions
- Replies: 6
- Views: 2293
Re: Dumb Newbie Questions
It could be that they haven't yet been ported to 1.18. UMC have separate developers and although it might help to remind them, it also might not. Generally the more popular UMCs get ported eventually. Also, version 1.18 is very new (it was just released a couple of weeks ago), and not very many add...
- April 2nd, 2024, 7:56 pm
- Forum: Scenario & Campaign Development
- Topic: WML Guide: feedback requested
- Replies: 42
- Views: 10371
Re: WML Guide: feedback requested
Is this going to be appearing on the 1.18 add-ons server soon?
I think the only change needed is to rename
I think the only change needed is to rename
scorpion.png
to scorpion.webp
.- March 31st, 2024, 12:44 pm
- Forum: Users’ Forum
- Topic: Addon Feedack
- Replies: 13
- Views: 2056
Re: Addon Feedack
error deprecation: helper.lua is information that in 1.18 it works, but in 1.19 it wont work anymore. Presumably the other error is what is causing the addon to be broken. I think it would serve everyone well that it was removed from the addon server. Well, the addon does appear to be in violation ...
- March 30th, 2024, 4:30 pm
- Forum: Ideas
- Topic: Expanding Orcish History
- Replies: 13
- Views: 10697
Re: Expanding Orcish History
For me a central question: If the Lich Lords are the ones who really wanted the Ruby of Fire, if the Orcs had a falling out with them before Legend of Wesmere (which seems to be the case), why did they even bother trying to get it? The Ruby's magical powers are never fully explained in any campaign...
- March 29th, 2024, 5:19 pm
- Forum: Release Announcements, Compiling & Installation
- Topic: Wesnoth 1.18.0 — Draconic Invasions Update
- Replies: 52
- Views: 14360
Re: Wesnoth 1.18.0 — Draconic Invasions Update
It doesn't look like
https://github.com/wesnoth/wesnoth/commits/master/data/core/images/units/woses/wose.png
woptipng.py
was ever run on wose.png
(at least, not since the last time it was edited).https://github.com/wesnoth/wesnoth/commits/master/data/core/images/units/woses/wose.png
- March 29th, 2024, 11:28 am
- Forum: Faction & Era Development
- Topic: Imperial Era
- Replies: 191
- Views: 68871
Re: Imperial Era
I'm not sure if this is actually case-sensitive, but the code is sometimes using "IE_Lavinian", sometimes using "IE_lavinian".
- March 27th, 2024, 9:44 pm
- Forum: Release Announcements, Compiling & Installation
- Topic: 1.19 nightly flatpak vs 1.18
- Replies: 8
- Views: 2462
Re: 1.19 nightly flatpak vs 1.18
Well, by that time 1.19/master may contain other changes, too, possibly changing in ways which are incompatible with 1.18. Early in a release cycle is usually when developers start breaking things with reckless abandon working very hard and making a lot of enormous improvements to the code, so the m...
- March 26th, 2024, 11:05 pm
- Forum: Multiplayer Development
- Topic: The High Seas (Naval MP Scenario)
- Replies: 280
- Views: 73480
Re: The High Seas (Naval MP Scenario)
Sorry, can I ask how I play the add-on? I downloaded the zip, extracted it, and put in in the add-ons folder under data in my 1.16 wesnoth. Where can I find it? On the multiplayer "Create Game" screen, if you select "Scenarios", there should be a scenario in the list called &quo...