Page 9 of 34

Re: LUBE (Networking Library) v0.02 + LUBE-X v0.02

Posted: Mon Feb 02, 2009 6:25 am
by petsagouris
Indeed, it was the so-desired lube-x I was talking about :)

Re: LUBE (Networking Library) v0.02 + LUBE-X v0.02

Posted: Mon Feb 02, 2009 1:52 pm
by bartbes
As you can see in the topic title LUBE-X has nothing new at the moment. :P

Re: LUBE (Networking Library) v0.02.1 + LUBE-X v0.02

Posted: Fri Feb 20, 2009 3:43 pm
by bartbes
New version of packing, supporting dynamic seperators (requested feature)

Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02

Posted: Sat Feb 21, 2009 5:23 pm
by bartbes
I'm ashamed I have to say: I made a mistake! Well, fixed that, new version!

Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02

Posted: Sun Feb 22, 2009 2:49 pm
by Skofo
Thanks so much for working this hard on this! ^^

I definitely have plans to use this.

Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02

Posted: Mon Feb 23, 2009 1:44 am
by Crokoking
there are still some problems in Binary
to make it work 100% use this code:

Code: Select all

function bin:unpackvalue(s)
	local id = s:sub(1, 1)
	s = s:sub(3)
	local len = s:find(bin.one)
	local i = tonumber(s:sub(1, len-1))
	local v = s:sub(len+1)
	if id=="N" then v=tonumber(v)
	elseif id=="B" and v=="true" then v=true
	elseif id=="B" and v=="false" then v=false
	end
	return i, v
end

Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02

Posted: Mon Feb 23, 2009 8:01 am
by bartbes
Confirmed, don't know how I ever forgot that. New version will be out soon.
Anyone ideas for the client table?

EDIT: Where are my manners? Thanks!

Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02

Posted: Tue Feb 24, 2009 12:13 am
by philnelson
How can one test LUBE? Is it possible to put up some kind of quick start how to file at this point? I'd love to work on/use it for a project of mine, because it looks quite good already.

Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02

Posted: Tue Feb 24, 2009 7:59 am
by bartbes
Might be done in the future, as of now, try the docs: http://love2d.org/wiki/index.php?title=LUBE-Docs
(also included in the download)

Re: LUBE (Networking Library) v0.02.2 + LUBE-X v0.02

Posted: Tue Feb 24, 2009 7:41 pm
by philnelson
I've been using the docs. I can get LUBE to contact a remote client, but I can't get it to DO anything once it's done so. Here's what my code is doing (obviously IP ADDRESS is replaced with current IP):

Server:

Code: Select all

server:Init(26001)
server:setCallback(recCallback,connectCallback,disconnectCallback)
Client:

Code: Select all

client:Init(26001)
client:setCallback(recCallback,connectCallback,disconnectCallback)
client:connect('IP ADDRESS',26001,false)
client:send("hello!")
the connectCallback is

Code: Select all

function connectCallback()

	message = "connected!"

end
and I've put client:update() and server:update() in the update() function of love, but I the message never changes on the client side. Any ideas? My router shows me that the client is connecting to my machine.