• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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

Redemption Seeker
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