Skip to main content

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

So I just found your awesome tool today, and was going through the readme directions and got things most of the way set up with implementing the tool. It took some tries to get past some initial error messages from Ren'py, mostly due to my lack of understanding of how to set it up, but I got the music room to appear in the menu and visually.

What I didn't understand though was, when I tried to add my own songs to the list, either by replacing the path of the existing entries, or copying the existing music_room.add functions, it was like Ren'Py wasn't seeing the changes. The tracks shown in the music player list weren't changing, even when I outright deleted a few of the pre-existing example entries for the sake of testing.

The steps I followed were:

  1. Copied the "music_room" and "gui" folders from the zip file to my project's "game" folder.
  2. Copied "01_music_room_backend.rpy" and "music_room.rpy" from the "music_room" folder and pasted them into the "game" folder as well.
  3. Copied the entire contents of "music_room.rpy" into the bottom of my project's "screens.rpy" file to use as a starting point.
  4. Added textbutton _("Music Room") action ShowMenu("music_room3", mr=music_room) to the "Main and Game Menu Screens" section of screens.rpy

And up to this point it's more or less working as intended (excuse the clunky visuals in the screenshot, as my game is in 1280x720 resolution so I haven't gotten far enough along yet to worry about making it look and fit better visually.)


It's just when I try to modify or add any tracks under the "Music Room Declaration" section where I start running into issues (here's an example screenshot:)


The track list doesn't update to include the new tracks in any of the 3 layout modes. I even tried taking one of the existing entries and just changing its path from the silence generation to one of the test tracks paths, and it didn't really update visually or functionally in the player.

That's as far as I've gotten with trying to implement things thus far. Are there steps I am still missing or not understanding? Does it have something to do with trying to adapt it to 720p instead of 1080 (seems unlikely?) Maybe the folder setup when I copied things over originally was the incorrect way and now it's causing issues?

Edited to add: I'm using Ren'Py v 8.1.3 and I'm on Linux if that matters at all.

(+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!