• Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!

networking

  1. 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?
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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.
  11. 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!
  12. 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...
  13. 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.
  14. G

    Android / Amazon Fire How to send myself a file from a mobile device?

    Until now, I've been using the http_post_string() function to allow testers to send me debug logs from their mobile devices. (It sent to a PHP script on my web server, which then emailed me a copy.) It appears that we can't use http_post_string() within Android any more, although GameMaker...
  15. matharoo

    GML Networking Tutorials (GMS 2 and 1.4)

    GM Version: GMS2 (also works with 1.4) Target Platform: ALL Download: Part 2: https://www.dropbox.com/s/5cdb5wc0yxtmwwv/networking.yyz?dl=0 Part 3: https://www.dropbox.com/s/1pd9cpydjbsnfoj/networking-two.yyz?dl=0 Summary: They're three videos, where the first one covers buffers, second one...
  16. Jihl

     Servers question

    Hey there! I need to make a mobile app, it has to communicate with a server in real time and I need this server to be online with a Google VPS virtual machine. Someone in the forum told me that, to run a GM's game executable (the server would be a desktop executable) you need a video card. So...
  17. Jihl

    Android / Amazon Fire Setting up a server for android App

    Hey there! I am going to create an Android App which will communicate with a server using GM Networking system. My question is: Is there a problem if I make 2 projects, one for the android app and the other one (desktop windows) to be run in a virtual machine that will hold the server? Would...
  18. Jihl

    Android / Amazon Fire GMS2 Server use with google cloud VPS question

    Hey there! I am just one question away from buying the licence to export to Android and IOS. My app needs to interact with a server 24/7, I've seen that Google offers some server tools to use, also Amazon and other big companies. So the question is, is there a problem if I want to run the...
  19. T

    Legacy GM Doing network functions: can you find if a computers port is free?

    Hi. I am looking into multi-threading. Having set up a project handling networking, I want to integrate it with "execute shell" (a marketplace asset which allows loading up a second instance of a project) The two versions will communicate with each other, and then I'll see how it can be handled...
  20. NNNIKKI

    GMS 2 Some networking error

    I'm pretty sure this is trivial, since this is the first time I'm implementing networking... Resizing swap chain...Error (0x 2740): Can't bind port Setting SO_REUSEADDR and retrying...Error (0x 271d): Can't bind port even with SO_REUSEADDR I can provide more code if it's needed but I don't...
Top