ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun May 27, 2018 3:39 pm

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Sun Feb 09, 2014 11:55 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
Adds a few tools for addon developers.

• "Reload Addons" action is keybound (CTRL-R by default) and also added to the top of the Debug menu. CTRL-ALT-SHIFT-R was already in the engine and will reboot without saving. (I didn't know about this until I stumbled across it in the code, but now there's a choice between save and no-save reboots.)
• LUA console font scales based on game settings, including the larger fonts in Marson's UI Modifications. If installed, the style is based on the tooltip option, and size is based on dialog font size.
• Added Enrique Garcia's "inspect.lua" function to the LUA console for expanded table inspection (default depth of 2). Example: ==game.player.combat
https://github.com/kikito/inspect.lua (MIT license)
• Keypad Enter key has same functionality as the Return key.
• The LUA console can be called even when a dialog is already on-screen. (Except the Inventory screen. Install my UI Mod as well in order to enable it there.
• The PrtScn button will take screenshots of the console screen.
• Debug info outputs to on-screen log while registering and uploading addons.
• CTRL-F will flush waiting output to the logfile.
• Added "Lua inspect grid" option to the right-click menu (Map.TERRAIN).

• Compatible w/ 1.1.5 - 1.2.x

+ Added a Minimalist UI element for tracking variables. Edit the list via CTRL-V.

Example
==game.player.combat
To limit the depth of the tables to 3 deep:
==game.player.combat, {depth=3}
To filter (in this case, using a function)
==game.player.combat, {filter=isEvenNumber}

http://te4.org/games/addons/tome/marson-dev

Sample output:
Attachment:
Marsons_Dev_Tools.png
Marsons_Dev_Tools.png [ 17.02 KiB | Viewed 2855 times ]

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Last edited by Marson on Mon Jun 16, 2014 12:03 am, edited 6 times in total.

Top
 Profile  
 
PostPosted: Sat Feb 15, 2014 8:34 pm 
Offline
Thalore

Joined: Mon Mar 25, 2013 10:09 pm
Posts: 153
This is a really good idea. I'm borrowing some of it for my own module. (Hope you don't mind.)

_________________
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.


Top
 Profile  
 
PostPosted: Sat Feb 15, 2014 8:51 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
Feel free. If it's a public release, a little credit would be nice. ;)

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Sun Feb 16, 2014 4:29 am 
Offline
Thalore

Joined: Mon Mar 25, 2013 10:09 pm
Posts: 153
Credit will be provided. :) Thanks.

_________________
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.


Top
 Profile  
 
PostPosted: Wed Mar 12, 2014 5:40 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
+ Keypad Enter key has same functionality as the Return key.
+ The LUA console can be called even when a dialog is already on-screen. (Except the Inventory screen. Install my UI Mod to enable it there.)
+ The PrtScn button will take screenshots of the console screen.

I'm unable to upload to Steam, so anyone wanting the latest will have to update manually.

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Fri Apr 04, 2014 9:07 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
+ Reload Addons function is now also keybound (CTRL-R by default).

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Tue Apr 22, 2014 12:30 pm 
Offline
Archmage

Joined: Tue Jun 18, 2013 7:24 pm
Posts: 449
I think I'll follow Castler's example and nick some of this (lua console!!!) for my module.

_________________
Working on a T-Engine game
Veins of the Earth

Veins of the Earth ModDB page


Top
 Profile  
 
PostPosted: Tue May 06, 2014 11:37 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
+ CTRL-F will flush waiting output to the logfile.
+ Added "Lua inspect grid" option to the right-click menu (Map.TERRAIN).
+ Added default 'inspect.lua' table depth of "2" to prevent crashes of near infinite table displays.

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Mon Jun 16, 2014 12:06 am 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
+ Added a Minimalist UI element for tracking variables. Edit the list via CTRL-V.

It's mobile and resizable. You can enter full functions in as well, as long as they return a single value. My next step is to expand the text input to make that easier.

Attachment:
varlist.png
varlist.png [ 52.99 KiB | Viewed 2226 times ]

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Wed Sep 17, 2014 12:19 am 
Offline
Wyrmic

Joined: Tue Feb 15, 2011 12:01 am
Posts: 282
Marson, you delicious beast.

Coding for ToME feels like skipping on clouds again.

Thanks for everything you've done!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: Row and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group