Page 1 of 1

Help with Lovernet please!

Posted: Sun Sep 18, 2016 5:58 am
by garcia1000
Hello, I am using Lovernet for netplay in my game. I tried lovernet and from reading the wiki and tried some code.

I have attached my code below. It is the example code, the only code I added was:
lines 145-157 in define.lua
lines 57, 59, 176-178 in client.lua

Now, I set one instance of this as localhost server, then open another instance as client and join the server. The first part works ok (I can press 'g' to send data to the server). The second part sort of workds (the server sends the number of peers to the client). But #self:getUsers() is 0 and it is an empty table. What am I doing wrong here?