Jump to content




Server move broke program


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

#1 Corky_McDuff

  • Members
  • 31 posts

Posted 31 March 2015 - 08:22 PM

Hope you can help please as we are trapped between decks lol

Turbo lift program has stopped working since we moved to a new server.
Getting the following error;
parallel :22: Turbo:12: attempt to index ? (a nil value)

Pastebin code is q23XrMff

Your help as always is greatly appreciated!

#2 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 31 March 2015 - 08:25 PM

Maybe you are not allowed to wrap command block in this server, so the command does not exst for the object you created.

#3 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 31 March 2015 - 08:31 PM

Did you change any mods on server change? Got never CC version? Could be open-peripherals?

#4 Corky_McDuff

  • Members
  • 31 posts

Posted 31 March 2015 - 08:40 PM

ok, checked with server admin and nothing is restricted and command block use is checked.

I don't believe anything changed when we moved. Not sure how I would check that now.

#5 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 31 March 2015 - 08:46 PM

Either command blocks are disabled in ComputerCraft.cfg or there is no command block below the computer.

Edited by MKlegoman357, 31 March 2015 - 08:46 PM.


#6 Corky_McDuff

  • Members
  • 31 posts

Posted 31 March 2015 - 08:55 PM

ok, then it must be disabled because there is definitely a block present...it used to work fine also.
I changed the time using the command block, so that worked, but not sure that is a true test.

#7 valithor

  • Members
  • 1,053 posts

Posted 31 March 2015 - 08:59 PM

View PostCorky_McDuff, on 31 March 2015 - 08:55 PM, said:

ok, then it must be disabled because there is definitely a block present...it used to work fine also.
I changed the time using the command block, so that worked, but not sure that is a true test.

If you changed it with the computer then yes the api is enabled (commandblocks can be enabled and the api can not be, they are two seperate things). Here is a test to see if it is enabled.

cb = peripheral.wrap(side)
if cb then
  print("Api is enabled")
else
  print("Api is not enabled")
end

Edited by valithor, 31 March 2015 - 09:00 PM.


#8 Corky_McDuff

  • Members
  • 31 posts

Posted 31 March 2015 - 09:13 PM

Thank you, tried your test program and getting "peripheral :20: Expected string"

#9 valithor

  • Members
  • 1,053 posts

Posted 31 March 2015 - 09:29 PM

View PostCorky_McDuff, on 31 March 2015 - 09:13 PM, said:

Thank you, tried your test program and getting "peripheral :20: Expected string"

Forgot to say you have to replace side with the side the commandblock is on sorry.

#10 Corky_McDuff

  • Members
  • 31 posts

Posted 31 March 2015 - 09:31 PM

That's ok, I guessed that and changed it, but that was what I got :)

#11 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 31 March 2015 - 10:50 PM

View PostCorky_McDuff, on 31 March 2015 - 09:31 PM, said:

That's ok, I guessed that and changed it, but that was what I got :)

It needs quotes too
peripheral.wrap("left") --# Yes

peripheral.wrap(left) --# No


#12 Corky_McDuff

  • Members
  • 31 posts

Posted 01 April 2015 - 02:03 PM

Oops, oh yeah.

..and the answer is... API is not enabled.

So, I presume I need to approach my server host to get them to enable command blocks do I?

#13 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 01 April 2015 - 02:09 PM

He needs to enable command-blocks API in computercraft config in addition to enabling commands blocks.

#14 Corky_McDuff

  • Members
  • 31 posts

Posted 01 April 2015 - 02:27 PM

Ok, I will log a ticket with them. Thank you all for your help!

#15 Corky_McDuff

  • Members
  • 31 posts

Posted 01 April 2015 - 03:16 PM

All fixed and working now....thank you all so much for your help!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users