• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

GMS 2.3+ json to ds_map convert?

duran can

Member
Hello, im sending user list data from server
GML:
buffer_write(buffer,buffer_string,json_encode(oyuncular_map));
// { "1": [ "duran", 0.000000, 0.000000, 0.000000 ] } like this
to client how i can convert to ds_map ?
this is not working
GML:
//create event
oyuncular=ds_map_create();
//sync event
...
oyuncular=json_decode(buffer_read(buffer,buffer_string));
 

FrostyCat

Member
Have you used show_debug_message to see what came through the other end? This is especially important if your string's length has any potential to blow through the MTU. As hot as JSON is, it's not so hot in terms of conciseness.
 

duran can

Member
Have you used show_debug_message to see what came through the other end? This is especially important if your string's length has any potential to blow through the MTU. As hot as JSON is, it's not so hot in terms of conciseness.
i can send parts by part 1024 byte as json,
like first 10 user 1th part
10-20 user 2th part
..etc
or my way totally wrong to sending user list.
 
Top