Posted 14 January 2013 - 06:45 AM
Yes,I kinda found out the problem,but how can I fix it?I am making an program called the FLC(Fishing Lounge Control) for my bro.And to make it im using rednet.One of my options is to spawn a boat at the boat deck.Ive got a computer next to a dispenser there with a modem conected to it.I got to the part were the computer by the deck can notice that it found the flc computer,but when I want to give the computer a comand from the flc,I check at the computer at the boat deck and it exited the program.It didnt clear the screen or anything,it just shows the ">_" in the shell.Here are the codes I use:
FLC:
Computer by boat deck:
FLC:
rednet.open("right")
rednet.broadcast("Signal")
v = (1.0)
a = ("Fishing Lounge Control.")
b = ("--------------------------------------------------")
term.clear()
term.setCursorPos(15,9)
term.setTextColor(colors.blue)
textutils.slowPrint("Fishing Lounge Control")
sleep(3)
term.clear()
term.setCursorPos(1,1)
print(a)
print(B)/>
print("Press the # before the thing you want to do to do it.")
print(B)/>
print("1:Spawn boat at boat deck.")
local input = read()
if input == "1" then
rednet.broadcast("Boat")
end
Computer by boat deck:
term.clear()
term.setCursorPos(1,1)
rednet.open("left")
a = ("FLC BC")
b = ("--------------------------------------------------")
c = ("Found signal from FLC. FLC BC can now take commands from FLC")
d = ("Spwaning Boat...")
print(a)
print(B)/>
print("Finding signal from FLC...")
id,message = rednet.receive()
if id == 6 and message == "Signal" then
print(c)
id,message = rednet.receive(10)
if message == "Boat" then
print(d)
redstone.setOutput("right", true)
sleep(1)
redstone.setOutput("right", false)
end
end