tables within tables using lube lube.bin: pack/unpack
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- silver_hawk
- Prole
- Posts: 36
- Joined: Mon Feb 27, 2012 2:19 pm
tables within tables using lube lube.bin: pack/unpack
I'm trying to send tables within tables with lube, and I tried using different seperators and same seperators, but none of it seems to work, anyone got experience doing this stuff? I really want to send tables within tables.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: tables within tables using lube lube.bin: pack/unpack
What is your code?
Help us help you: attach a .love.
- trubblegum
- Party member
- Posts: 192
- Joined: Wed Feb 22, 2012 10:40 pm
Re: tables within tables using lube lube.bin: pack/unpack
You just need a decent JSON lib.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: tables within tables using lube lube.bin: pack/unpack
There is TSerial. Or this thread about table serialization in the Lua Users wiki.
When I write def I mean function.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: tables within tables using lube lube.bin: pack/unpack
There's a reason lube.bin is no more.
Re: tables within tables using lube lube.bin: pack/unpack
- Attachments
-
- Serialize.love
- Contains serialize.lua and a little main.lua showing how to use it :)
- (2.22 KiB) Downloaded 57 times
Write the ö of Löve with Alt+numPad(148) or Alt+numPad(153)
- silver_hawk
- Prole
- Posts: 36
- Joined: Mon Feb 27, 2012 2:19 pm
Re: tables within tables using lube lube.bin: pack/unpack
Ty all of you I will try to read on some of the links, otherwise I will provide my code but maybe I could learn something usefull
- silver_hawk
- Prole
- Posts: 36
- Joined: Mon Feb 27, 2012 2:19 pm
Re: tables within tables using lube lube.bin: pack/unpack
lube.bin is no more? I got an old version of lube or something?bartbes wrote:There's a reason lube.bin is no more.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: tables within tables using lube lube.bin: pack/unpack
You must have, check out the repo.
- silver_hawk
- Prole
- Posts: 36
- Joined: Mon Feb 27, 2012 2:19 pm
Re: tables within tables using lube lube.bin: pack/unpack
TSerial did the trick very easy and effectively, everything is working fine now (except for the game ofc. but that is my fault), but packages are sent packed/unpacked properly now, ty for your time
Who is online
Users browsing this forum: Bing [Bot] and 93 guests