This is my fork of the CCLite emulator by Sorroko, and since Sorroko has gone off into a different goal than I have, I feel its okay to post a thread for this.
If you would like to go check out Sorroko's version of CCLite, his forum thread is here.
Description:
This is the CCLite ComputerCraft emulator. My goal is to get the emulator as close as possible to normal ComputerCraft.
It is not complete and thanks to LuaJ and Java, probably will never be complete. It is still quite useable however.
If you want to use the .love archives or source code, you will need the Love2D game framework version 0.9.2, avaliable here
If you want proper HTTPS support, try the instructions on this page.
Please report any issues you find here on my github's issues page!
Peripherals:
CCLite supports peripherals via the additional api, cclite.
cclite.peripheralAttach(side, type) – Attaches peripheral of type, to side.
cclite.peripheralDetach(side) – Detach a peripheral on side.
Some peripherals have additional callbacks, look at cclite.getMethods and cclite.call to use them.
Downloads:
Builds
Love2D
Source code
Warning, builds may be out of date, check builddate.txt
NOTE: If using the .love archives, unless you pass –fused to love, the builds and the .love won't share the same configuration and computer contents.
Regarding Mac Builds:
Spoiler
So, I have mac builds. But I'm not paying Apple $100/year to get a proper license for them.
To use these builds, you need to right click on them and select Open, then you can ignore the warning.
You can also disable the warning system entirely but I don't recommend doing this
Features:
Quite faster than ComputerCraft in Minecraft
HTTP is potentially faster as well.
Supports "Too long without yield"
Adds an api called cclite. Usage documentation here
Virtual peripherals
Screenshots:
Spoiler
Things that won't ever work:
Lua and LuaJ will take invalid escape sequences and ignore them, LuaJIT will complain (5.2 feature). You shouldn't be having invalid escape sequences anyway though *cough* LuaIDE *cough*
Lua's tonumber locks the output from 0 to 4294967295 (2^32-1), LuaJ doesnt. I've done a patch that enables the output to go from -4294967295 to 4294967295
LuaJ will allow you to set the environment of builtin's, Lua won't.
Numpad. SDL cannot distinguish between numpad buttons with numlock off and numlock on. It seems I cannot get the numlock state from SDL either.