Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 12:33 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Apr 05, 2012 8:52 pm 
Regular
User avatar

Joined: Wed Apr 04, 2012 4:51 pm
Posts: 107
Location: United States
Projects: A Flower Remains, Requiem for You
Alright, so I'm trying to get some music to play at the main menu, but it ain't really going well.

I went to options.rpy, found this code
Code:
# config.main_menu_music = "main_menu_theme.ogg"

and changed main_menu_theme to the file that I wanted. The file is in the game directory, but for some reason, it does not play at the main menu. I tried using the play command, but it gives me an error message stating that "play requires a file." Does this have anything to do with the fact that I'm trying to use an .mp3 file?

I'm pretty stumped... Can anyone possibly help me? D:

_________________
http://a-flower-remains.tumblr.com/


Last edited by WatchJessieGo on Fri Apr 06, 2012 2:53 pm, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Thu Apr 05, 2012 9:05 pm 
Eileen-Class Veteran
User avatar

Joined: Sun Mar 25, 2012 6:35 pm
Posts: 1082
Location: [DATA REDACTED]
Completed: My Beautiful AI (GUI), Death Rule: Fear Complex, Amity: One Tale
Projects: Amity: White Package Edition, Death Rule:lost code, Aeternam Conquest: Dual-Chain Rhapsody
Organization: MESI Games (Team Repeated Fear, Team Dead Samurai)
Get rid of the # symbol.

_________________
ImageImage
MESI Games/Personal Twitter/Death Rule: lost code Demo
Hijiri's Law: There will always be a body count.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 05, 2012 11:14 pm 
Regular
User avatar

Joined: Wed Apr 04, 2012 4:51 pm
Posts: 107
Location: United States
Projects: A Flower Remains, Requiem for You
I tried it, but it still isn't playing. D:

_________________
http://a-flower-remains.tumblr.com/


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 9:56 am 
Eileen-Class Veteran
User avatar

Joined: Sun Mar 25, 2012 6:35 pm
Posts: 1082
Location: [DATA REDACTED]
Completed: My Beautiful AI (GUI), Death Rule: Fear Complex, Amity: One Tale
Projects: Amity: White Package Edition, Death Rule:lost code, Aeternam Conquest: Dual-Chain Rhapsody
Organization: MESI Games (Team Repeated Fear, Team Dead Samurai)
Is it indented properly? (As in, is it in line with all the other options in the code?)

_________________
ImageImage
MESI Games/Personal Twitter/Death Rule: lost code Demo
Hijiri's Law: There will always be a body count.


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 11:01 am 
Veteran
User avatar

Joined: Thu Jun 09, 2011 8:14 pm
Posts: 220
I used this code and all works good, so I only can be something like your name being wrong somewhere (big/small letters or space), or your directory, or the pattern (is your file an .ogg ? if not had you changed it in the code ?)

(On my side I tried to play multiple tracks (like both a water sound and a track) but that seems to be hard)

_________________
Image
Seeking creativity, mostly on the music side of things.
http://soundcloud.com/ziassan


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 11:19 am 
Veteran
User avatar

Joined: Wed Nov 18, 2009 11:17 am
Posts: 365
Location: Germany
Completed: Loren
Projects: PS2
You use a mp3 file, but your filename ends with .ogg

_________________
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase II


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 2:36 pm 
Regular
User avatar

Joined: Wed Apr 04, 2012 4:51 pm
Posts: 107
Location: United States
Projects: A Flower Remains, Requiem for You
Yeah, it's indented properly. The code currently looks like this:

Code:
config.main_menu_music = "Earnest.mp3"


Does it need to be an .ogg file or something?

(Sorry if my questions seem a bit stupid, I'm just starting out learning to code...)

_________________
http://a-flower-remains.tumblr.com/


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 2:39 pm 
Regular
User avatar

Joined: Fri Jan 27, 2012 4:18 pm
Posts: 40
Projects: My Secret Spring (Co-writer & Proofreader), [Secret]
There shouldn't be any problems with using a .mp3 file - when you say the game directory do you mean directly in the game folder and not a folder within the game folder? Also, did you erase the space after deleting the #? Those could cause problems and would be why the music isn't playing.

_________________
TOPofBB
All my life, my heart has yearned for a thing I cannot name.
- Andre Breton


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 2:51 pm 
Regular
User avatar

Joined: Wed Apr 04, 2012 4:51 pm
Posts: 107
Location: United States
Projects: A Flower Remains, Requiem for You
Nevermind, I got it to work. Thank you everybody for your help!

_________________
http://a-flower-remains.tumblr.com/


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 3:10 pm 
Veteran
User avatar

Joined: Thu Jun 09, 2011 8:14 pm
Posts: 220
You should explain what was your problem, think about the ones that will make the same mistake as you and read this topic, it could be an good help.

_________________
Image
Seeking creativity, mostly on the music side of things.
http://soundcloud.com/ziassan


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 4:57 pm 
Regular
User avatar

Joined: Wed Apr 04, 2012 4:51 pm
Posts: 107
Location: United States
Projects: A Flower Remains, Requiem for You
When backspacing to make it properly indented, I accidentally missed a space. ^^"

_________________
http://a-flower-remains.tumblr.com/


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: apricotorange, briannavon, Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group