/cc-emu

Terminal CC Emulator

Primary LanguageLuaMIT LicenseMIT

CC Termu

A ComputerCraft Emulator for the Terminal

Requirements

Compatibility

This version has been cursorily tested with:

  • 1.78
  • 1.77
  • 1.74
  • 1.74pr17
  • 1.74pr16
  • 1.74pr14 (some terminal bugs)
  • 1.74pr13 (some terminal bugs)
  • 1.73 (some terminal bugs)
  • 1.64 (some terminal bugs)
  • 1.6 (some terminal bugs)
  • 1.58
  • 1.5
  • 1.41

Installation

Install the dependencies (I used luaenv and luarocks to do so) Put ComputerCraft's lua files in cc (I cloned alekso56/ComputercraftLua, you could also download the tarball or extract them (from the ComputerCraft jar) yourself). Your directory structure should now look something like below

.
├── cc
│   ├── bios.lua
│   ├── README.md
│   ├── rom
│   └── treasure
├── cli.lua
├── emu.lua
├── LICENSE.txt
└── README.md

Usage

lua cli.lua <directory> <args>- Start a computer in directory (args is passed to bios.lua) If you want to use left control you can instead press Ctrl-Shift-tilde (this might be broken on other terminal emulators, tested on st and xterm).