Midi problem
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.
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.
Midi problem
I am having a problem with the midi. When I try to set a 4 kb midi to play in my game, it would not play but when I set a mp3 or a 14 kb midi, it plays fine. This seems to concern the size of the midi. Since the one I am trying to play is a simple song that only takes 4 kb, the game doesn't seem to be able to play it. I have put the code into the demo game included with Ren'Py but it still didn't work. Is there a way to fix this problem or do I have to do something like increase the filesize of the midi somehow?
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
I just tried out a 494 byte midi, and it played fine.
Can you email me the midi file, so I can take a look at it, to see if there's some sort of issue with the file itself?
Also you may want to add the lines:
These lines enable alot of error reporting. By default, Ren'Py suppresses errors involving music, on the ground that it's better to have a game without music then a game that crashes whenever music tries to play. So remember to remove them before releasing your game.
Can you email me the midi file, so I can take a look at it, to see if there's some sort of issue with the file itself?
Also you may want to add the lines:
Code: Select all
init:
$ config.debug = True
$ config.debug_sound = True
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Sugar_and_rice