[DEVS] Function Dump
#1
After playing around with the existing functions etc. I made a quick plugin to dump the global table of functions and tables to a text file.

I wasn't quite sure where to post it, but seeing as it's in plugin form, I posted it here.

Function Dump Plugin Download
Function Dump Text File (03/02/14) Download

Function to dump global table:
function PrintTables()
	local content = ""
	local content2 = ""
	for k, v in pairs(_G) do
		if type(v) == "function" then
			content = content..tostring(k).."\n"
		elseif type(v) == "table" then
				for i, z in pairs(v) do
					if type(z) == "function" then
						if tostring(k) ~= "_G" then
							content2 = content2..tostring(k).."."..tostring(i).."\n"
						end
					end
				end
		end
	end
	local file = io.open("Plugins/FunctionDump/data.txt", "w")
	file:write(content)
	file:write(content2)
	file:close()
end
Reply
Thanks given by:


Messages In This Thread
[DEVS] Function Dump - by Jarva - 02-04-2014, 03:18 AM
RE: [DEVS] Function Dump - by tigerw - 02-04-2014, 03:52 AM
RE: [DEVS] Function Dump - by Jarva - 02-04-2014, 04:03 AM
RE: [DEVS] Function Dump - by NiLSPACE - 02-04-2014, 04:09 AM
RE: [DEVS] Function Dump - by xoft - 02-04-2014, 04:59 AM
RE: [DEVS] Function Dump - by Jarva - 02-04-2014, 05:13 AM
RE: [DEVS] Function Dump - by xoft - 02-04-2014, 08:04 AM



Users browsing this thread: 1 Guest(s)