GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Custom Resolutions In Preview Player

RowdyPantsRowdyPants Posts: 403Member, PRO

Adding custom resolutions into the Preview Player Presets (like iPhone X resolution) is fast and easy however the changes aren't saved and sometimes even disappear within the same session. Any fixes out there?

Best Answers

  • AlchimiaStudiosAlchimiaStudios Posts: 950Member, PRO
    edited May 27 Accepted Answer

    @RowdyPants said:
    Adding custom resolutions into the Preview Player Presets (like iPhone X resolution) is fast and easy however the changes aren't saved and sometimes even disappear within the same session. Any fixes out there?

    It's just a missing feature from GS. I really wish we had it though, would save a lot of time.

    Follow us: Twitter - Website

  • RowdyPantsRowdyPants Posts: 403Member, PRO
    edited May 27 Accepted Answer

    @Japster Yeah, I'm right there with ya. I was poking around the GS folders looking to see if I could manually edit the preview resolutions list as well. I see the PreviewDeviceResolution.nib file but it of course isn't editable.

    I found and altered the HTML5 Preview file. In macOS, after right clicking the GameSalad app icon select 'Show Package Contents' to see the expanded folders. Navigate to Contents > Resources > WebPreview > preview-osx > preview.html

    Open preview.html with an editor like Sublime and scroll down to the select-resolution array. Add an extra entry (item in the array) by copying another item, pasting it anywhere in the array, and changing it to your desired values such as 812x375 and iPhone X

    Doing this will add your entry (or entries) into the HTML5 Preview Player in GS.

Answers

  • RowdyPantsRowdyPants Posts: 403Member, PRO

    @AlchimiaStudios Ah, that's too bad :( Thanks

  • JapsterJapster Posts: 636Member, PRO
    edited May 27

    Yep, it's a pain atm, as I'm trying to sort out iPhone X tweaks, and it's not even retained in the same session! :frowning:

    Wondering if there's a way to manually add custom sizes to the resolutions via a file edit outside of Creator, @adent42 ?

  • JapsterJapster Posts: 636Member, PRO

    @RowdyPants said:
    @Japster Yeah, I'm right there with ya. I was poking around the GS folders looking to see if I could manually edit the preview resolutions list as well. I see the PreviewDeviceResolution.nib file but it of course isn't editable.

    I found and altered the HTML5 Preview file. In macOS, after right clicking the GameSalad app icon select 'Show Package Contents' to see the expanded folders. Navigate to Contents > Resources > WebPreview > preview-osx > preview.html
    ...

    @RowdyPants - Ha ha! - Great minds mate! :wink: Well done with the investigation and thinking outside the box work!
    :smile:

    Mind you, I can't preview my app in HTML5 - it REALLY doesn't like some of the tricks and logic, not to mention camera movements in my multi-screen menu, in HTML5... :frowning:

  • RowdyPantsRowdyPants Posts: 403Member, PRO

    @Japster I feel ya. The HTML5 implementation in GS has always been quirky.

Sign In or Register to comment.