fatboychummy, on 15 October 2016 - 02:41 AM, said:
Just did some testing; I am running LurCraft's Relived modpack which is 1.7.10, I guess rednet_message was the wrong one. It is apparently modem_message.
The deal is that all networking is done via modem_message events, but CraftOS runs a coroutine alongside your code which checks for these, and, if it determines they were sent using rednet.send(), generates corresponding rednet_message events (unpacking the table for you for eg). You DO want to work with these rednet_message events, not the original modem_message events.
fatboychummy, on 15 October 2016 - 02:41 AM, said:
Keyvalues are wierd, but okay. A is 30, b is 48, c is 25...?
You can see the map
here, but usually you're better off using the
keys API. Eg:
if event == "key" and id == keys.a then
That's if you simply want to know which buttons were pressed on the keyboard, though. If you want to know which characters were generated, use char events instead:
if event == "char" and id == "a" then
Edited by Bomb Bloke, 15 October 2016 - 03:06 AM.