GMnet-ENGINE icon indicating copy to clipboard operation
GMnet-ENGINE copied to clipboard

Error on htme connection.

Open Toomeme opened this issue 5 years ago • 6 comments

I followed the tutorial, and searched around for a solution, but came up empty. The host can play the game just fine, but when a second player connects successfully, this error comes up.


############################################################################################ FATAL ERROR in action number 1 of Async Event: Networking for object obj_htme:

instance_exists argument 1 incorrect type (undefined) expecting a Number (YYGI32) at gml_Script_htme_recieveVarGroup (line 69) - if ((is_undefined(instance) || !instance_exists(instance))) { ############################################################################################

Toomeme avatar Oct 04 '19 19:10 Toomeme

Try use the template from here: https://the-any-key.itch.io/gmnet-base-template Also note that the marketplace version is outdated.

The-any-Key avatar Oct 17 '19 05:10 The-any-Key

Thank you for the reply, however the issue still persists. I did as you said and the same error came up when trying to connect.

Toomeme avatar Oct 18 '19 00:10 Toomeme

And you have not changed anything, you just try the demo? Also note that you should use Game maker 1.4.1804. The 1.4.9999 got nasty network bugs.

The-any-Key avatar Nov 05 '19 05:11 The-any-Key

I hope this isn’t too late but I’ve seen a similar error and to my knowledge the error occurs when two instances(of the same ID) are calling the mp_MapsyncIn at the same time and thus are both trying to write to the same value my guess would be this is happening in your case because you are missing the: if (htme_isLocal) check before the map sync in is called

Caboosie avatar Feb 11 '20 16:02 Caboosie

I use gms2, it can work, thank you.

droog126 avatar Jul 26 '20 07:07 droog126

And you have not changed anything, you just try the demo? Also note that you should use Game maker 1.4.1804. The 1.4.9999 got nasty network bugs.

Good to know the 1.4.9999 is bugged. been trying to use it for a project and running into a ton of random issues

DanBradbury avatar Apr 12 '21 01:04 DanBradbury