iOS : launchimage only displayed a few secunds

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

iOS : launchimage only displayed a few secunds

#1 Post by Jibus »

I have feedbacks from users whom seems confused by the fact that when they launch the application, the launchimage (set in Media.xcassets) is only displayed a few secunds then blackscreen within 4-5 secunds then the main menu appears.

I tryed to use config.minimum_presplash_time. It seems to work but on the "black screen" part.

Is a file missing ?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: iOS : launchimage only displayed a few secunds

#2 Post by PyTom »

What version of Ren'Py are you using. This changed a bit between versions of iOS, and you'll need the newest Ren'Py to be sure it works.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#3 Post by Jibus »

Latest version : 6.99.6.738.

I recreated the xcode project, and force recompile all the files.

Launchimage (part of xcode) and splashscreen are not the same ?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: iOS : launchimage only displayed a few secunds

#4 Post by PyTom »

We should be displaying the launchimage until the game is ready to go. I need to look into this.

You don't have a presplash.png hanging about, do you? Maybe try removing it, although it shouldn't matter for iOS. Which version of iOS are you using?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#5 Post by Jibus »

I tryed with it, then i removed it.

I tryed on an iphone 5 / ios 9 and an iphone 4s / ios 8

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#6 Post by Jibus »

Any news on this matter ?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: iOS : launchimage only displayed a few secunds

#7 Post by PyTom »

Is there any chance I can get the files for the game that's having problems, so I can try it? At least with my test games, things appear to work. It's possible that something game-specific is going on that's causing this problem to happen.

That doesn't mean there's a bug in the game, it just means that you might be triggering some part of Ren'Py I'm too tired to think of.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#8 Post by Jibus »

Sorry for the delay.

I have noticed that the problem doesn't occur on ipad. Then on the iphone version, in Xcode, I checked "Portrait" in Device Orientation ("Landscape" box are also checked). Now it's working, but the game is in portrait (it is designed for landscape, but the launchimage in landscape mode doesn't exist for iphone < 6, maybe that's why we have the black screen).

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: iOS : launchimage only displayed a few secunds

#9 Post by PyTom »

Hm... Can you put a portrait image in, even on a landscape game? I think that's what you have to do for old iphones. (Actually, isn't iOS 6 or 7 the minimum supported version anyway?)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#10 Post by Jibus »

Sorry i wasn't clear, the only iphone (for now) which use landscape image is iPhone 6S.

All images are set in portrait (except for iPad and iPhone 6/6S Plus).

On iPhone (except 6/6S Plus which support landscape launchimage), the launchimage is display the time according to config.minimum_presplash_time if the application is set to "Portrait" and "Landscape". If "landscape" only is set, the launchimage only appears 1 secund

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#11 Post by Jibus »

Bump :)

I have still the issue on the latest version of Renpy and Renios.

The game is in landscape mode. When I launched it, the splashscreen (set in xcode assets) only appears 1 or 2 secunds, then a black a screen is show during the loading of the game (3-4 seconds) then the menu is displayed.

I saw this problem also on another renpy game (not mine) available on the app store. The problem is not present on Anroid.

According to this thread : http://stackoverflow.com/questions/5618 ... lt-seconds

The splashscreen is shown only during startup. A new view has to be added after.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: iOS : launchimage only displayed a few secunds

#12 Post by PyTom »

I haven't been able to repeat this on my end. Check that you're not doing something to cause pygame to start up early (like doing any calls to pygame in init code).
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#13 Post by Jibus »

Something like this ?

Code: Select all

init python:
    import pygame
    info = pygame.display.init()
    info = pygame.display.Info()

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: iOS : launchimage only displayed a few secunds

#14 Post by PyTom »

Yes, the call to init would cause the problem you're dealing with.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS : launchimage only displayed a few secunds

#15 Post by Jibus »

I tried to remove the call to pygame but the result stays the same.

Then i build the question in xcode without making any modification (latest version of xcode, iphone 5 simulator with iOS 10). It has the same problem : we see the launchscreen about 0.5/1 secund then the game load (black screen) then the menu appears.

The only way to keep the launchscreen stays is to add portrait orientation to the game. Then, the launchscreen stays until the game is ready.

Post Reply

Who is online

Users browsing this forum: Alex, Wildmask