Help, network issues

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
Leap of Time
Prole
Posts: 23
Joined: Fri Sep 11, 2015 9:20 pm

Help, network issues

Post by Leap of Time »

I I am trying to make a co-op version of my game, but I tried the example of the enet from here https://love2d.org/wiki/lua-enet, but when I copy and paste them (to do it as an localhost) and run them both at the same time, the client always gets an error: attempt to concatenate field `peer` (a userdata value)
Leap of Time
Prole
Posts: 23
Joined: Fri Sep 11, 2015 9:20 pm

Re: Help, network issues

Post by Leap of Time »

can anyone help me?
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Help, network issues

Post by s-ol »

Leap of Time wrote:can anyone help me?
its an error in the example really, just put tostring(peer) instead of peer wherever you try to concatenate (..) it with a string.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Post Reply

Who is online

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