Drexx Posted August 5, 2016 Posted August 5, 2016 (edited) I am new to lua, have the whole environment setup including witchcraft running. How do you dump an object inside of witchcraft. I have used console.log() in javascript, and var_dump() in php, I need to see what is inside of these objects to understand them better and to see whats going on. If its not that simple, let me know how to proper debug whats going on in a script. Example, I am using the Moose library (have many things spawning btw, so the script works) blueClients = SET_CLIENT:New():FilterCoalitions("blue"):FilterStart() return blueClients witchcraft throws: [string "Scripts\JSON.lua"]:255: can't convert function to JSON (yes the default template 'list all unit IDs' works fine and displays all the unit ids Thanks, Drex Edited August 5, 2016 by Drexx Developer of DDCS MP Engine, dynamicdcs.com https://forums.eagle.ru/showthread.php?t=208608
Recommended Posts