Gui Debug Tools 0.9.11 for BfW 1.14

Discussion of Lua and LuaWML support, development, and ideas.

Moderators: Forum Moderators, Developers

User avatar
octalot
Developer
Posts: 457
Joined: July 17th, 2010, 7:40 pm

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by octalot »

I've just run in to an annoying feature - the [show_if][debug_status] of the menu items gets written in to the save files, and then causes WML errors if given to someone who doesn't have the add-on installed.
elttab-thonsew wrote:
May 20th, 2018, 1:57 pm
game is running perfect but there is a message appearing on my screen during gameplay after using "eittab-thonsew-LoW-Bounty Hunters Turn 1.gz":

<Invalid WML Found> unknown conditional wml: [debug_status](4)

User avatar
Celtic_Minstrel
Developer
Posts: 1582
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Celtic_Minstrel »

I think what I'd recommend here is just wrapping those in an #ifhave - you could test for this addon's _main.cfg for example. I don't think there's anything SFD can actually do to avoid it...
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

User avatar
SigurdFireDragon
Developer
Posts: 488
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by SigurdFireDragon »

Thanks for the feedback, I'll see if I can do something with it.

Shiki
Developer
Posts: 289
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Shiki »

Would it be possible to add a way to set the undrainable, unplaguable, unpoisonable and invulnerable status?
(not_living should be set automatically by the game if the first three are set.)

And there is a deprecation notice in stderr.

User avatar
Celtic_Minstrel
Developer
Posts: 1582
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Celtic_Minstrel »

Why would not_living be automatically set if the first three are set? I don't see how the combination of those is equivalent not being a living creature?
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

Shiki
Developer
Posts: 289
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Shiki »

not_living was the original status, it was split up into the three. Due to compatibility units have it which have all three. Seems to be done by the engine.

User avatar
Celtic_Minstrel
Developer
Posts: 1582
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Celtic_Minstrel »

Well, I can totally understand not_living setting the other three, but the reverse doesn't seem to make sense...
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

Shiki
Developer
Posts: 289
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Shiki »

In trait definitions one sets all three statuses, but to not break with abilities and alike which have not been rewritten to check for one of the three instead, non_living is set as well for compatibility.
The Feeding ability for example checks for unplaguable now.

Basically not_living is or should be deprecated and exists only to keep compatibility to code which has not been rewritten yet. It's more an alias than a proper status.

User avatar
SigurdFireDragon
Developer
Posts: 488
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by SigurdFireDragon »

Shiki wrote:
July 4th, 2018, 1:58 am
Would it be possible to add a way to set the undrainable, unplaguable, unpoisonable and invulnerable status?
(not_living should be set automatically by the game if the first three are set.)

And there is a deprecation notice in stderr.
Thanks for pointing these out, I'll get around to them at some point.

User avatar
SigurdFireDragon
Developer
Posts: 488
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by SigurdFireDragon »

Shiki wrote:
July 4th, 2018, 1:58 am
And there is a deprecation notice in stderr.
Any idea what's triggering it? I can't seem to reproduce it with v0.9.8 on bfw 1.14.3+dev

Shiki
Developer
Posts: 289
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by Shiki »

Each switch to another scenario does print it. By stderr I really mean stderr, not ingame. I can show the message if I get a hand on a wesnoth installation in the next days.

User avatar
Adamant14
Posts: 904
Joined: April 24th, 2010, 1:14 pm

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by Adamant14 »

A great and very helpful tool, and so easy to use. Thank you. Good job.
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR

User avatar
SigurdFireDragon
Developer
Posts: 488
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by SigurdFireDragon »

@Skiki Is this it?
20180725 19:57:39 warning deprecation: helper.set_wml_tag_metatable has been deprecated and may be removed at any time.
(Note: You should use wml.tag instead in new code)

If so, thanks, I've fixed it for the next version

@Adamant14 You're welcome

User avatar
SigurdFireDragon
Developer
Posts: 488
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by SigurdFireDragon »

Version 0.9.9 is up for BfW 1.14 branch and master

Changes
Unit Debug: Copy Unit - Have copies get new names
Unit Debug: Status - Add not_living, undrainable, unplagueable, & unpoisonable
Unit Debug: Variables - Update tooltip to reflect the ability to access sub-containers
Unit Debug: Add Level slider
Unit Debug: Add Amla slider
Unit Debug: Reordered when hitpoints, attacks_left, moves, and experience is handled to better fit with Level slider
Dealt with some deprecation messages showing up in the log

User avatar
Celtic_Minstrel
Developer
Posts: 1582
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by Celtic_Minstrel »

...what's an AMLA slider? And level slider? Huh? That's not normally something you want to adjust, is it?
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

Post Reply