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?
Help with Lovernet please!
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 34
- Joined: Sat Nov 28, 2015 5:54 am
Help with Lovernet please!
- Attachments
-
lovernet_test.love
- (13.76 KiB) Downloaded 157 times
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot] and 2 guests