Gui Debug Tools 0.9.11 for BfW 1.14

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

Moderator: Forum Moderators

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

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by SigurdFireDragon »

Celtic_Minstrel wrote: 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?
The level slider allows for easy advancing or declining of a unit (ie, turn a Great Mage back into a Mage)
The amla slider allows applying the specified amount of additional leveling to a unit at max level (as determined by an empty advances_to field)
Maintainer of Wings of Valor
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
User avatar
Celtic_Minstrel
Developer
Posts: 1666
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 »

Okay, so basically pushing the sliders up is equivalent to :unit advances=n?

In other news, it looks like this was probably the cause of the set_wml_metatable debug message I was seeing, as it seems to be gone after I upgraded (yay!). Now I just have to figure out where the other two debug messages that don't seem to be in my campaign are coming from...
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.
User avatar
SigurdFireDragon
Developer
Posts: 501
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by SigurdFireDragon »

Celtic_Minstrel wrote: August 15th, 2018, 3:01 am Okay, so basically pushing the sliders up is equivalent to :unit advances=n?
Yes
Celtic_Minstrel wrote: August 15th, 2018, 3:01 am In other news, it looks like this was probably the cause of the set_wml_metatable debug message I was seeing, as it seems to be gone after I upgraded (yay!). Now I just have to figure out where the other two debug messages that don't seem to be in my campaign are coming from...
set_wml_metatable debug message was one of the ones fixed. It's possible there might still be others needing fixing somewhere in GDT.
Maintainer of Wings of Valor
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
denispir
Posts: 184
Joined: March 14th, 2013, 12:26 am

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by denispir »

Waow, I just discover this thread. Your tool looks fantastic SigurdFireDragon. I don't really need it yet because I am just startind to explore Lua AI design & realisation, but surely in the future, yes. Not only to avoid" back to main menu + F5", but to have variants of execution with the base code unchanged (I'd say).
Thank you, diniz
(By the way, where are documented features like F5? Guess I probably learnt it one day reading a thread, but how can one know it else?)
User avatar
Ravana
Forum Moderator
Posts: 2452
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Gui Debug Tools 0.9.9 for BfW 1.14

Post by Ravana »

F5 is only for WML changes. If you work with Lua, you never need it.
User avatar
SigurdFireDragon
Developer
Posts: 501
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.10 for BfW 1.14

Post by SigurdFireDragon »

Version 0.9.10 is up

Changes
Fixed <Invalid WML Found> unknown conditional wml: [debug_status](4) error that occurs when giving saves/replays made when this add-on was present to those without this add-on. Fixed by removing the need to define a conditional tag. Thanks for reporting it, octalot
Also removed defining the lua console action tag.

@denispir: Thanks
Maintainer of Wings of Valor
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
User avatar
SigurdFireDragon
Developer
Posts: 501
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.11 for BfW 1.14

Post by SigurdFireDragon »

Version 0.9.11 is up

Changes
Gamestate Inspector
Shows version number of GDT in the upper right corner

Unit Debug
Objects textbox: allows copying any object currently held by a unit or removing objects from a unit
Traits: allows traits from all known races, as well as traits held by all existing units. How traits are handled has been changed, though there shouldn't be any use visible differences.
Alma slider: renamed to Advancements, reports the current number of advancements and can raise and lower number of advancements if the unit is at max level. 0 always clears a unit's advancements
Location: simplified instruction and now only empty string places on recall
Attack: Cleaned up code, changed how attack objects are removed. If you created an attack object with a previous version of GDT, this field will not be able to remove it. Use Objects field for this case.
Abilities: Same changes as Attack

Side Debug
Seed Recall: Now includes all leader extra_recruits
Clear Recall: functionality has been merged into the Seed Recall slider
Starting Location label has been added.
Location has been renamed Teleport. Can now send all non-leaders to recall with single space.
Recall Units textbox: Accepts a comma separated list of unit ids. units will be recalled for free next to location the dialog was triggered at.

Misc
Use of 'Unit' in some field names has been dropped where it was superfluous
Files renamed for clarity & simplification
Code cleanup and simplification throughout
Removed all tag creation
Dofile now used everywhere except for loading helper
Maintainer of Wings of Valor
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
vghetto
Posts: 185
Joined: November 2nd, 2019, 5:12 pm

Re: Gui Debug Tools 0.9.11 for BfW 1.14

Post by vghetto »

Hi

I got this error when I selected side debug on a unit that has no leader and no starting position.
You might be able to reproduce this error on mainline scenarios such as Invaders in 'The Hammer of Thursagan' or Northern Outpost in 'Eastern Invasion'. Click on the units that pop out of the villages.

Code: Select all

20191228 20:10:46 error scripting/lua: ~add-ons/Gui_Debug_Tools/lua/side_debug.lua:747: bad argument #1 to 'concat' (table expected, got nil)
stack traceback:
	[C]: in function 'table.concat'
	~add-ons/Gui_Debug_Tools/lua/side_debug.lua:747: in function <~add-ons/Gui_Debug_Tools/lua/side_debug.lua:742>
	[C]: in field 'show_dialog'
	~add-ons/Gui_Debug_Tools/lua/side_debug.lua:832: in function <~add-ons/Gui_Debug_Tools/lua/side_debug.lua:796>
	[C]: in field 'synchronize_choice'
	~add-ons/Gui_Debug_Tools/lua/side_debug.lua:836: in local 'side_debug'
	~add-ons/Gui_Debug_Tools/lua/side_debug.lua:873: in main chunk
	[C]: in field 'dofile'
	[string "wesnoth.dofile( '~add-ons/Gui_Debug_Tools/lua..."]:1: in local 'bytecode'
	lua/wml-tags.lua:272: in local 'cmd'
	lua/wml-utils.lua:145: in field 'handle_event_commands'
	lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>
20191228 20:10:46 error scripting/lua: ~add-ons/Gui_Debug_Tools/lua/side_debug.lua:868: attempt to concatenate a nil value (local 'return_value')
stack traceback:
	~add-ons/Gui_Debug_Tools/lua/side_debug.lua:868: in local 'side_debug'
	~add-ons/Gui_Debug_Tools/lua/side_debug.lua:873: in main chunk
	[C]: in field 'dofile'
	[string "wesnoth.dofile( '~add-ons/Gui_Debug_Tools/lua..."]:1: in local 'bytecode'
	lua/wml-tags.lua:272: in local 'cmd'
	lua/wml-utils.lua:145: in field 'handle_event_commands'
	lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>
User avatar
SigurdFireDragon
Developer
Posts: 501
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Gui Debug Tools 0.9.12 for BfW 1.14

Post by SigurdFireDragon »

@vghetto : Thanks for the report.

Version 0.9.12 is up.

Changes:
Side Debug: Fix bug when side lacks a starting location
Maintainer of Wings of Valor
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
Post Reply