This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
SorenMC's profile picture

os.reboot()

Started by SorenMC, 23 October 2013 - 02:15 PM
SorenMC #1
Posted 23 October 2013 - 04:15 PM
first of all, i really hope that this hasn't been asked before.. tried searching for it, but couldn't find an answer.


whenever i try to use the os.reboot() command (during a program / running the command directly in lua), it returns with the following error message:


CraftOS 1.3
> lua
Interactive Lua prompt.
Call exit() to exit.
lua> os.reboot()
lua:43: attempt to call nil

this should be a standard command by default though, so i have no idea as to why it should be missing

the CTRL + R shortcut still works, but i can't really use that automatically in my programs as far as i know
already tried breaking the computer and placing it again in order to reset it
Lyqyd #2
Posted 23 October 2013 - 10:26 PM
Split into new topic.

First, CraftOS 1.3? You really need to update.

Second, please post your startup file. You may be overwriting os.reboot().
SorenMC #3
Posted 24 October 2013 - 04:07 AM
Split into new topic.

First, CraftOS 1.3? You really need to update.

Second, please post your startup file. You may be overwriting os.reboot().

the SMP server i'm playing on is using 1.3

and i tried breaking, and setting up the computer again… so that's even without a startup program (or any other program) which is why i'm getting frustrated
MKlegoman357 #4
Posted 24 October 2013 - 04:27 AM
Maybe that server owner removed this function from bios.lua? (you should ask him)
theoriginalbit #5
Posted 24 October 2013 - 04:39 AM
o.O the only thing on line 43 of the `Lua prompt` in ComputerCraft 1.3 that could cause attempt to call nil is the pcall function… that's Java side.

I can't even imagine playing MC 1.2.5 anymore, there are so many new mods, and so much new with MC that I wouldn't be able to handle it! xP ……. therefore I can only assume that you're playing Tekkit.
SorenMC #6
Posted 24 October 2013 - 08:10 AM
that's quite right, Tekkit classic =o, and yeah that must be the reason MKlegoman357, really don't see what else could be causing it, thanks a lot for the help ^^