Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on htme connection. #81

Open
Toomeme opened this issue Oct 4, 2019 · 6 comments
Open

Error on htme connection. #81

Toomeme opened this issue Oct 4, 2019 · 6 comments

Comments

@Toomeme
Copy link

Toomeme commented Oct 4, 2019

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))) {
############################################################################################

@The-any-Key
Copy link
Collaborator

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

@Toomeme
Copy link
Author

Toomeme commented Oct 18, 2019

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.

@The-any-Key
Copy link
Collaborator

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.

@Caboosie
Copy link

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

@droog126
Copy link

I use gms2, it can work, thank you.

@DanBradbury
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants