Search found 7 matches

by 20_NickName_20
Tue Apr 26, 2022 11:42 am
Forum: General
Topic: How to serialize ANY table?
Replies: 12
Views: 8198

Re: How to serialize ANY table?

You can not comment out the line, because then bitser will effectively stop writing out stuff. Instead you need to modify the "types" table on line 246, which defines the serializer function to use for each data type, so something like this: local types = { number = write_number, string =...
by 20_NickName_20
Mon Apr 25, 2022 6:26 pm
Forum: General
Topic: How to serialize ANY table?
Replies: 12
Views: 8198

Re: How to serialize ANY table?

I already tried it but it didn't work. (i think after this, function returns an empty string)
by 20_NickName_20
Mon Apr 25, 2022 1:23 pm
Forum: General
Topic: How to serialize ANY table?
Replies: 12
Views: 8198

Re: How to serialize ANY table?

darkfrei wrote: Mon Apr 25, 2022 7:13 am If you have no userdata or don't need to save it, just add the exception for it in line bitser.lua:280
How can I do it?
by 20_NickName_20
Mon Apr 25, 2022 4:45 am
Forum: General
Topic: How to serialize ANY table?
Replies: 12
Views: 8198

Re: How to serialize ANY table?

Okay, i think this works, but now i get this error: Error bitser.lua:280: cannot serialize type userdata Traceback [love "callbacks.lua"]:228: in function 'handler' [C]: in function 'error' bitser.lua:280: in function 'serialize_value' bitser.lua:221: in function <bitser.lua:190> bitser.lu...
by 20_NickName_20
Sun Apr 24, 2022 9:01 pm
Forum: General
Topic: How to serialize ANY table?
Replies: 12
Views: 8198

Re: How to serialize ANY table?

Does it work for tables-structures (when index is string)?
by 20_NickName_20
Sun Apr 24, 2022 6:32 pm
Forum: General
Topic: How to serialize ANY table?
Replies: 12
Views: 8198

How to serialize ANY table?

How to serialize ANY table? I sure this table contains only other tables and simple values (string, nil, number)
by 20_NickName_20
Thu Apr 21, 2022 3:19 pm
Forum: General
Topic: Multiple clients
Replies: 2
Views: 2515

Multiple clients

I am working on game with multiplayer

How to make it possible to connect more than 1 client?

Or how to read from multiple clients at time?