Image presplash help
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.
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.
- Andredron
- Miko-Class Veteran
- Posts: 535
- Joined: Thu Dec 28, 2017 2:37 pm
- Completed: Kimi ga nozomu renpy-port(demo), Albatross Koukairoku(demo)
- Projects: Sisters ~Natsu no Saigo no Hi~(renpy-port)
- Location: Russia
- Contact:
Image presplash help
Hello everyone, help with one problem. How to make sure that the presplash image is not shown in the first run, but it works in the second? I understand that I need to find the presplash class, which is responsible for the image and register the condition, but I cannot find it. help me please
I'm writing a Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Help me to register in QQ International
Honest Critique
Help me to register in QQ International
Honest Critique
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: Image presplash help
Are you sure you mean the presplash, or the splashscreen?
The presplash is seldom used anymore, and is completely different to the splashscreen.
Thats not to say its useless, i want to make use of it myself as my laptop appears unresponsive when first launching a renpy game, but it seems counter-intuitive to make it not appear on the first run, but then on subsequent runs.
The presplash is seldom used anymore, and is completely different to the splashscreen.
Thats not to say its useless, i want to make use of it myself as my laptop appears unresponsive when first launching a renpy game, but it seems counter-intuitive to make it not appear on the first run, but then on subsequent runs.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
- Andredron
- Miko-Class Veteran
- Posts: 535
- Joined: Thu Dec 28, 2017 2:37 pm
- Completed: Kimi ga nozomu renpy-port(demo), Albatross Koukairoku(demo)
- Projects: Sisters ~Natsu no Saigo no Hi~(renpy-port)
- Location: Russia
- Contact:
Re: Image presplash help
Imperf3kt wrote: ↑Thu Jul 23, 2020 3:47 amAre you sure you mean the presplash, or the splashscreen?
The presplash is seldom used anymore, and is completely different to the splashscreen.
Thats not to say its useless, i want to make use of it myself as my laptop appears unresponsive when first launching a renpy game, but it seems counter-intuitive to make it not appear on the first run, but then on subsequent runs.
I'm talking about the picture that appears before the launch of the application) I honestly remember from the version of the old renpy presplash that it was such a thing) Well, I just need that in 1 launch it was not, and in the second there is a kind of pun, a tribute to the old version that constantly flew out and the inscription was displayed at startup. Of course I can live without her, but I just wanted to realize this))
I'm writing a Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Help me to register in QQ International
Honest Critique
Help me to register in QQ International
Honest Critique
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: Image presplash help
As best I can tell you need to set a configuration variable.
https://www.renpy.org/doc/html/config.h ... plash_time
Give this some time, and add presplash.jpg to the game directory.
Be aware that Google play and iOS store forbid artificially lengthening start up time, so may not accept games that use a presplash that is too long, if you plan to release to a mobile market.
iOS doesn't even accept the presplash as it has been removed within renpy.
https://www.renpy.org/doc/html/config.h ... plash_time
Give this some time, and add presplash.jpg to the game directory.
Be aware that Google play and iOS store forbid artificially lengthening start up time, so may not accept games that use a presplash that is too long, if you plan to release to a mobile market.
iOS doesn't even accept the presplash as it has been removed within renpy.
https://www.renpy.org/doc/html/changelo ... splash#iosRenios has been upgraded to use SDL 2.0.4 rc1. This improves compatibility with iOS 8, and makes it possible to keep the launchscreen displayed until Ren'Py fully starts. As a result, support for the ios-presplash image is no longer necessary, and has been dropped
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
- Andredron
- Miko-Class Veteran
- Posts: 535
- Joined: Thu Dec 28, 2017 2:37 pm
- Completed: Kimi ga nozomu renpy-port(demo), Albatross Koukairoku(demo)
- Projects: Sisters ~Natsu no Saigo no Hi~(renpy-port)
- Location: Russia
- Contact:
Re: Image presplash help
Imperf3kt wrote: ↑Fri Jul 24, 2020 3:55 pmAs best I can tell you need to set a configuration variable.
https://www.renpy.org/doc/html/config.h ... plash_time
Give this some time, and add presplash.jpg to the game directory.
Be aware that Google play and iOS store forbid artificially lengthening start up time, so may not accept games that use a presplash that is too long, if you plan to release to a mobile market.
iOS doesn't even accept the presplash as it has been removed within renpy.https://www.renpy.org/doc/html/changelo ... splash#iosRenios has been upgraded to use SDL 2.0.4 rc1. This improves compatibility with iOS 8, and makes it possible to keep the launchscreen displayed until Ren'Py fully starts. As a result, support for the ios-presplash image is no longer necessary, and has been dropped
A crutch version of what I want:
copy_file.rpy
Code: Select all
init python:
def unarchive(original_filename, new_filename):
import os
import os.path
new_filename = config.basedir + "/" + new_filename
dirname = os.path.dirname(new_filename)
if not os.path.exists(dirname):
os.makedirs(dirname)
orig = renpy.file(original_filename)
new = file(new_filename, "wb")
new.write(orig.read())
new.close()
orig.close()
Code: Select all
laber splashscreen:
if not persistent.one: #Add once and that's enough
$ unarchive("images/presplash.jpg", "game/presplash.jpg") #Copy the image into the game folder, and logically, it should work
$ persistent.one = 1
I'm writing a Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Help me to register in QQ International
Honest Critique
Help me to register in QQ International
Honest Critique
Who is online
Users browsing this forum: CharlieFuu69, Google [Bot]