LUBE problem

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
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

LUBE problem

Post by rokit boy »

this is my main.lua for both client and server:

CLIENT

Code: Select all

require "class"
require "LUBE"

function onReceive(data)
	print("HELO")
end
client = lube.client()
client:setHandshake("Hi!")
client:setCallback(onReceive)
client:connect("127.0.0.1", 1234)

function love.update(dt)
  client:update(dt)
end
server

Code: Select all

require "class"
require "LUBE"

function onConnect(ip, port)
  print("Connection from " .. ip)
end
function onReceive(data, ip, port)
  print("HEY")
end
function onDisconnect(ip, port)
  print("BYE")
end
server = lube.server(1234)
server:setCallback(onReceive, onConnect, onDisconnect)
server:setHandshake("Hi!")

function love.update(dt)
  server:update(dt)
end
For server it says lube.server is nil, and lube.Server is a table value

Am I doing something wrong?
Last edited by rokit boy on Thu Nov 01, 2012 12:16 pm, edited 1 time in total.
u wot m8
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

Re: LUBE problem

Post by rokit boy »

26 hour bump. SORRY

EDIT: 29 hours now, PLEASE HELP.
u wot m8
penguin321
Prole
Posts: 7
Joined: Sun Oct 21, 2012 6:14 pm

Re: LUBE problem

Post by penguin321 »

Have you tried using the older LUBE?
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

Re: LUBE problem

Post by rokit boy »

Now it doesn't do anything, thanks for help anyway.
u wot m8
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 60 guests