1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GMS 2 HELP-Variable problem but i don't understand

Discussion in 'Programming' started by Yinyun91, Nov 2, 2019.

  1. Yinyun91

    Yinyun91 Member

    Joined:
    Nov 2, 2019
    Posts:
    3
    a beta game was released after the gamemaker stopped supporting it.
    it still has big bugs and it can't continue
    im from China and i dont understand the error message


    ___________________________________________
    ############################################################################################
    FATAL ERROR in
    action number 1
    of Step Event0
    for object bk15:

    Variable bk15.bl1(100056, -2147483648) not set before reading it.
    at gml_Object_bk15_Step_0
    ############################################################################################
    --------------------------------------------------------------------------------------------
    stack frame is
    gml_Object_bk15_Step_0 (line -1)
     
  2. YellowAfterlife

    YellowAfterlife ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    2,423
    The error message says that this object (bk15) does not assign the variable (bl1) before trying to use it. If the game is yours, it would need
    Code:
    bl1 = ...
    added in Create event.
     
  3. Yinyun91

    Yinyun91 Member

    Joined:
    Nov 2, 2019
    Posts:
    3
    OHHHHHHH Great Thanks!!!!!!!!!!!!!!!!!!!!!
    i solved it , thank you . i'm so excited

    however, i haven't learn this language very well.
    what about this problem..?
    i have confused for several days..


    ___________________________________________
    ############################################################################################
    FATAL ERROR in
    action number 1
    of Create Event
    for object bk16:

    Push :: Execution Error - Variable Index [0,2] out of range [1,2] - 5.<unknown variable>(100031,2)
    at gml_Object_bk16_Create_0 (line 4) - while (start.but[num])>0{
    ############################################################################################
    --------------------------------------------------------------------------------------------
    stack frame is
    gml_Object_bk16_Create_0 (line 4)
    called from - gml_Script_instance_create (line 6) - return instance_create_depth( argument0, argument1, myDepth, argument2 );
    called from - gml_Object_fting_Step_0 (line 4) - instance_create(x,y,start.bkobj)
     
  4. YellowAfterlife

    YellowAfterlife ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    2,423
    This says
    Code:
    Variable Index [0,2]
    that you are reading `but[2]`,
    Code:
    out of range [1,2]
    but the array is only 2 items long,

    so the last item you could read would be index (length-1) = (2-1) = 1
     
  5. Yinyun91

    Yinyun91 Member

    Joined:
    Nov 2, 2019
    Posts:
    3
    RRRRRRREEEEEEEEEEEAAAAAAAAAALLLLLLLLLLLLLLLLLLLLLLLLLLYYYYYYYYYYYYYYYY THANK YOU!
    how nice you are!!
    thank you very much!!!XD
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice