Alright, so here's my code as broken down as it gets.
There error I'm receiving is "Attempt to call 'server', A nil value" and this happens right when I try to create a server object.
Oh, and the OOP library I am using is the one from HUMP (But I've also tried out many of the other ones on the compatible list just in case)
Code: Select all
local class = require("LIBS/class")
require("LIBS/lube")
function onConnect(ip, port)
print("Connection from " .. ip)
end
function onReceive(data, ip, port)
end
function onDisconnect(ip, port)
end
function love.load()
server = lube.server(18025, "tcp")
server:setCallback(onReceive, onConnect, onDisconnect)
server:setHandshake("A23JS76SH")
end
Did I do something obviously wrong?