Search found 1129 matches

by gfgtdf
41 minutes ago
Forum: Ideas
Topic: [engine] Add filters for attack_ and defense_weight
Replies: 6
Views: 364

Re: [engine] Add filters for attack_ and defense_weight

I think it'd be better to allow formula/Lua expressions in attack_weight. this is not only more flexible, it also avoids problems like "what should we do when multiple of those match"
by gfgtdf
February 15th, 2019, 10:56 pm
Forum: Coder’s Corner
Topic: New feature to allow for easier voice acting
Replies: 20
Views: 594

Re: New feature to allow for easier voice acting

i wonder what your plan is for messages that are constructed at runtime? Like message= _ "Don't hurt $ogre_name|!" or message= _ "Three days ride to the northeast, in a deserted castle. The passwords to the guards are $first_password_$first_password and $second_password_$second_password|." ?
by gfgtdf
February 12th, 2019, 3:27 am
Forum: Technical Support
Topic: Cant log in wesnoth official server
Replies: 18
Views: 631

Re: Cant log in wesnoth official server

the added newline at the end of the name is iirc a known issue of the android port.
by gfgtdf
February 2nd, 2019, 10:57 pm
Forum: WML Workshop
Topic: SLF: include_borders=yes doesn't work with [time_area]?
Replies: 3
Views: 471

Re: SLF: include_borders=yes doesn't work with [time_area]?

there is also replace_schedule ( https://wiki.wesnoth.org/DirectActionsW ... chedule.5D ) to change the wholöe maps timescedule.
by gfgtdf
January 20th, 2019, 8:16 pm
Forum: WML Workshop
Topic: Unit XP-bar color-setting with custom AMLA's
Replies: 9
Views: 420

Re: Unit XP-bar color-setting with custom AMLA's

Setting them all to major_amla=no solves the issue and the bar is purple. I'll add this to the wiki then. your wiki entry is not 100% currect though, it defaults to 'no'. If it ppears to true in the code you pasted above, then it's likeley that you acceindly wrote major_amla=yes somehere before, fo...
by gfgtdf
January 17th, 2019, 10:44 pm
Forum: WML Workshop
Topic: Rotate Area WML not working on 1.14.x
Replies: 13
Views: 502

Re: Rotate Area WML not working on 1.14.x

yes
by gfgtdf
January 17th, 2019, 10:13 pm
Forum: WML Workshop
Topic: Rotate Area WML not working on 1.14.x
Replies: 13
Views: 502

Re: Rotate Area WML not working on 1.14.x

ok what i said lat time viewtopic.php?f=8&t=43290&start=15#p591503 still holds.

Furthermore it seems like tagnames do no longer allow underscrores as first caracter (__RA_stored_units in your lua code)
by gfgtdf
January 17th, 2019, 9:53 pm
Forum: WML Workshop
Topic: Rotate Area WML not working on 1.14.x
Replies: 13
Views: 502

Re: Rotate Area WML not working on 1.14.x

which wesnoth version are you using for testing ?
by gfgtdf
January 17th, 2019, 6:49 pm
Forum: WML Workshop
Topic: Rotate Area WML not working on 1.14.x
Replies: 13
Views: 502

Re: Rotate Area WML not working on 1.14.x

But it is, the second sentence in https://wiki.wesnoth.org/LuaWML says that. if the scenariowml page does not mention it then, it's just missing there.
by gfgtdf
January 17th, 2019, 12:02 pm
Forum: WML Workshop
Topic: Rotate Area WML not working on 1.14.x
Replies: 13
Views: 502

Re: Rotate Area WML not working on 1.14.x

[scenario][lua] is documented at the luawml wiki page and it is actually reccomened _not_ to use preload events to load Lua because some things like defining custom effects, only work properly from [Lua] in scenario and not when loading Lua in preload. For the actual issue, I think you asked this al...
by gfgtdf
January 15th, 2019, 10:54 pm
Forum: Multiplayer Development
Topic: World Conquest II
Replies: 307
Views: 67195

Re: World Conquest II

WC2 Version 0.7 is basically where most of the Lua transition happens iirc. It gave the 'new' invest and wocopefia dialogs and a performance improvement overall. When wesnoth 1.15/1.16 comes out I'll probably move the rest of the code (the map generation) to Lua which will remove the waiting time at...
by gfgtdf
January 14th, 2019, 4:33 pm
Forum: Lua Labs
Topic: Synchronization with LUA?
Replies: 8
Views: 448

Re: Synchronization with LUA?

for syncing a specifc variable there is also the [sync_variable] tag. But without knowing where your oos comes from, it will be very hard fixing it. Those tags do not magicially fix any oos error. You have to look the OOS message (like for example 'unfound source of movement' which means that the un...
by gfgtdf
January 14th, 2019, 5:02 am
Forum: Lua Labs
Topic: Synchronization with LUA?
Replies: 8
Views: 448

Re: Synchronization with LUA?

Not sure what exactly do pi are trying to do, usually wml code menu items (unless they have synced=no) are automatically synced. Other that that it really depends on what you want trying to do, yes Lua has fundings functions for syncing thing (in particular wesnoth.sync_choice and custom actions) bu...
by gfgtdf
January 8th, 2019, 8:07 pm
Forum: WML Workshop
Topic: Overriding unit advancements
Replies: 16
Views: 715

Re: Overriding unit advancements

It's possible to do the samewith luas 'if'. but it requires some knowledge about the lua programming language. (variabe scope, how to add element to tables etc)
by gfgtdf
January 7th, 2019, 3:54 pm
Forum: WML Workshop
Topic: Overriding unit advancements
Replies: 16
Views: 715

Re: Overriding unit advancements

You coudl just also add the osd_fix_advancements object in a prestart event to cover these aswell. like adding on_event("prestart", function() for i, u in ipairs(wesnoth.get_units({})) do if not u.variables.has_osd_fix_advancements then u.variables.has_osd_fix_advancements = true u:add_modification(...