ARC (Akuma Remote Console)
This create a lua server in your app to execute live command. Some possible use:
-Tweak some settings without reloading the project
-Spawn objects for testing
Download:
Bundled with Akuma 1.0: https://github.com/downloads/bullno1/Ak ... in-1.0.zip
Usage:
Include arc.lua, coxpcall.lua, copas.lua in your project folder
Put this piece of code in your main.lua:
- Code: Select all
- require "arc" --load arc
- arc.start() --start the server on port 9090 (default)
- --alternatively
- arc.start(8080)--start the server on port 8080
See Akuma's "arc" sample for more info.
To access the server, use a tcp tool such as telnet or netcat. You can download netcat here http://joncraton.org/files/nc111nt.zip (note, some Antivirus recognizes it as a virus. It is not, however, it can be used as a backdoor and hack tool)
Connect to the server:
nc localhost 9090 (or nc your_device_ip port)
You will see a prompt and a welcome message. You have access to all hosts' function(except for print, which will be redirected to your console window. If for some reason, you want to print to host's output, use _G.print instead)
Try some commands such as:
- Code: Select all
- =MOAIEnvironment.getViewSize() --prepend a command with = to print the returned values
- for k in pairs(_G) do print(k) end --dump the global environment
- --if you are running the "arc" sample in Akuma
- prop:moveLoc(-50, -50, 1) -- move the cat head
- =prop:getLoc()--get cat head's location
- quit --end the session (ctrl+c in windows works too)
That's all for now

