Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Is there an image or resource cache when developing? — Gideros Forum

Is there an image or resource cache when developing?

RalpharamaRalpharama Member
edited March 1 in General questions
Can't figure this out. When I change an image in code, the old image is still used. I've restarted the IDE, and the player. I've renamed the image, deleted it entirely and uploaded a completely new image with a new filename and it still uses the old image. If I try and use a filename that doesn't exist it throws an error, but no matter what image I specify, it seems to use the first, original image, like it is cached.
local t1Tex = Texture.new("images/scr1.png") -- no matter what file/name I use it shows the original image!
This shows up in the local player, and when deployed to a mobile device.

Is there a cache or something I can flush, or force the program to use the new image?

Thanks!
Tagged:

Comments

  • hgy29hgy29 Maintainer
    edited March 1
    There is a cache in Gideros to avoid loading two times the same texture file (a new Texture loaded with the same file name as a previous one will be considered a duplicate of the first). Also files aren't deleted in the player (unless temp folder is cleared). They can be updated or replaced, but old files that no longer exist won't be deleted in the player automatically.

    Other than that, if you used a new name, your new image should have been used.

    By the way, welcome! Nice to see new names on the forum!

    Likes: Ralpharama

    +1 -1 (+1 / -0 )Share on Facebook
  • Thanks! Nice to be here! Enjoying it very much so far :smile:

    How would once clear the temp folder by the way? ("unless temp folder is cleared")

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    Accepted Answer
    On a phone, you would delete app data/cache folder. On a PC, you can go to 'File'->'Open Directory' in the player menu and clear what you need here

    Likes: Ralpharama

    +1 -1 (+1 / -0 )Share on Facebook
  • All fixed! Thanks for your help, I'll post again if I manage to make anything interesting!

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
  • MoKaLuxMoKaLux Member
    welcome Ralpharama :) you had a weird issue here ;)

    Likes: Ralpharama

    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
    +1 -1 (+1 / -0 )Share on Facebook
  • Thanks MoKaLux! There might have been a bit of human error at play too... :D

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.