GMS 2 So GameMaker decided a function is a local variable. I can't Even.

Discussion in 'Programming' started by ApselTheBlue, Jan 10, 2019.

  1. ApselTheBlue

    ApselTheBlue Member

    Joined:
    Jul 6, 2016
    Posts:
    31
    so this is the code: leading up to the error

    /// @description Draw
    var xx = __view_get( e__VW.XView, 0 ),
    yy = __view_get( e__VW.YView, 0 ),
    ww = __view_get( e__VW.WView, 0 ),
    hh = __view_get( e__VW.HView, 0 ),
    alpha = min(screenFade,obj_Main.screenfade);
    draw_background_tiled_ext(bg_Title,scr_round(xx),scr_round(yy),1,1,c_white,alpha);
    var space = 16;
    draw_set_font(GUIFont);
    draw_set_color(c_white);



    image: https://imgur.com/a/ntNnERx


    Why? I really have no idea.
     
  2. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    783
    What error? Where is the compiler output saying anything there is an error?
    Or are you just saying because the bottom bar turned dark red? That had been know to happen on occasion, but does not actually throw any error or block the compile from working.
    Please explain what you are having a problem with as it is not clear from that bit of code, or the screenshot you provided.
     
  3. IndianaBones

    IndianaBones Member

    Joined:
    Jul 5, 2016
    Posts:
    2,068
    You probably have USA spelling turned off in the options. Turn it on or spell the word as colour.
     
  4. ApselTheBlue

    ApselTheBlue Member

    Joined:
    Jul 6, 2016
    Posts:
    31
    I'll try that.
    also
    I am having an issue with the game compiling as well. I just tried reinstalling game maker. Testing results now. I figured this was the issue since it shows up as a syntax error.
     
  5. ApselTheBlue

    ApselTheBlue Member

    Joined:
    Jul 6, 2016
    Posts:
    31
    I don't actually get an error message. It just says Run Program Failed. If it happens again I'll post that as well
     
  6. ApselTheBlue

    ApselTheBlue Member

    Joined:
    Jul 6, 2016
    Posts:
    31
    Yup

    Writing Chunk... SCPT
    Writing Chunk... DBGI
    Writing Chunk... INST
    Writing Chunk... LOCL
    Writing Chunk... STRG
    Writing Audio Group audio_music
    Writing Audio Group audio_voice
    Stats : GMA : Elapsed=86275.2686
    Stats : GMA : sp=996,au=189,bk=36,pt=1,sc=275,sh=25,fo=7,tl=0,ob=391,ro=23,da=10,ex=3,ma=3956,fm=0xC000B31D7DFC0FB4

    C:\WINDOWS\system32\cmd.exe exited with non-zero status (1)
    elapsed time 00:04:41.3962142s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.1.287/bin/Igor.exe" -options="C:\Users\Apsel\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -- Windows Run started at 01/10/2019 13:05:57
    "cmd" /c subst Z: /d
    elapsed time 00:00:01.0470702s for command "cmd" /c subst Z: /d started at 01/10/2019 13:10:39
    "cmd" /c subst Y: /d
    elapsed time 00:00:00.2659807s for command "cmd" /c subst Y: /d started at 01/10/2019 13:10:40
    "cmd" /c subst X: /d
    elapsed time 00:00:00.1949864s for command "cmd" /c subst X: /d started at 01/10/2019 13:10:40
    FAILED: Run Program Complete



    trying deleting the cache now
     
  7. BaBiA Game Studio

    BaBiA Game Studio Member

    Joined:
    Jun 20, 2016
    Posts:
    783
    Where is the top part of the output? There is normally a lot more than that, and the last person that had a FAILED: Run Program Complete at the end of the compile had not spotted the error further up the output. Can you show us the whole of the output, not just the end of it?
     
  8. ApselTheBlue

    ApselTheBlue Member

    Joined:
    Jul 6, 2016
    Posts:
    31
    It was pretty long so I figured posting all of it wouldn't be a good idea but ok. Ill have to open the game again
     
  9. ApselTheBlue

    ApselTheBlue Member

    Joined:
    Jul 6, 2016
    Posts:
    31
    Update: I tried reloading the project. As it turns out, it somehow got corrupted. Luckily, I had a backup. It seems that the error I brought up wasn't the culprit though I do think that it should be addressed. It's rather irksome.
     

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