Bomb Bloke, on 06 May 2014 - 10:43 PM, said:
That code shouldn't have that problem. What version of CC are we talking about?
1.61
Bomb Bloke, on 06 May 2014 - 10:43 PM, said:
but in cases where a script absolutely hinges on messages getting through, you might consider making use of timeouts to resend messages if the correct replies don't come back.
Actually I already do use timeouts, you see, the only reason I actually noticed the program bugged out was because I have one central computer that sends out checks and will wait a few seconds and if it doesn't get a certain reply it prints on a monitor that that program is offline.
Bomb Bloke, on 06 May 2014 - 10:43 PM, said:
The only real improvement I can see would be to turn this sort of thing:
[/color][color=#000088]if[/color][color=#000000] lights [/color][color=#000088]then[/color]
[color=#000000] rs[/color][color=#666600].[/color][color=#000000]setOutput[/color][color=#666600]([/color][color=#008800]"right"[/color][color=#666600],[/color][color=#000000] [/color][color=#000088]true[/color][color=#666600])[/color]
[color=#000000] elseif [/color][color=#000088]not[/color][color=#000000] lights [/color][color=#000088]then[/color]
[color=#000000] rs[/color][color=#666600].[/color][color=#000000]setOutput[/color][color=#666600]([/color][color=#008800]"right"[/color][color=#666600],[/color][color=#000000] [/color][color=#000088]false[/color][color=#666600])[/color]
[color=#000000] [/color][color=#000088]end
... into this:
rs[/color][color=#666600].[/color][color=#000000]setOutput[/color][color=#666600]([/color][color=#008800]"right"[/color][color=#666600],[/color][color=#000000] lights[/color][color=#666600])
Oh well, thanks for the help though! By the way, sorry for the 3 day late reply xD various things distracted me.
EDIT: Jesus christ. Something about the way I did this just flat out doesn't like me...
Edited by applesauce10189, 09 May 2014 - 08:34 AM.