mirror of
https://github.com/zenith391/OCEmu.git
synced 2025-09-28 07:24:22 -04:00

Correct the Tier 3 palette Add in a more accurate color system, comparing wanted values to 6-8-5 levels and palette colors Actually return the palette setting in get/setForeground and get/setBackground, it used to only be nil and seems to be fixed setDepth now loads the respective palette for tier2/tier3 Palette changes now affect the current color if the respective palette entry was modified The droping colors to 6-8-5 levels is probably not entirely correct, since converting back to a normal color can incur further loss, but it's working
OCEmu - OpenComputers Emulator
Installation
Needs luafilesystem, utf8, and luaffi.
luasocket is required for the Internet Component.
luasec is optional but is required for HTTPS.
luarocks-5.2 install luafilesystem
luarocks-5.2 install utf8
git clone https://github.com/gamax92/luaffi.git
cd luaffi
make
sudo cp ffi.so /appropriate/path/for/lua/libraries/
# OpenComputer's lua source code is not provided, if you have svn then use the provided Makefile
# If you hate svn, manually download assets/loot, assets/lua, and assets/unifont.hex into src/
Windows users will have to manually compile everything, as luarocks seems to hate MSYS2/Cygwin
Native binaries will be provided for Windows when its ready.
Running
Launch boot.lua with lua5.2, and provided everything is installed, you'll have a working Emulator
OCEmu stores its files in $HOME/.ocemu or %APPDATA%\.ocemu, whichever happens to exist first
Description
Languages
Lua
97.7%
Shell
2%
C
0.2%