Main menu music won't stop when a game save is loaded. (SOLVED!)

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
User avatar
Ibitz
Regular
Posts: 63
Joined: Thu Jul 27, 2017 4:47 pm
Projects: Magical Disarray (WIP)
Organization: Ibitz Visual Novels
Deviantart: http://ibitz.deviant
itch: ibitz
Contact:

Main menu music won't stop when a game save is loaded. (SOLVED!)

#1 Post by Ibitz » Tue Oct 31, 2017 5:17 pm

I've seen others ask the question about the music from the Main Menu not stopping and everyone says to do this :

Code: Select all

label start:
  stop music
So, I did that and, if playing the game straight through, it works. If playing, saving, then quitting, then starting up the save- the music lingers and continues on in the game, even if there are other songs being played. So, what's going on?
Last edited by Ibitz on Wed Nov 01, 2017 12:48 am, edited 1 time in total.
Image

Ibitz is a self-taught coder/artist who works alone on their games. All games I create are freeware. If you need any help with coding or creating your game, just let me know. I'd be more than happy to help.

User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Re: Main menu music won't stop when a game save is loaded. (And, yes, I put stop music after Start)

#2 Post by mitoky » Tue Oct 31, 2017 6:44 pm

Is the saving stat you are loading perhaps from before you were changing the code? (before you added "stop music") ?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3217
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Main menu music won't stop when a game save is loaded. (And, yes, I put stop music after Start)

#3 Post by Imperf3kt » Tue Oct 31, 2017 6:54 pm

You need to delete persistent.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

User avatar
Ibitz
Regular
Posts: 63
Joined: Thu Jul 27, 2017 4:47 pm
Projects: Magical Disarray (WIP)
Organization: Ibitz Visual Novels
Deviantart: http://ibitz.deviant
itch: ibitz
Contact:

Re: Main menu music won't stop when a game save is loaded. (And, yes, I put stop music after Start)

#4 Post by Ibitz » Wed Nov 01, 2017 12:48 am

Not sure if Pytom notices anything like this, but apparently the problem stopped when my friend did a Windows 10 security system update. Now the music is no longer showing up in people's saves. Everything seems to be working, now. Thank you both for your help!
Image

Ibitz is a self-taught coder/artist who works alone on their games. All games I create are freeware. If you need any help with coding or creating your game, just let me know. I'd be more than happy to help.

Post Reply

Who is online

Users browsing this forum: Google [Bot]