The game can't find music after building classify

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
lunata
Newbie
Posts: 2
Joined: Fri Jun 03, 2016 6:09 am
Contact:

The game can't find music after building classify

#1 Post by lunata »

When I build the classify to hide the mp3 files the voice work fine in the finish game but the music is not and I got this error.
please help, thank you.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game\script.rpy", line 83, in script
IOError: Couldn't find file 'Music/Why_Did_You_Do_It.mp3 '.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\execution.py", line 266, in run
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\ast.py", line 1028, in execute
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\exports.py", line 939, in with_statement
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\display\core.py", line 1512, in do_with
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\display\core.py", line 1813, in interact
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\display\core.py", line 2082, in interact_core
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\audio\audio.py", line 739, in interact
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\audio\audio.py", line 661, in periodic
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\audio\audio.py", line 341, in periodic
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\audio\audio.py", line 83, in load
  File "D:\WORK\France-demo-1.0-2-dists\France-demo-1.0-2-all\renpy\loader.py", line 369, in load
IOError: Couldn't find file 'Music/Why_Did_You_Do_It.mp3 '.

Windows-7-6.1.7601-SP1
Ren'Py 6.14.1.366
Part_A 0.0

User avatar
saguaro
Miko-Class Veteran
Posts: 560
Joined: Sun Feb 12, 2012 9:17 am
Completed: Locked-In, Sunrise, The Censor
Organization: Lucky Special Games
itch: saguarofoo
Location: USA
Contact:

Re: The game can't find music after building classify

#2 Post by saguaro »

The path should have a backslash, "Music\Why_Did_You_Do_It.mp3"

lunata
Newbie
Posts: 2
Joined: Fri Jun 03, 2016 6:09 am
Contact:

Re: The game can't find music after building classify

#3 Post by lunata »

The music can play when I launch to test but when I build distribution and play the finished game I got the error.

User avatar
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:

Re: The game can't find music after building classify

#4 Post by PyTom »

It should not have a backslash - backslash is special in Ren'Py. Ren'Py uses foward-slash for the delimiters.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: The game can't find music after building classify

#5 Post by Donmai »

Is the file actually named 'Why_Did_You_Do_It.mp3 ' or 'Why_Did_You_Do_It.mp3' ?
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]