Question - IDE Adding new resource in resource manager causes errors

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Remix The Idiot, Sep 29, 2019.

  1. Remix The Idiot

    Remix The Idiot Member

    Joined:
    Sep 29, 2017
    Posts:
    15
    I'm getting a strange problem whenever I add a new resource in my game maker projects. It wasn't a big issue before, but now with over hundreds of rooms, objects, sprites, etc., it's becoming more and more annoying.

    Basically whenever I add a new resource like a sprite or an object, it's like game maker doesn't update all object indexes or something. So whenever I add a new sprite and test the game, suddenly all my objects display the wrong sprites and whenever I add a new object, some instances in the room change.

    At the start this wasn't a big issue, I just manually reloaded the few sprites and objects I had. Deleting the code and pasting it back for objects did the job. And just reopening sprites and closing them worked nicely. But now doing that can waste hours of development time with how big my resource tree has become.

    The effects vary from minor inconvenience to an actual pain in the back side. I cant quite point it out, it seems pretty random, all I know is that this happens whenever I create a new resource.

    Any ideas? If it helps I use the steam version of GMS2 and run all my games on YYC. And yes, as far as I'm aware, all my things are up to date.
     
  2. Ricardo

    Ricardo Member

    Joined:
    Jun 20, 2016
    Posts:
    189
    That's the project cache. Every time you add/remove a resource make sure to click the Clean button (brush icon, CTRL+F7).
    It is usually not needed to clean the cache when you edit something, but create/remove a resource usually cause issues.
     
  3. Remix The Idiot

    Remix The Idiot Member

    Joined:
    Sep 29, 2017
    Posts:
    15
    Oh? Really, that was it? Well, cool. I can do that. I don't remember this ever being a thing but oh well.

    Problem solved.
     

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