networking

  1. ManiacCoder

    Networking?

    I have been a little curious about Networking in GMS2. I have watched tons of tutorials on it, but I didn't quite get the picture... and when I tried to do networking, the entire game just crashed. so umm... and explanation on networking would really be helpful since I have no idea what I'm...
  2. D

    GMS 2 Losing connection after changing levels

    Like the title says, both players lose connection when I change rooms. Before hand, I'm new to networking and I'm spawning both of them on a setup room to verify if both players are working correctly. However, going to the first level makes the buffers not reach the host and the clients. I've...
  3. jackrucel

    Is it possible to change a Socket ID or chance how GameMaker generate Socket ID?

    Hi every one, I would like to know if is possible to change the Socket ID or change how GameMaker generate Socket ID for a server conection. I have a network_create_server() and a network_connect( ) on a separated project,a Server and a Client, every time a client connect to the server, the...
  4. M

    Question - Code async_load "ip" truncates ip address

    Greetings, I have been working through understanding networking, and doing so I made a little script that shows me the connection information of the clients. As a network engineer by trade, I like to see this sort of thing. One thing I noticed was when a client had a long an ip address, where...
  5. andev

    In what circumstance is 'size' in network_send_* ever not buffer_tell(buffer)?

    As the title asks. Why is it necessary to state the size of the buffer when sending a packet? When would you ever use a different value (and what happens if you do? I assume it crops the buffer but then again?)
  6. Bukmand

    Asset - Project MMO Engine

    Test the project: https://bukmand.itch.io/mmo-engine-gamemaker-source-code Features: Keyboard press networking send, instead of every frame. Server sided moving enemy. Global chat. Player vs player Coordinations are updated every while if any problem happens. Smart double login protection...
  7. Jihl

    Question - Code non_blocking_connection bug

    Hey there, I am using GMS 2 networking system to make an online game, but it fails to connect every so often, in a random manner. I use the configuration: network_set_config(network_config_connect_timeout, 3000) network_set_config(network_config_use_non_blocking_socket, 1) This is the message...
  8. M

    Followed networking tutorial, getting same issue

    buffer_read argument 1 incorrect type (undefined) expecting a Number (YYGI32) at gml_Object_Server_NetworkingEvent_1 (line 47) - buffer_read(buff, buffer_string) Happens, when I try to read from a buffer, called buff. How to resolve it?
  9. Y

    mobile networking

    Hi everyone, i created a .exe to be my a server and i have created a mobile client (android apk). I want to connect the mobile client with the server trough udp, i did it succefully when i connected the mobile to wifi and i used my public ip in the client to deliver the buffers to my server...
  10. D

    Weird Networking Problem

    Hi, I'm working on local multiplayer right now and until a few days ago, I've always been able to host or join a session with my prototype. But now I'm getting the following error: ioctlsocket failed with error: -1 Error (0x 2736): Could not set socket option I've already set my network to...
  11. E

    GML What is causing memory leak?

    Hello, i made a simple server for my online game, and the task manager is showing it is slowly increasing memory usage, when i open the server the memory usage is about 18.000kb and after around 10 hours, the server reaches 200.000kb or more. There's always around 40 players online. All the...
  12. DonMaklesso

    Changing from TCP to UDP

    So basically I have a basic multiplayer (server - client) in my game running on TCP protocol, but I wanted to see how it works on UDP. But when I do this (change from tcp to udp) client can't connect to the server, like it entered wrong IP (same result). Could you please tell me if I should...
  13. C

    Windows Networking Broadcast for Local Server Browser

    Whenever I create a Server on my desktop computer it creates a network that's visible to my laptop so I can connect to it. But doing it the other way around my desktop can't seem to see my laptops network. I've disabled all network firewalls. So, I'm not sure what the problem is. I have also...
  14. Shadowblitz16

    GMS 2 is there a way to send instance id's over network?

    hello I am getting into udp networking in gamemaker and I was wondering how to sync a object by a instance id? I keep getting back different ids then what is on the other end. I would think instance id's start from some base number and amount sequentially during the programs life but it seem...
  15. Wizirdi

    HTML5 Websocket Glitch? network_connect returns 0 with no server

    SOLVED Using the following code... client = network_create_socket(network_socket_ws); server = network_connect(client, "192.168.0.1", 64198 ); So basically... network_connect is suppose to return less than zero is no server is running. However, it returns 0 no matter WHAT. Even if there's no...
  16. E

    GML How to allow Peer to Peer connection

    Hello, let's say you have a master server that all it does is match players with each other by sending their IP. How would you make those matched players connect to each other? Wouldn't they have to have a port opened? Is there a way to make this connection without the players needing to...
  17. C

    P2P Networking

    Hi. I'm trying to figure out how to make P2P connection. I have found no information, most of the documentation and tutorials use a server-client architecture, with different projects for the server and client or having a client to host the server. Thanks in advance.
  18. Jihl

    GMS 2 Socket question!

    Hey there! I have an unusual question about sockets. Is it only neccesary to use the network_destroy function when I need to change a socket type? When should I use this function in game maker? Does it have any importance if I want to connect to different servers over the time? Thanks!
  19. syscall

    GMS 2 Questionable anti-cheat & multiplayer aspects

    Hello, This might be a silly topic, as it might turn into nerd talk. Let's keep it simple. Anyways, from what I have gathered (quickly), there are no anti-cheat features in GMS2, I was just thinking about it. (The closest feature I found is obfuscation when deploying to HTML5.) Since I am...
  20. Gamerev147

    GMS 2 Post a String to Online Server?

    I'm using an online server called "x10hosting.com/". I'm able to make a text file on the server and get data from it in GMS2. However, I would like to upload data to this text file on my server using GMS2. Is there anyway this can be done? Any help is appreciated.
Top