Download
(20 Kb)
Download
Updated: 07-12-13 08:05 PM
Updated:07-12-13 08:05 PM
Created:10-29-11 05:09 PM
Downloads:113
Favorites:0
MD5:
SlashPrint
Version: 0.12
by: seebs [More]
It does exactly what it says on the tin; creates a /print command.

/print takes any Lua expression and tries to print it. Expressions are evaluated. You can do stuff like /print a, b and it will print both values. Functions are called. Tables are dumped recursively. Use it to take notes, record numbers, do math! Impress your friends! Terrify your enemies! Discover that global wwwwwww12312312313 is a nil value!

To give this some actual utility, I've added a "-d" option to limit depth; "/print -d 1 _G" is a lot less spammy than "/print _G".

Added an output cap of 1000 lines -- 1000 is arbitrary, but if you print a large enough table, you could crash the game. In practice, "more than the window could scroll" is probably useless. You can use the dump(table, value) function to populate a table with up to 10k lines of output if you want to display them some other way.

WARNING: This includes a newer version of libgetopt than my other addons use. It shouldn't matter, but if stuff suddenly breaks, back out to an older version of SlashPrint and let me know.
Thanks to a person in #riftui, SlashPrint now avoids printing recursive references indefinitely, and can be used for _G!

Added -d # option for depth limit, improved output for stuff like already-visited tables.

Added -m # option for cap to items-per-table to display.

0.10:
* ToC update
* Rework of printf() implementation.
* Now color-coded!

0.11:
* Upgraded LibGetOpt, no longer has problems with double quotes on the command line.

0.12:
* Upgraded LibGetOpt, now able to handle the new event model.
Optional Files (0)


Archived Files (8)
File Name
Version
Size
Author
Date
0.11
20kB
seebs
02-24-13 10:03 PM
0.10
19kB
seebs
11-03-12 01:42 AM
0.9
11kB
seebs
06-22-12 09:48 PM
0.7
11kB
seebs
03-03-12 01:29 AM
0.6
11kB
seebs
03-03-12 12:08 AM
0.5
8kB
seebs
11-17-11 01:10 AM
0.2
2kB
seebs
10-29-11 05:48 PM
0.1
2kB
seebs
10-29-11 05:09 PM


Post A Reply Comment Options
Unread 11-01-11, 01:22 AM  
seebs
Super Moderator
Riftui Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 31
Uploads: 36
Probably?

I didn't really look that closely. I just wrote one that did exactly what I wanted.
seebs is offline Report comment to moderator  
Reply With Quote
Unread 10-30-11, 11:40 AM  
doxxx
Claw of Regulos
 
doxxx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 101
Uploads: 1
Don't the Trion Dev Tools already include something like this?
Last edited by doxxx : 10-30-11 at 11:40 AM.
doxxx is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: