Computer Craft Code Catalog (C4), a ComputerCraft dependency manager
- Open a brand-new computer. You should see a command-line interface.
- Type
edit install_c4.lua
. You should be taken to a text editor. - Copy/paste the following into the text editor:
local request = http.get(("https://raw.githubusercontent.com/brooswit/c4/main/c4.lua?cb=%x"):format(math.random(0, 2 ^ 30)))
local file = fs.open("c4", "w")
file.write(request.readAll())
file.close()
- Note, you may need to copy/paste the code one line at a time, unfortunately.
- Press
ctrl
. You should seeSave
andExit
along the bottom. - Make sure
Save
is selected and press theenter
key. This will save the file. - Press
ctrl
again, and select Exit. You should now be taken back to the command-line interface. - Run the installer: `install_c4"
Now you can load C4 applications and libraries.
c4 hello
c4 <APPLICATION_NAME>