MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 430 forks source link

Problem with Lua Code #3268

Closed tigerboy985 closed 4 years ago

tigerboy985 commented 4 years ago

I have wanted to install this program into my base: https://pastebin.com/wA3Nz2YC. I tested in gmc and it worked, I then went on my survival world and created all the same components, did the same stuff I did in gmc but I get an error whereas in gmc it works fine.

image

tigerboy985 commented 4 years ago

image

payonel commented 4 years ago

we accidentally left bit32 in the global env in previous versions of openos and some projects errornously used it, when they should have require'd it you can fix their code by adding: local bit32 = require("bit32") at the top of their source file /etc/rc.d/clock.lua