Question - Code Windows build not compiling changes

Discussion in 'GameMaker Studio 2 Community Tech Support' started by p4stoboy, Nov 6, 2018.

  1. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    My game has randomly stopped selecting obj_attackUp - every other drop works fine (I've run like 200 drops to make sure it wasn't just unlucky). Any ideas?? If I spawn one manually it works fine =\

    EDIT: After some further investigation - there is also a sprite that I've changed which is still using the old one when i create the object.
    Also, in the issue from the OP - sometimes obj_player.kills mod 10 DOES == 0 but it drops nothing (I'm guessing it's selecting obj_attackUp and something is amiss).

    These issues are occurring on a windows build (I'm working on a mac). If I run it on the mac none of the issues are present.
     
    Last edited: Nov 6, 2018
  2. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    After some further investigation - there is also a sprite that I've changed which is still using the old one when i create the object.
    Also, in the issue from the OP - sometimes obj_player.kills mod 10 DOES == 0 but it drops nothing (I'm guessing it's selecting obj_attackUp and something is amiss).

    These issues are occurring on a windows build (I'm working on a mac). If I run it on the mac none of the issues are present.
     
  3. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,233
    Have you cleared the compiler cache and tried again? The "broom" icon at the top of the IDE will clear the cache...
     
  4. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    I had not, I just tried it then and it didn't help though :(
     
  5. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,233
    Okay, that's weird! The symptoms you describe are perfect examples of what happens when you build with a stale compiler cache. Have you tried simply calling the choose function in a for loop and outputting the results, without it actually being part of the instance create function? I'd also add in multiple show_debug_message() into the code so you can see what is happening (output the values of "obj_player.score", "obj_player.kills", etc...), or add a breakpoint and then step through the code a line at a time and check to see what is running and what isn't.
     
  6. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    Thanks man, that's my next step but I'm hesitant to do it when it compiles fine for mac. I'm guessing it is a compiler issue. I cleared the cache with it set to mac and then when i switched to windows it wasn'y an option but I'm guessing it's the same cache. I couldn't find anything related in the compiler app on the windows machine.
     
  7. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,233
    Yeah, the fact it runs fine on Mac does make it look like it's a compiler issue somewhere, but it also suggests that the issue may not be with the "choose" function itself but elsewhere... When you've finished debugging, file a bug with a link to the project, and if you can pinpoint exactly what's happening then include those details too (but still file the bug even if you can't give more details than those given here).
     
  8. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    WIll do. It's actually bizarre, this isn't a complex project and in the windows version that doesn't work the player will all of a sudden start one hitting instead of two hitting the enemies as if the attack variable has incremented even though no pickup dropped, however the players stats are printed at the top of the screen, they all update fine but the attack one doesn't move (on mac it increments fine and displays it).

    I also don't have the option to clear compiler cache when it's set to windows compile?
     
  9. Dan

    Dan YoYo Games Staff YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    172
    I strongly suspect you're seeing https://bugs.yoyogames.com/view.php?id=29998 - if you try opening this project in the 2.2.1 Beta release it will likely offer to repair the project for you. Once this is done, you should be fine.

    If 2.2.1 doesn't solve the issue, File > Export and send us the project .yyz along with your compiler log when building the project for Windows, please.
     
  10. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    Okay I have tried to just get it to spawn an attackUp object on game start and it worked on mac but not Windows. I think the Windows compiler is using an ?outdated project file?

    I'm downloading the beta now Dan, thanks for that - I already submitted a bug before I realised the extent of the issue though so it's probably not a useful report.
     
  11. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    My new compile log post-update:

    e- works on mac though lol.
     
  12. Dan

    Dan YoYo Games Staff YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    172
    Can you attach that /private/tmp/PKInstallSandbox.y3BMLw/tmp/6f40871fd0214723a86c4407a599bb99.yyg.saencryptedreport file to your ticket, please. This will tell us the file causing the issue.
     
  13. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    I can but I can’t work out how to edit my ticket.
     
  14. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    Okay I found it, I can't find that file on my mac, I'm guessing it's on the windows machine??? I'll have a look in a minute.
     
  15. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    Okay that file is gone, I tried to compile again and it threw this:
    Which I have attached to ticket #151282.
     
  16. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    Is anyone able to advise on how long a response to a support ticket normally takes? I’ve had no movement on this issue since I reported it and in the meantime I can’t compile =\
     
    Last edited: Nov 10, 2018
  17. p4stoboy

    p4stoboy Member

    Joined:
    Nov 6, 2018
    Posts:
    15
    Hi, this support ticket has been open for 2 months now with no response?? Does the license I have paid for include support or what? I literally cannot compile my game.
     

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