1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GM:S 1.4 Setup a mediation server for Gmnet to enable online lobby.

Discussion in 'Tutorials' started by The-any-Key, Feb 6, 2017.

  1. The-any-Key

    The-any-Key Member

    Joined:
    Feb 2, 2017
    Posts:
    1,522
    GM Version: GMS1.4
    Target Platform: ALL (but not HTML5)
    Download: https://the-any-key.itch.io/how-to-setup-a-gmnet-master-server-with-digitalocean
    Links: https://github.com/The-any-Key/GMnet-ENGINE/archive/Base-Template.zip

    Summary:
    This tutorial show how to setup a mediation server for the Gmnet engine to enable the online (WAN) lobby and connect to the servers.

    Tutorial:
    Download the Gmnet engine:
    https://github.com/The-any-Key/GMnet-ENGINE/archive/Base-Template.zip

    Download and follow the pdf file:
    https://the-any-key.itch.io/how-to-setup-a-gmnet-master-server-with-digitalocean
    Note that digital ocean cost $5 month. But if you use the link in the pdf you get $10 free on the account when you put in $5 from paypal. You can then test the mediation server for 3 months. You can close the server anytime.

    If you followed the pdf tutorial you should now have the Gmnet template open. And the IP for the mediation server is set in htme_config and use_udphp is set to true:
    upload_2017-2-6_14-13-4.png

    Run the project.

    On P1 start a server with the default settings.

    On P2 click online and check the online lobby that should now show the server.
    upload_2017-2-6_14-16-5.png
    On P2 click the server to join it. This is just a local test.

    To test it globally you should create an exe and send it to your friend on another continent (or a neighbour). Before you compile it you should go to htme_rom_menu and remove obj_dual_instance from the room. Else when you start the exe it will start more and more game windows for all eternity (or until your computer run out of memory, whoever comes first).

    NOTE:
    The Gmnet engine works on LAN without a mediation server.
     
    BenjiBenjamin123 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice