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

[1.5] Turtles/Computers not running startup script after relogging into server

Started by Siffar, 19 March 2013 - 09:25 PM
Siffar #1
Posted 19 March 2013 - 10:25 PM
Hi, I'm currently playing on a multiplayer server and am using turtles to do remote harvesting. The current issue I am having is I'm having to go a manually reboot all the turtle every time I relog into the server if no one else is nearby.

I recently added computers next to the turtle to run a startup script of peripheral.call turnON but the computers aren't booting either so it's not just limited to turtles.

I've not had this issue on my single player games and test worlds, so I'm wondering if it is a limitation of the multiplayer server or if I am going to need to add a red power signal to trigger the computer/turtle initially into a booted receiving state.

Thank you for your help
Lyqyd #2
Posted 20 March 2013 - 05:36 AM
Split into new topic.

What version of ComputerCraft are you using?
Siffar #3
Posted 20 March 2013 - 06:51 AM
I am using the version supplied in the feed the beast mindcrack pack v8.2.0 which I believe is the 1.5 version of computercraft, I'll check exact release version once I'm in front of my pc.
Lyqyd #4
Posted 20 March 2013 - 07:29 AM
That is strange. If you can come up with exact conditions for reproducing this, I'll toss it over to the Bugs section. If you were in Tekkit and on 1.3 something, I would have expected this, but that bug was fixed in 1.4. Perhaps it has cropped up again.
Siffar #5
Posted 20 March 2013 - 04:26 PM
I'll give you all the info on the conditions i have. Turtle is placed facing North at x 128, y 66, z 311. Computer is placedto the left looked at the back of the turtle its screen pointing south.

Turtle startup program:



os.sleep(3)
local modemSide = "right"
local programtoRun = "cane"
rednet,open(modemSide)
while true do
event, id, msg, dist =os.pullEvent("redstone_message")
if msg == "begin" then
	 shell.run(programtoRun)
	 end
end

Local Wake Computer Code


local p=peripheral.isPresent("right")
os.sleep(10)
if p == true then
   peripheral.call("right","reboot") else
   term.write("wrong")
end

Barek #6
Posted 21 March 2013 - 02:32 AM
Not sure if this is a bug or wai, but currently you need to chunkload your computers for them to execute the startup script.

Else if they unload, they will not execute it until you right click them.
Lyqyd #7
Posted 21 March 2013 - 02:39 AM
Moved to Bugs.
PixelToast #8
Posted 21 March 2013 - 02:52 AM
your code for turtle is wrong

sleep(3)
local modemSide = "right"
local programtoRun = "cane"
rednet.open(modemSide) -- comma between rednet and open
while true do
  event, id, msg, dist =os.pullEvent("rednet_message") -- said redstone_message
  if msg == "begin" then
	shell.run(programtoRun)
  end
end
indenting is horrid aswell

sleep(10)
if p == peripheral.isPresent("right") then
   peripheral.call("right","reboot")
else
   term.write("wrong")
end
Cloudy #9
Posted 21 March 2013 - 02:57 AM
*explodes* Stupid Computers not turning on, I'll look into it. Grrrrr.
Siffar #10
Posted 21 March 2013 - 07:08 AM
Yes the code I typed in here was wrong, I was copying it on the back of a 14hr night shift and didn't do a very good job at it, it is correct on the server thou as the turtles operate correctly if I physically go up and Ctrl-R then send cane from my base computer. Your right thou my indenting is terrible, I will start actually writing it in a notepad for pastebin instead of directly into a turtle via minecraft. Should make it easier to keep neat with proper indents
Abdiel #11
Posted 21 March 2013 - 07:23 AM
I can confirm in CC 1.5 [FTB] in SMP computers not running the startup program after they are unloaded. They will only run it the first time you right-click them - which is a problem in "embedded" systems.

To reproduce simply program a counter printing consecutive numbers as startup, leave the area so that the computer unloads, and come back. It will start counting only when you first right-click it.

I couldn't reproduce this in SSP, and I don't have a 1.51 server available to test.
Cloudy #12
Posted 21 March 2013 - 07:34 AM
Cannot reproduce. I've checked the code and it works fine. I've let the chunk unload by leaving it, and by logging off - and it does start startup like it should.
Siffar #13
Posted 21 March 2013 - 03:30 PM
Ok, thank you. I'll keep trying different things, I must just be doing something or it's a limitation of the server, pity it has chunk loaders and world anchors banned
Cloudy #14
Posted 21 March 2013 - 11:40 PM
I'm going to try and fix an unrelated issue which could be this one too. Fingers crossed.
Serpardum #15
Posted 14 October 2013 - 09:16 AM
I'm using 1.5.2 with minecraftforge-universal-1.5.2-7.8.1.738 and ComputerCraft1.53 and both client and server.

I am using a dimentional anchor to keep my computercraft computers loaded (turtles and computers). If the server is restart with a soft restart in the console I click restart, then the startup scripts are run for the computers and turtles. If the server is restart with a hard reset, daily restart scheduled where the minecraft.jar is stopped and restarted, then the startup scripts are not run for the turtles and computers and I have to run around and right click them all.
Lyqyd #16
Posted 14 October 2013 - 09:33 AM
Please try to reproduce in ComputerCraft 1.56.
Serpardum #17
Posted 14 October 2013 - 09:36 AM
I can't use 1.56 because that's for minecraft 1.6.2 and I'm only running 1.5.2
Lyqyd #18
Posted 14 October 2013 - 12:35 PM
It's not useful to report bugs in old versions. The first thing to check when you find a bug is whether it is resolved by updating. I believe this was fixed in or before 1.56. Fixes and features have never been backported, so support for this bug is unlikely unless you can reproduce it in the latest version.