• 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!

HTML5 HTML5 - Remote Server Networking Functionality

Kibeth

Member
Hi all,

About 2 years ago I successfully built a POC MMORPG using Gamemaker Studio 2 HTML5 export.

I've long since lost the server side code for this, but I still had the client side gamemaker project - so I booted it up and tried to reproduce the old functionality. I was using the system tied into this udemy - https://www.udemy.com/course/gamemakerstudio2multiplayer/ - and it used socketio to send player locations etc, it worked pretty well with a lot of different functions.

I was using one VPS server to run the server side code, and another to host the HTML5 gamemaker content (client)

I've tried to reproduce this over the last 3 weeks, but something seems to have changed, probably due to this being a very old method. But long story short, I receive either a SSL error, or a mixed content error depending on settings. Anything that does come through to the server logs is just symbol gibberish.

======================

My second attempt was using - https://marketplace.yoyogames.com/assets/7910/socket-io-3-0 - newer, but still old

Very similar results here, so I started to think about issues with my servers setup.

For the client, I'm hosting the gamemaker HTML5 embed on an IPFS server, this should really have everything I need to send and receive the sockets.

Server wise I've got a linux server set up with code to receive the socket connections on port 5000, this server does have a domain name and a valid SSL certificate - as does the IPFS client server.

As far as I can tell, outside some sort of SSL misconfiguration - this should be working

======================

Lastly I purchased https://marketplace.yoyogames.com/assets/7256/multiplayer-walking-and-chat - but this was using a gamemaker export based client and would not fit my needs.

======================

Finally the question:

Is it possible for me to make a multiplayer HTML5 game nowadays which needs to talk to a remote server, or have times moved on? It looks like the last option open to me is native GMS2 websockets, but will these just face the same challenges with SSL/mixed content?
 
Top