Gui Debug Tools 0.9.9 for BfW 1.14

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

Moderators: Forum Moderators, Developers

User avatar
octalot
Code Contributor
Posts: 201
Joined: July 17th, 2010, 7:40 pm

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by octalot » May 20th, 2018, 3:11 pm

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: 1188
Joined: August 3rd, 2012, 11:26 pm
Contact:

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Celtic_Minstrel » May 20th, 2018, 3:28 pm

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: 399
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 » May 21st, 2018, 3:23 am

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

Shiki
Developer
Posts: 205
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 » 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.
Maintainer of Era of Myths.

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

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Celtic_Minstrel » July 4th, 2018, 2:22 am

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: 205
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 » July 4th, 2018, 2:52 am

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.
Maintainer of Era of Myths.

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

Re: Gui Debug Tools 0.9.8 for BfW 1.13/1.14

Post by Celtic_Minstrel » July 4th, 2018, 2:58 am

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: 205
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 » July 4th, 2018, 4:05 pm

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.
Maintainer of Era of Myths.

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

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by SigurdFireDragon » July 12th, 2018, 8:34 pm

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: 399
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by SigurdFireDragon » July 21st, 2018, 1:53 am

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: 205
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by Shiki » July 25th, 2018, 7:41 pm

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.
Maintainer of Era of Myths.

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

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by Adamant14 » July 25th, 2018, 8:32 pm

A great and very helpful tool, and so easy to use. Thank you. Good job.
Author of Antar, Son of Rheor: SP Campaign


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables

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

Re: Gui Debug Tools 0.9.8 for BfW 1.14

Post by SigurdFireDragon » July 26th, 2018, 12:03 am

@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: 399
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by SigurdFireDragon » August 14th, 2018, 5:50 pm

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: 1188
Joined: August 3rd, 2012, 11:26 pm
Contact:

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by Celtic_Minstrel » August 15th, 2018, 12:13 am

...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