Search found 1119 matches

by gfgtdf
January 15th, 2019, 10:54 pm
Forum: Multiplayer Development
Topic: World Conquest II
Replies: 307
Views: 65678

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: 133

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: 133

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: 317

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: 317

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(...
by gfgtdf
January 7th, 2019, 4:30 am
Forum: WML Workshop
Topic: Overriding unit advancements
Replies: 16
Views: 317

Re: Overriding unit advancements

If you use lua you can modify the units stats directly by settign arributes instead of [midify_unit]. modify_unit also has the disadvantage that the effect will be lost when the unit is rebuild, for example when remove_object is called, this again can be fiuxed with a custom lua effect, then you als...
by gfgtdf
January 6th, 2019, 5:23 pm
Forum: Multiplayer Development
Topic: World Conquest II
Replies: 307
Views: 65678

Re: World Conquest II

Uploaded version 0.7.10.3 which just contains two fixes:
  • Fix wrong colors of villages when you changed your team color
  • Fix possible lua erro in mapgeneration of scenario6.
by gfgtdf
January 5th, 2019, 3:14 pm
Forum: Users’ Forum
Topic: map editor help or tutorial
Replies: 7
Views: 198

Re: map editor help or tutorial

If someone knows how the editor works and feels really motivated he could also try to fix the editor topics on the wesnoths ingame help (which are currently disabled because they are very incomplete) and make a a pull request on github https://github.com/wesnoth/wesnoth/blob/master/data/core/editor/...
by gfgtdf
January 4th, 2019, 12:54 am
Forum: WML Workshop
Topic: How to end sound file playing (voice tag)
Replies: 2
Views: 70

Re: How to end sound file playing (voice tag)

But if I press the "skip" button while the sound file is playing, it continues to play even while the scenario is running. This is a bad behavior because then the voice over is playing while you are moving your units. sounds like a bug to be consider filing a bugerport at https://github.com/wesnoth...
by gfgtdf
January 3rd, 2019, 6:59 pm
Forum: WML Workshop
Topic: Unitmarkers [SP/MP modification for 1.14]
Replies: 43
Views: 15457

Re: Unitmarkers [SP/MP modification for 1.14]

I just updated the unitmarker part of the addon world conquest II to 1.15 which does basicially the same thing as this addon, maybe it'll help you: https://github.com/gfgtdf/World_Conquest_II/blob/c4bac0add8dc60b9f76e1f3aad80a15ae002791d/lua/unitmarker.lua . (it currently only supports 2 images, but...
by gfgtdf
December 2nd, 2018, 12:44 am
Forum: WML Workshop
Topic: Is string concatenation broken?
Replies: 2
Views: 514

Re: Is string concatenation broken?

thius is the expected behaviour, what you have to understand is that string concatination happens at preproceccing/parsing time (when macors are expanded) while variable subsitution happens at runtime, so procroceccing/parsing will concationate your #3 to {DEBUG_MSG ("$varbar")} and then at runtime ...
by gfgtdf
December 1st, 2018, 1:33 pm
Forum: Multiplayer Development
Topic: The Altaz Mariners (multiplayer pirate campaign)
Replies: 287
Views: 58530

Re: The Altaz Mariners (multiplayer pirate campaign)

I've not encountered either freeze, but then I've not played it through properly for a while. Would 5) be helped by reducing the size or number of macros called every scenario? I assume you mean (3) here ((5) is a wesnoth engine bug). So i took the time to look at loog at what takes how much space ...
by gfgtdf
November 29th, 2018, 12:18 am
Forum: Multiplayer Development
Topic: The Altaz Mariners (multiplayer pirate campaign)
Replies: 287
Views: 58530

Re: The Altaz Mariners (multiplayer pirate campaign)

gfgtdf - Thanks for reporting all those bugs. I'm not sure about the freeze you mentioned, but the rest should be fixed. Thx for the fixes, About the freezes it depends on which one you mean as I reported two freezes (3) and (5) in my list above. (5) looks like an engine bug that you cannot fix. (3...
by gfgtdf
November 23rd, 2018, 9:52 pm
Forum: Lua Labs
Topic: Set maximum dialog box size [SOLVED]
Replies: 4
Views: 611

Re: Set maximum dialog box size

somethng like maximum_height = 600, in your dialogs wml should work i think
by gfgtdf
November 23rd, 2018, 9:20 pm
Forum: Lua Labs
Topic: Set maximum dialog box size [SOLVED]
Replies: 4
Views: 611

Re: Set maximum dialog box size

I don't know either it it possible to set the maximum height of a listbox, what your can do however is to set the maximum hight of the whole dialog.