Android Error

Posted by SUP3RBOB
Sorry to bother you guys. I am making my game for Android and when I export to an apk to test it, it keeps giving me an error. When I test it on Windows it works fine. I am using the All version of game maker server.

FATAL ERROR in
action number 1
of Step Event0
for object GMS:

Array index must be +'ve
at gms_Scirpt_wle_step

stack frame is
gml_Script_wle_step (line 0)
gml_Script_wle_tick
gml_Script_XWindow_totalstep
gml_Script_gms_step
gms_Object_GMS_Step_0

Replies (17)

Last message on 28 Jul 2018

Size43 (Administrator) on 28 Jul 2018, 16:34:36
Did you add any custom windows? This is an error in the windowing system that GameMaker Server uses.
SUP3RBOB (Topicstarter) on 28 Jul 2018, 18:28:26
Thanks man! For some reason I was using global.__xkb_open = true; to turn on the keyboard. Thanks to anyone else who tried to help too.
Walt on 26 Jul 2018, 18:12:50
Have you called gms_network()?
SUP3RBOB (Topicstarter) on 26 Jul 2018, 21:20:04
Yes I have
jdev on 26 Jul 2018, 16:53:52
Hi,

If you are using 2.1.2, please switch back to 2.1.1 and let me know if this issue persists.

Thank you.
SUP3RBOB (Topicstarter) on 26 Jul 2018, 17:21:00
It gives me the error on both 2.1.2 and 2.1.1. I tried to use a newer version of GM (1.4.1773) but instead of that error it says "constant name @@SleepMargin is not valid".
https://i.imgur.com/oBM1xu5.png
jdev on 26 Jul 2018, 20:39:41
Hi,

Please can you call gms_info_isconnected() and give me the result.
SUP3RBOB (Topicstarter) on 26 Jul 2018, 21:19:36
When I launch the game it says I'm not connected then it gives me the error
Walt on 26 Jul 2018, 21:21:24
Have you registered the game on the website?
SUP3RBOB (Topicstarter) on 26 Jul 2018, 21:23:18
Yeah. The game works fine when I run it on Windows
jdev on 27 Jul 2018, 02:37:29
Are you using the (All) version or the (Windows) version of the extension?
SUP3RBOB (Topicstarter) on 27 Jul 2018, 02:39:00
I am using the All version
jdev on 27 Jul 2018, 14:45:20
It seems that you are not connected on Android based on the results you have given me.

Put this code in your GMS object:
gms_connect();
SUP3RBOB (Topicstarter) on 27 Jul 2018, 16:02:31
It still gives me the same error. Putting that code didn't really change anything
jdev on 27 Jul 2018, 16:36:07
1) Try clearing the compiler cache and rebuilding.
2) Try using File > Save As to save it as a new project and try building.
3) Try creating a new project and importing everything from your original project into it, then building.

Please let me know if the issue still occurs after you have completed all of these steps.
SUP3RBOB (Topicstarter) on 27 Jul 2018, 17:49:22
I tried all of those but still couldn't get any luck
jdev on 28 Jul 2018, 14:51:53
Hi,

I've been reading online and this is apparently an issue with GameMaker. Try reinstalling your GameMaker or updating it and let me know if this issue persists.