Help with Lovernet please!

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
garcia1000
Prole
Posts: 34
Joined: Sat Nov 28, 2015 5:54 am

Help with Lovernet please!

Post 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?
Attachments
lovernet_test.love
(13.76 KiB) Downloaded 143 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 0 guests