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

[1.72][SMP] Command computer's startup not running consistently

Started by logoth, 14 November 2015 - 01:38 AM
logoth #1
Posted 14 November 2015 - 02:38 AM
VERSION:
1.72

DESCRIPTION:
I have 3 command computers at spawn on our multiplayer server, and I randomly get reports from new players that the buttons to trigger the commands do nothing. If I go look at the computers myself, the screens will be be blank and not show the ">" that they are running. If i right click them, they fire up. I'm honestly not sure if they aren't starting up on reboot, or if they are shutting off due to no yield, but the code I am using as far as I know will yield properly.

The server reboots nightly at 3am as well.

EXPECTED RESULT:
Computer fires up on server start and runs the startup program

REPRODUCTION STEPS:
Here's the code running on one of the command computers. There is a block above it with a button on it for the players to trigger.


print("Watching button for long teleport.")
while true do
  os.pullEvent("redstone")
  if rs.getInput("top") then
	commands.exec("say Player teleporting soon, expect some lag.")
	commands.exec("give @p MineFactoryReloaded:straw")
	commands.exec("setblock ~2 ~1 ~-4 ThermalFoundation:FluidEnder 0 replace")
  else

  end
end

SCREENSHOT/VIDEO:
n/a
Lupus590 #2
Posted 14 November 2015 - 09:29 PM
This is a known bug in computercraft, I'm not aware of any proper fixes.

I've had it in one of my single player worlds, a new world fixed it (or maybe updating java or removing another mod). Not sure how much of an option that is for a server.
Edited on 14 November 2015 - 08:30 PM
logoth #3
Posted 15 November 2015 - 07:11 AM
Well, that sucks. Thanks for the heads up. I plopped an admin anchor under spawn in case another chunk loading kick start helps at all. So far they're still working but of course if its intermittent, who knows.
Lupus590 #4
Posted 15 November 2015 - 02:02 PM
you have thermal expansion, use autonomous activators to right click the computer

also, if the server keeps rebooting every night then no amount of chunk loaders will help
Edited on 15 November 2015 - 01:03 PM