Compile Extensions
Error : gml_Script_gms_instance_sync(28) : "argument" is a global built-in and cannot be used as an instance variable
finished.
I tested in GameMaker Server 2.1.5 and 2.1.4 and 2.1.3 - GameMaker Studio (All vesrsion)
I use GM:Studio 1.4.9999.
But it's okay in only windows version!
Replies (15)
Last message on 18 Jun 2019
Size43
(Administrator)
on
21 May 2019, 16:12:16
What version are you compiling for?
mpgame
(Topicstarter)
on
22 May 2019, 16:08:48
in both Windows & android.
I imported your example "VS Mode - GML.gmz" and compiled it. I get this error:
Error : gml_Script_gms_instance_sync(28) : "argument" is a global built-in and cannot be used as an instance variable
after that, I removed the extension from project and Imported all-version extension again. this time project compiled properly but when the game opened this massage was appeared "Not connected!"
Size43
(Administrator)
on
1 Jun 2019, 19:43:54
Sounds like I might have forgotten to update the extension inside the example, I'll make sure to do that for the next release.
Did you register your GameID on this site? (it can change after importing the example)
Also, did you add the gms_network() to the networking event after switching to the all-version?
mpgame
(Topicstarter)
on
3 Jun 2019, 16:42:48
Yes, I added gms_network().
I generated a new gameId and registered a new game in the my account.
Still this message appeared in the game "Not connected!".
Also, this message appeared in the compiler:
Socket timeout connecting
Socket failed to connect to server!
mpgame
(Topicstarter)
on
3 Jun 2019, 17:43:39
I dont know why "gms_info_isconnected()" always return false.
Size43
(Administrator)
on
18 Jun 2019, 13:05:28
Seems like your game somehow has trouble connecting to the server. Do you have any firewall / antivirus that might be blocking the connection for some reason?
mpgame
(Topicstarter)
on
18 Jun 2019, 13:15:48
No this is not problem!
because it's okay in "only windows" extension!
problem appears in "all version" extension. I tested in pc & android device and "gms_info_isconnected()" always return false.
Size43
(Administrator)
on
18 Jun 2019, 13:22:27
Could you try the following?
Edit the *.gml file in the extension's folder, and search for "#define gms_connect". Then add a show message here:
var ip = network_resolve("gamemakerserver.com");
if(ip == "" or ip == "0.0.0.0") ip = network_resolve("http://gamemakerserver.com");
if(ip == "" or ip == "0.0.0.0") ip = network_resolve("www.gamemakerserver.com");
if(ip == "" or ip == "0.0.0.0") ip = network_resolve("http://www.gamemakerserver.com");
// HERE:
show_message("Server IP: " + string(ip))
Then run the game (using the all version), and let me know what IP it shows you in the message.
mpgame
(Topicstarter)
on
18 Jun 2019, 13:29:34
116.203.50.5
Size43
(Administrator)
on
18 Jun 2019, 13:38:14
Alright, I'm out of ideas then.
The IP is correct, so the next thing that happens is the call to network_connect_raw. GM:Studio must then be printing "Not connected!", because that message doesn't exist anywhere in the extension.
So I'm guessing then that the network_connect_raw is somehow failing, which might be a bug in GM:Studio, which is unfortunately out of my control.
mpgame
(Topicstarter)
on
18 Jun 2019, 13:42:33
okay. but why "only windows" extension works properly?
I think problem is inside of "all-version" extension.
Size43
(Administrator)
on
18 Jun 2019, 13:44:04
The Windows version uses its own Dll for connecting to the server, while the all version uses GM:Studio's networking functions. It seems like GM:Studio's networking functions are somehow not working correctly.
I can't fix this, because Dlls only work on windows. So I can't make an all version that doesn't use the GM:Studio networking functions.
mpgame
(Topicstarter)
on
18 Jun 2019, 13:49:44
aha. thanks.
Do you have any idea which version of game maker studio works properly with "all-version" extension?
I use GM:Studio 1.4.9999 now.
I know GM:Studio 1.4.1598 also have problem with new extensions because it's very old.
Size43
(Administrator)
on
18 Jun 2019, 13:52:01
Sorry, I don't know. I don't have this bug.
It might be a combination of GM networking + something else, like your wifi or ISP which triggers the bug.
mpgame
(Topicstarter)
on
18 Jun 2019, 13:57:04
that's strange. Because GM:Studio 1.4.1598 + GM:Server 1.9.3 works in all-version!
Anyway thanks.