B
Booyaa
Guest
Hello. I am new here, but do not worry. I am not beginner with game maker. I remember old hammer logo. I just did not use yoyogames forum.
I made some not very well working games for my self and only problem is time and graphic. I decided to make some game with networking. First game was disaster as usually. But I learned at least something and I hope second try will be better. It should be "simple" text based "M"MO, better only MO if somebody will play it, but I have some questions about networking and want to ask for best way. I do not want to fail hard again. The system was a mess.
(I have one project for server and one for client, I watched some tutorials.)
First question is about when server receive two buffers at the same time. Can it happen and can server handle it? Will first buffer overwrite the second? I use async_load and received buffer is stored to local variable buffer and then I have a script that reads the buffer. I did not understand if server manage every buffer seperately if they will come in same time and when I am using just local variable.
Second time is about sockets. I used ds_list, but I want to ask about something and it is actually related to first question. I want to send some data back to same client, so I store socket to variable socket_temp that is used later in a code. I want to ask if it is better for client to store socket id to buffer (last information) and then script will read the buffer, find the socket id and send some data back to the same client.
It is simple system, but first question is something I did not understand with networking.
I made some not very well working games for my self and only problem is time and graphic. I decided to make some game with networking. First game was disaster as usually. But I learned at least something and I hope second try will be better. It should be "simple" text based "M"MO, better only MO if somebody will play it, but I have some questions about networking and want to ask for best way. I do not want to fail hard again. The system was a mess.
(I have one project for server and one for client, I watched some tutorials.)
First question is about when server receive two buffers at the same time. Can it happen and can server handle it? Will first buffer overwrite the second? I use async_load and received buffer is stored to local variable buffer and then I have a script that reads the buffer. I did not understand if server manage every buffer seperately if they will come in same time and when I am using just local variable.
Second time is about sockets. I used ds_list, but I want to ask about something and it is actually related to first question. I want to send some data back to same client, so I store socket to variable socket_temp that is used later in a code. I want to ask if it is better for client to store socket id to buffer (last information) and then script will read the buffer, find the socket id and send some data back to the same client.
It is simple system, but first question is something I did not understand with networking.