Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

How are you testing if this works? I've noticed that 8.1.3 doesn't seem to refresh values declared with define on a shift+R refresh as it once did, so you may need to close the game and re-open it to see any changes. Be sure to search your project folder for music_room also to ensure you're not re-declaring the music room twice or anything!

(1 edit)

I have been closing out the game and re-launching it each time to test. I double-checked the project folder, and there were two instances as you mentioned, so I deleted the extraneous ones, but it still isn't showing the changes to the track list.

I had them in two locations: "game" folder and "game/music_room" folder. I tried deleting each set separately, to see if keeping them in one location or the other would work, and neither seemed to update the track list, although both "worked" equally well, for what it's worth.

Okay, I more or less figured out a solution. I'm not 100% sure which of these steps solved the issue, but it was some combination of the following:

  1. I started over from a fresh copy of my project (it always pays to test stuff in a backup copy!) and installed the Extended Music Room properly with only a single instance in the folder to begin with.
  2. This time, I didn't copy the content of the music_room.rpy over to screens.rpy, and instead just edited music_room.rpy directly itself (I think this was most likely the main issue, user error on my part. The tracks I added into music_room.rpy appeared properly at this point.)
  3. I also noticed that specifying the path name for the audio files while leaving the angle brackets in place (ex: path="<audio/track1.ogg>",) Ren'Py threw an error when I tried to play Track 1. But when I removed the angled brackets and just listed it as path="audio/track1.ogg", everything worked correctly.

Thanks for your suggestions! They did help me figure out what I was doing wrong. If I bump into any more issues I'll post back, but I think it's looking good now!