This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
FuuuAInfiniteLoop(F.A.I.L)'s profile picture

test:8: attempt to get length of nil

Started by FuuuAInfiniteLoop(F.A.I.L), 01 April 2013 - 04:28 AM
FuuuAInfiniteLoop(F.A.I.L) #1
Posted 01 April 2013 - 06:28 AM
pastebin: pastebin.com/GpcYAmYg

if i pass the send arg it works, it errors with the receive command after the send computer start sending the msg

layout:

C = computer
R = redstone
RRRRRRRR
R R
C C
LBPHacker #2
Posted 01 April 2013 - 06:39 AM
I think line 198 is where the problem is. "result" is still nil (as it was declared on line 145). Your program don't even think about changing "result" - if it did, you would get "attempt to concat string and nil"s. Not sure about what is the real problem yet, but I hope this will help. The keyword is "yet".
FuuuAInfiniteLoop(F.A.I.L) #3
Posted 01 April 2013 - 09:21 AM
it donts work same error after deleting the line saing result = nil
remiX #4
Posted 01 April 2013 - 09:37 AM
[url=http://www.computercraft.info/forums2/index.php?/topic/11684-test156-attempt-to-concatenate-nil-and-string/]Why didn't you keep it in one thread?

Change result = nil to result = ''
FuuuAInfiniteLoop(F.A.I.L) #5
Posted 01 April 2013 - 10:22 AM
http://www.computerc...and-string/]Why didn't you keep it in one thread?

Change result = nil to result = ''
Done! replaced result = nil on line 145 to result = "", now it doesnt display any error but it sends only the ping singnal and then it finish

And im putting this with computercraft so i cannot edit them and everytime i post a new one is because i recoded everything(or a whole part)
FuuuAInfiniteLoop(F.A.I.L) #6
Posted 01 April 2013 - 04:16 PM
nobody help?