Search found 128 matches

by Luther
September 18th, 2023, 9:31 pm
Forum: Tournaments
Topic: [Complete] Ladder Tournament #4
Replies: 96
Views: 137214

Re: [Open] Ladder Tournament #4

I'd like to join please.
by Luther
July 30th, 2021, 7:41 pm
Forum: Lua Labs
Topic: Can we now assume all clients in MP have the same units loaded?
Replies: 7
Views: 4819

Re: Can we now assume all clients in MP have the same units loaded?

It seems to me that if different clients have different unit type lists, they could have any amount of other conflicting data, such as unit type stats. I don't see any way to ever protect against that, except by asking everyone to update their add-ons.
by Luther
July 28th, 2021, 3:20 pm
Forum: Lua Labs
Topic: Can we now assume all clients in MP have the same units loaded?
Replies: 7
Views: 4819

Re: Can we now assume all clients in MP have the same units loaded?

That looks like it's a good find, but I'm down a huge rabbit hole trying to investigate it. For one thing, we're using two different Wesnoth versions, so nothing you find is guaranteed to work in 1.15. Currently, `wesnoth.game_config.mp_settings.mp_eras` is nil, so the method in that add-on isn't po...
by Luther
July 28th, 2021, 3:04 am
Forum: Lua Labs
Topic: Can we now assume all clients in MP have the same units loaded?
Replies: 7
Views: 4819

Can we now assume all clients in MP have the same units loaded?

I have an add-on called Random Units that randomly chooses recruits from all available unit types. In 1.14, the only way to do this without OOS is to include the unit WML in a custom [randomUnits_loadUnitTypes] tag and get the unit type ids from the resulting cfg. I was able to include units from bo...
by Luther
July 26th, 2021, 4:24 pm
Forum: Lua Labs
Topic: Mod to Random Units
Replies: 7
Views: 4440

Re: Mod to Random Units

I seemed to have only gotten Loyalists and boats. Does it use units from faction addons, or only default? I assume you're on Wesnoth 1.14, because Random Campaign isn't on the 1.15 server yet. That version only includes units from core and Era of Myths. The one for 1.15 only uses core, because EoM ...
by Luther
July 26th, 2021, 3:30 pm
Forum: Lua Labs
Topic: Mod to Random Units
Replies: 7
Views: 4440

Re: Mod to Random Units

It is not explicitly unsafe, but controller has behaved differently in different wesnoth versions. You would need to test if it fits your use case with the version you develop for. Reasoning for that note is that at some point it was decided to not publish if side is controlled by player, or player...
by Luther
July 26th, 2021, 8:48 am
Forum: Lua Labs
Topic: Mod to Random Units
Replies: 7
Views: 4440

Re: Mod to Random Units

Also, I'm not sure how the community feels about uploading mods to addons, which is why I simply posted the code here, in case anyone else wants to try it. This add-on is under the GPL , so you have the right to upload a tweaked version of this code under a different name. I've already ported this ...
by Luther
June 30th, 2021, 5:07 pm
Forum: Lua Labs
Topic: Utter lua consufion
Replies: 3
Views: 4062

Re: Utter lua consufion

This line looks like a syntax error: local set_floor = tonumber(cfg.floor) or set_floor = tonumber(set_amount) You can't do an assignment in the middle of an expression. Change it to this: local set_floor = tonumber(cfg.floor) or tonumber(set_amount) See if that works. Lua errors should show up both...
by Luther
May 24th, 2021, 3:58 pm
Forum: Lua Labs
Topic: Lua newbie custom tag query
Replies: 12
Views: 5847

Re: Lua newbie custom tag query

Lua syntax Can someone please clarify the difference (if any) between assigning var ::== something vs. var = something as the manual seems to swap between them without explanantion (to be fair I have not read the entire manual as it's huge). ::= is not Lua syntax. It's a notation for defining techn...
by Luther
May 19th, 2021, 4:36 pm
Forum: Lua Labs
Topic: Lua error after adding factions to wc2
Replies: 12
Views: 4949

Re: Lua error after adding factions to wc2

Lord-Knightmare seems to know better than me what he's talking about, but there's an explanation of how to define _ at: https://wiki.wesnoth.org/GettextForWesn ... ngs_in_Lua
by Luther
May 19th, 2021, 3:35 pm
Forum: Lua Labs
Topic: Lua error after adding factions to wc2
Replies: 12
Views: 4949

Re: Lua error after adding factions to wc2

Could you show us the statement at line 233? I see two possibilities: (1) Someone is using _ as a dummy variable, in which case you can replace it with nil, or (2) _ is the translation function that hasn't been defined for some reason.
by Luther
April 28th, 2021, 11:36 pm
Forum: Technical Support
Topic: How should we play Legend of Wesmere with 3 players?
Replies: 2
Views: 933

Re: How should we play Legend of Wesmere with 3 players?

Thanks for the advice. I'll check out WC2.
by Luther
April 28th, 2021, 10:07 pm
Forum: Technical Support
Topic: How should we play Legend of Wesmere with 3 players?
Replies: 2
Views: 933

How should we play Legend of Wesmere with 3 players?

I've never played Legend of Wesmere, and I've never played an MP campaign before. Today, I was playing Wesnoth online with two of my friends, and I suggested we play an MP campaign. Legend of Wesmere says it's for 2-4 players, so I started it up. The setup screen only showed 2 player sides, and I co...
by Luther
December 23rd, 2019, 11:36 pm
Forum: Translations & Internationalization
Topic: Esperanto translation / Esperanta traduko
Replies: 36
Views: 36041

Re: Esperanto translation / Esperanta traduko

Saluton, ĉiuj! Mi nune laboras traduki po/wesnoth/eo.po-on. La retpoŝto de Manuel ne funkcias.
by Luther
April 1st, 2014, 4:34 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.11.12 (1.12 beta 3)
Replies: 21
Views: 16460

Re: Wesnoth 1.11.12 (1.12 beta 3)

Alert to git users: I've just discovered that the name of the wesnoth repository has changed. As far as I can tell, the 1.11.12 tag does not appear in 'wesnoth-old', while, according to Github, it does appear in 'wesnoth'. I'll go clone the new repo now, even though there's probably better ways to f...