Question - IDE Texture Page preview

Discussion in 'GameMaker Studio 2 Community Tech Support' started by CMAllen, Nov 4, 2017.

  1. CMAllen

    CMAllen Member

    Joined:
    Mar 2, 2017
    Posts:
    855
    Would it be possible to make this tool more...useful? For complex texture page building (those that take a while for GM to sort, optimize, and finalize) there's no progress bar or notification or anything to let the user know what it's doing, or if it's actually doing anything at all. There's also the issue that it ALWAYS rebuilds them, no matter what the status of the texture pages happens to be. So even if you've done test builds, have texture pages already built and ready to be used, the texture page preview option wipes them and starts the process all over again. Not helpful. Not even a little bit.

    When texture pages can take 10-30m to build, this 'tool' is terrible at best.
     
  2. chance

    chance predictably random Forum Staff Moderator

    Joined:
    Apr 22, 2016
    Posts:
    790
    I'll bump this, rather than create a new topic.

    Is the Texture Page preview option working for anyone? (I'm referring to the "preview" button in Game Options > Windows > Graphics. ) I've never gotten this to work. Even after several minutes with a new Studio 2 project contain one sprite... nothing happens. And I have to close Studio with the Task Manager, because the "cancel" button doesn't work either.

    Am I not waiting long enough? Or is this broken?
     
  3. MarceloP

    MarceloP Member

    Joined:
    Apr 11, 2018
    Posts:
    254
    Mine works fine. I'm on Windows 7. My company colleagues can also open it without problems, and they're all on Windows 10.

    You may have a log of what is happening on the console. Maybe, just maybe, GM opens the Default image exhibition application and, this may be a problem if it can't open whatever it is that application and pass the image to it (usually image's path).
    Another think that may come to mind is administrative privileges to evoke an application.

    Those are the only 2 possibilities that I can think of now. Try checking them out :)
     
    Last edited: Jun 28, 2018
    chance likes this.
  4. chance

    chance predictably random Forum Staff Moderator

    Joined:
    Apr 22, 2016
    Posts:
    790
    Good advice, thanks. I'll look into it.
     
  5. JackTurbo

    JackTurbo Member

    Joined:
    Oct 19, 2016
    Posts:
    823
    Works for me in GMS2. It opens a png in my default image program. Have you got a program set as a default for opening pngs?
     
  6. chance

    chance predictably random Forum Staff Moderator

    Joined:
    Apr 22, 2016
    Posts:
    790
    Yes, I normally have Irfanview set as the default program for png, jpeg, gif, etc.. I just tried setting a different app as default, but still nothing happens.

    Where is the preview png file saved? I assume in a temp directory somewhere, right?... I'm going to look around.

    EDIT: what's the filename?
     
  7. MarceloP

    MarceloP Member

    Joined:
    Apr 11, 2018
    Posts:
    254
    Hello again @chance,

    I've looked up for you. Mine is at: \AppData\Local\GameMakerStudio2\GMS2TEMP\{PROJECT_NAME}_{HASH}
    There you'll find a bunch of texture_{X}.png files.

    Another thing I just figured out. My texture page was set to maximum (8192x8192) and it took about 35sec for it to be generated and open in my windows media preview. I think you should give it some time, that may also be the case if you have multiple textures that are as big as mine.

    Also, my console shows the line corresponding to generating the texture/preview:

    "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/bin/GMAssetCompiler.exe" /c /zpex /zpuf="{BLARG}\AppData\Roaming/GameMakerStudio2\games_532892" /m=windows /tgt=64 /tp=8192 /wt /o="{BLARG}\AppData\Local\GameMakerStudio2\GMS2TEMP\{PROJECT_NAME}_{HASH}" /baseproject="C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/BaseProject/BaseProject.yyp" "{PROJECT YYP PROJECT DIRECTORY}"

    It really depends on the generation of such pages...
     
    chance likes this.
  8. chance

    chance predictably random Forum Staff Moderator

    Joined:
    Apr 22, 2016
    Posts:
    790
    @MarceloP: thanks for your help with this. I checked that directory location, but it was empty. Not even a GMS2TEMP sub-directory. Maybe Studio deletes that when it closes? Unfortunately, I can't check the location after I press the "preview" button, because Studio locks up my machine.

    Sounds like my copy of Studio2 might have been corrupted somehow. Perhaps it's time to delete and re-install.
     
    MarceloP likes this.
  9. MarceloP

    MarceloP Member

    Joined:
    Apr 11, 2018
    Posts:
    254
    Hey @chance,

    No problem! Yeah, you can try a fresh install. I'd also recommend to delete that "\AppData\Local\GameMakerStudio2\" folder and the "C:\ProgramData/GameMakerStudio2/Cache/" if it doens't happen on uninstall by itself.
    Let us know if a fresh install changed something. I may be wrong, but this "GMS2TEMP" folder may also be used for temporary html5 tests. If so, something very strange was happening to your GM2S
     
    Last edited: Jun 29, 2018
  10. lemonhead

    lemonhead Member

    Joined:
    Sep 6, 2019
    Posts:
    1
    For some reason when I try to preview the texture group it just creates a file called new.win inside my GMS2TEMP folder. I don't even know what a .win file is or how to view it. Does anyone know anything that could be causing this?
     

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