Search found 3449 matches

by Pentarctagon
November 3rd, 2018, 8:49 am
Forum: Lua Labs
Topic: Custom WML access
Replies: 3
Views: 14146

Re: Custom WML access

by Pentarctagon
October 31st, 2018, 1:09 pm
Forum: Lua Labs
Topic: Lua & WML, when to use what?
Replies: 24
Views: 6985

Re: Lua & WML, when to use what?

our second screenshot is an example of exactly what I was talking about. That's a pretty terrible stacktrace, and essentially useless for determining anything other than "something broke". If that game_error message wasn't there, that second screenshot would have no useful information at all. Yes b...
by Pentarctagon
October 31st, 2018, 12:42 pm
Forum: Lua Labs
Topic: Lua & WML, when to use what?
Replies: 24
Views: 6985

Re: Lua & WML, when to use what?

As far as performance goes, the large majority of the time I doubt this is a compelling reason to use one or the other. If you do end up needing the extra performance that lua can give, then of course use it, but unless you're doing something particularly complex it's unlikely anyone would notice a...
by Pentarctagon
October 30th, 2018, 11:49 pm
Forum: Lua Labs
Topic: Lua & WML, when to use what?
Replies: 24
Views: 6985

Re: Lua & WML, when to use what?

As far as performance goes, the large majority of the time I doubt this is a compelling reason to use one or the other. If you do end up needing the extra performance that lua can give, then of course use it, but unless you're doing something particularly complex it's unlikely anyone would notice a ...
by Pentarctagon
October 28th, 2018, 3:27 am
Forum: WML Workshop
Topic: Storing turn number in an array, modifying it and using it as condition
Replies: 11
Views: 1263

Re: Storing turn number in an array, modifying it and using it as condition

Not really related to your question, but as an fyi, NEXT already clears the index variable , so you don't need to be doing that yourself. As for your actual question, you don't need to use a separate array - you could do something like this: {VARIABLE bm_bones_loc["$($bm_bones_loc.length-1)"].turn "...
by Pentarctagon
October 27th, 2018, 9:07 pm
Forum: Users’ Forum
Topic: 1.14 MP server login requirement
Replies: 54
Views: 146908

Re: 1.14 MP server login requirement

Tearippa wrote:
October 27th, 2018, 8:37 pm
I figured it out it finally let me in but it was saying I have incorrect letters being used or something of that nature
The exact error text is really what's needed, whether you type it out or take a screenshot of it.
by Pentarctagon
October 27th, 2018, 4:48 pm
Forum: Users’ Forum
Topic: 1.14 MP server login requirement
Replies: 54
Views: 146908

Re: 1.14 MP server login requirement

What error message do you get?
by Pentarctagon
October 27th, 2018, 10:49 am
Forum: WML Workshop
Topic: [SOLVED] select hex
Replies: 20
Views: 1483

Re: select hex

It looks like that's part of a nested event? Otherwise you've got an extra [/event] there.
by Pentarctagon
October 25th, 2018, 6:44 am
Forum: WML Workshop
Topic: Problem with FOREACH and/or [unit] tag in event.
Replies: 3
Views: 819

Re: Problem with FOREACH and/or [unit] tag in event.

For:
Ravana wrote:
October 25th, 2018, 5:20 am
Your event has no id, so it can fire multiple times at once.
in particular, additionally see: https://wiki.wesnoth.org/EventWML#A_Trap_for_the_Unwary
by Pentarctagon
October 24th, 2018, 6:51 am
Forum: Faction & Era Development
Topic: Obscured Folklore Era
Replies: 30
Views: 5699

Re: Obscured Folklore Era

That error essentially means that it tried to place a UI element that requires width=133,height=80 pixels, but there was only width=130,height=80 pixels available. So the way to try to find the source of the error would be to just watch the log as you click through various things on the UI and see w...
by Pentarctagon
October 22nd, 2018, 7:36 pm
Forum: WML Workshop
Topic: [SOLVED] store music ?
Replies: 6
Views: 760

Re: store music ?

I am not sure then. When I paste that code as-is into a scenario it works as expected with no error messages. edit- Do you have any other add-ons installed? And do you still get the error without any of the music checking code: [event] name=start,side turn,new turn first_time_only=no [set_menu_item]...
by Pentarctagon
October 22nd, 2018, 6:22 pm
Forum: WML Workshop
Topic: [SOLVED] store music ?
Replies: 6
Views: 760

Re: store music ?

The simplest way would probably be:

Code: Select all

[lua]
  code=<<
    wml.variables["my_wml_variable"] = wesnoth.music_list.current.__cfg.name
  >>
[/lua]
then just put that wherever you want to get the name of the current song, and you'll be able to access it from the WML variable my_wml_variable.
by Pentarctagon
October 22nd, 2018, 6:15 pm
Forum: WML Workshop
Topic: [SOLVED] store music ?
Replies: 6
Views: 760

Re: store music ?

See: https://wiki.wesnoth.org/LuaWML/Display ... music_list

Specifically for your case, you'd want wesnoth.music_list.current.__cfg.name.
by Pentarctagon
October 22nd, 2018, 4:52 pm
Forum: WML Workshop
Topic: Move leader back to keep every turn -- Code not working
Replies: 14
Views: 1120

Re: Move leader back to keep every turn -- Code not working

enclave wrote:
October 22nd, 2018, 4:43 pm
Ravana wrote:
October 22nd, 2018, 3:25 pm
This looks wrong {VARIABLE billworth billstore.cost}
maybe i missed something, for me it looks right...
You're missing a dollar sign.