Posted 02 July 2014 - 07:07 PM
I have a string for a small project that's a number and when transmitted the other computer receives it as 'number.0' like 1.0, 2.0,3.0,4.0. It should receive 4 numbers as just the numbers for a 16-track train station.
^that's a rough representation of it, with blue being outgoing lines and green being bridges. the yellow are computers, the redstone looking one is the master receiver, which I always use to debug rednet and receives all transmissions. Anyways, I currently need help on finding out how to separate a string at the ".". I can do it with gmatch at any spaces, but need to know how to split a string.
EDIT: I guess what I'm really asking for is if anybody knows the %a+ and %w+ things in list form, since nowhere else that i've seen has it
^that's a rough representation of it, with blue being outgoing lines and green being bridges. the yellow are computers, the redstone looking one is the master receiver, which I always use to debug rednet and receives all transmissions. Anyways, I currently need help on finding out how to separate a string at the ".". I can do it with gmatch at any spaces, but need to know how to split a string.
EDIT: I guess what I'm really asking for is if anybody knows the %a+ and %w+ things in list form, since nowhere else that i've seen has it
Edited on 02 July 2014 - 05:32 PM