GMS 2 What does _init_action stand for?

Discussion in 'Programming' started by PixelFrank1, Oct 8, 2019.

  1. PixelFrank1

    PixelFrank1 Member

    Oct 3, 2017
    Hi guys!

    Since september I have the " runner.exe exited with non-zero status (-1073741819) " error, So I looked into the output and Syntax error looking for answers, and I can see that I have this syntax error:

    __init_action at line 4, 8 : variable __argument_relative only referenced once
    __init_action at line 2, 8 : variable __part_syst only referenced once

    Is this related to the problem?
  2. robproctor83

    robproctor83 Member

    Sep 30, 2019
    No, that is just telling you that you have created a variable which is only used once. It will not cause your game to crash. There are multiple reasons that you can get the error that is crashing your game, unfortunately it is too ambiguous to really help you with. A quick Google search for that error shows that most people seem to run into it when using too much memory. It looks like it is a bug with GM itself.

    My suggestion would be to retrace your steps if possible to when this began. If you have some gigantic loop, or something you think could be filling up your memory too quickly then I would try and comment that out temporarily while you do some tests. If you can't think of anything then start cutting your game up into parts that you can test and start adding debugging so you can see what is going on. Add the debug overlay, add breakpoints in important key areas that may be possibly causing problems and start tearing things apart until you can pinpoint the exact source of the issue. Once you have found the code that is the problem report back here with it and it's possible that someone can give you more specific help.

    Best of luck
  3. obscene

    obscene Member

    Jun 21, 2016
    Show_debug_message() is your friend. Put messages in all your startup scripts and objects to see at what point your game reaches before crashing. Also setting a breakpoints and manually advancing your game line by line can help when you get closer to the problem.

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