Jump to content




os.reboot()


  • You cannot reply to this topic
5 replies to this topic

#1 SorenMC

  • Members
  • 3 posts

Posted 23 October 2013 - 03: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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 23 October 2013 - 09: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().

#3 SorenMC

  • Members
  • 3 posts

Posted 24 October 2013 - 03:07 AM

View PostLyqyd, on 23 October 2013 - 09:26 PM, said:

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

#4 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 24 October 2013 - 03:27 AM

Maybe that server owner removed this function from bios.lua? (you should ask him)

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 24 October 2013 - 03: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.

#6 SorenMC

  • Members
  • 3 posts

Posted 24 October 2013 - 07: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 ^^





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users