I'm trying to get online multiplayer to work, but there always seems to be a problem. I made a post before about network not working on gx games and that was resolved thanks to TabularElf. But now I have more problems.
First, nothing worked when I was using network_create_server with network_type_ws. But that was an easy fix because all I had to do was use network_create_server_raw and the other functions that go with it.
Then I had to figure out the stuff with the ip/url, and when I got that right I was able to connect to different devices... accept when I tried it on gx games. It always gave an error on the client side saying something like "Can't connect through a insecure web socket" or something so I assumed it was because I used the "raw" functions.
Everything still worked locally until something happened (I don't really know what I did to make it stop working). One day I was testing all the network stuff, and it wouldn't work right. It made the connection just fine and there were no errors, but in the console it said something like "Receiving network data, but gms unpack doesn't like it! dropping!".
What is happening?!?
Also I did publish the game (it's not finished) so if you want to try it out you can. (its still fun even without online support)
https://gx.games/games/2ggal7/mini-splatoon
It's a 2d version of Splatoon.