Author Topic: Finding Arguments, Namespaces, and more for blockland?  (Read 458 times)

I'm trying to code and I can't seem to find a way to figure out the namespaces and the method arguments I need to learn to code for blockland.

I've used the console trick where you type "." then hit tab contentiously to find methods, but the way is almost useless if you don't know the arguments. I mean, i could echo out every argument but that seems ridiculous. There must be a way to get this information. I've looked in the sticked topics, http://forum.blockland.us/index.php?topic=20754.0 & http://forum.blockland.us/index.php?topic=21753.0, but neither of these documents have "FxDTSBrick" in them at all. How do I find what namespaces are under FxDTSBrick?

A lot time ago someone showed me a trick where you could type something in the console and it would dump information into your "console.log". This was very helpful, but I don't know how to do that anymore. Does anyone? Even with that I don't believe it gave you the argument you'll need to write the Parent return.

What do I do? What did you do?

I believe to dump info you'd use dumpConsoleClasses() (not sure on that one) and dumpConsoleFunctions() as well as %object.dump() for any object to get all properties of the object/methods of the class or object name.

Aside from that you're going to have to experiment. Place a brick, /getID while looking at it to see its ID and mess with anything that seems related to what you want to do until you get it to work. Get used to richarding around to learn stuff, it's how everyone else did.

To find arguments, try the following:
  • Search Coding Help for the function name.
  • Invoke the function with no arguments.
  • Use a package and echo arguments.


To find functions for an object type, try the following:
  • Create an object of that type and invoke the dump method on it.

    To find namespaceless functions, try the following:
  • Press space or start typing the name of a function, then press tab repeatedly.

Thanks for everything. These commands: dumpConsoleClasses(); dumpConsoleFunctions(); were very helpful.
Do you guys know a console command where when you put it in it starts filling your console with what your client is doing; recording mouse movements and everything else?
It would record everything your client was doing and put it in the console.log.

Do you guys know a console command where when you put it in it starts filling your console with what your client is doing; recording mouse movements and everything else?
It would record everything your client was doing and put it in the console.log.
trace(1); to turn it on. Trace(0); to turn it off.