SOLVED: My main menu and game menu disappeared (because of splash screen mode)

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
Watercolorheart
Eileen-Class Veteran
Posts: 1314
Joined: Mon Sep 19, 2005 2:15 am
Completed: Controlled Chaos / Sum of the Parts / "that" Midna game with ZONEsama
Projects: Sparse Series/Oddments Shop original cartoon in Pevrea; Cybernetic Duels (fighting game); Good Vibin'
Organization: Watercolorheart Studios
IRC Nick: BCS
Tumblr: adminwatercolor
Deviantart: itsmywatercolorheart
Github: Watercolordevdev
Skype: heartnotes
Soundcloud: Watercollider
itch: watercolorheart
Location: Florida
Contact:

SOLVED: My main menu and game menu disappeared (because of splash screen mode)

#1 Post by Watercolorheart »

Here's my existing code:
init python:
config.overlay_screens.append("keymap_screen")
init:
#this changes skip to mousewheel
$ config.keymap['rollforward'].remove('mousedown_5')
$ config.keymap['rollback'].remove('mousedown_4')
$ config.keymap['dismiss'].append('mousedown_5')
$ config.keymap['rollforward'].append('K_q')
$ config.keymap['rollback'].append('K_w')
define config.game_menu_music = "gamemenu.ogg"
screen keymap_screen():
key "K_y" action ShowMenu('history')
# Declare characters used by this game. The color argument colorizes the name of the character.
define t = Character("Twilight Sparkle", color="#800080")
define a = Character(_("[povname]"), color="#228B22")
define z = Character(_("Zecora"), color="#696969")
define l = Character(_("Lyra"), color="#98ff98")
define s = Character(_("Spike"), color="#DA70D6")

default povname = "Anonymous"

# The game starts here.

#default a = 2
#label start:
# $ a = 3
# if a == 2:
# e "Do a thing"
# else:
# e "Do another thing"

label splashscreen:
python:
if not persistent.set_volumes:
persistent.set_volumes = True
_preferences.volumes['music'] *= .40

label start:

Here you can download a existing build with the problem: https://watercolorheart.itch.io/ponyvn
Last edited by Watercolorheart on Wed Nov 11, 2020 5:17 pm, edited 1 time in total.
I'm not even the same person anymore

Watercolorheart
Eileen-Class Veteran
Posts: 1314
Joined: Mon Sep 19, 2005 2:15 am
Completed: Controlled Chaos / Sum of the Parts / "that" Midna game with ZONEsama
Projects: Sparse Series/Oddments Shop original cartoon in Pevrea; Cybernetic Duels (fighting game); Good Vibin'
Organization: Watercolorheart Studios
IRC Nick: BCS
Tumblr: adminwatercolor
Deviantart: itsmywatercolorheart
Github: Watercolordevdev
Skype: heartnotes
Soundcloud: Watercollider
itch: watercolorheart
Location: Florida
Contact:

Re: My main menu and game menu for save/load disappeared! Help!

#2 Post by Watercolorheart »

How do I post code on the forums again?
I'm not even the same person anymore

User avatar
_ticlock_
Miko-Class Veteran
Posts: 910
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: My main menu and game menu for save/load disappeared! Help!

#3 Post by _ticlock_ »

To post a code you can type code in square brackets []. To close type /code in square brackets []. or Full editor mode and select from menu above textbox </>

User avatar
_ticlock_
Miko-Class Veteran
Posts: 910
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: My main menu and game menu for save/load disappeared! Help!

#4 Post by _ticlock_ »

Hi, Watercolorheart,

You run the game in "splashscreen mode":

Code: Select all

label splashscreen:
    python:
        if not persistent.set_volumes:
            persistent.set_volumes = True
            _preferences.volumes['music'] *= .40
Remove label splashscreen and move the python code to init python.
You can also add return in the splashscreen, although I don't really see why you need splashscreen.

Watercolorheart
Eileen-Class Veteran
Posts: 1314
Joined: Mon Sep 19, 2005 2:15 am
Completed: Controlled Chaos / Sum of the Parts / "that" Midna game with ZONEsama
Projects: Sparse Series/Oddments Shop original cartoon in Pevrea; Cybernetic Duels (fighting game); Good Vibin'
Organization: Watercolorheart Studios
IRC Nick: BCS
Tumblr: adminwatercolor
Deviantart: itsmywatercolorheart
Github: Watercolordevdev
Skype: heartnotes
Soundcloud: Watercollider
itch: watercolorheart
Location: Florida
Contact:

Re: My main menu and game menu for save/load disappeared! Help!

#5 Post by Watercolorheart »

That worked, thank you! I have been pulling my hair out over that. It was some code I copied from the forums so that's why.
I'm not even the same person anymore

34rlgr3y
Newbie
Posts: 1
Joined: Tue Mar 15, 2022 4:31 pm
Contact:

Re: SOLVED: My main menu and game menu disappeared (because of splash screen mode)

#6 Post by 34rlgr3y »

Hi! I have encountered the same issue (menus disappearing because of splash screen mode). I wanted to create a game that would crash, and when you opened it again it would load at a certain point. I followed this person's advice: https://www.reddit.com/r/RenPy/comments ... _starting/ but because of that, when the game loads up again it is perpetually in splash screen mode. Is there any way to retain the menus and accomplish my initial goal? Thank you! :D

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Ocelot