Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Reddle0

2
Posts
1
Topics
A member registered Jan 21, 2024

Recent community posts

Thanks very much! It will

(5 edits)

Is it possible you could support custom tracks? Something where the music room detects tracks from a folder without having to manually define?  Maybe even checking txt or json files (containing the data) in a certain folder too potentially.

I've been implementing this into my project, and people suggested it to me. I'm already aware https://github.com/Bronya-Rand/RenPy-Universal-Player does something similar, but it relies on python packages like ost to work. However a friend of mine provided me with code that already has the ability to support custom tracks without the use of that.

def custom_music_helper(musics, folder):
         musics += [ifile for ifile in renpy.list_files() if folder in ifile and (".ogg" in ifile or ".mp3" in ifile) ]
         return musics

    def beach_music():
        musics = []
      
        musics.append("audio/music/Beach Bummin'.ogg")
        
        musics = custom_music_helper(musics, "custom_music/beach day")            
        return musics

This is an example of how I have music set up in the project, but I can't find a way to fit this into your code, so I would greatly appreciate your input here!

On an unrelated note, sorting tracks into categories would also be great, like the example above