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 Fri May 24, 2013 1:34 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  [ 108 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
PostPosted: Sun Oct 02, 2011 3:41 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
I'm really really new to this fourm and ren'py in general, I can't find a search on the fourm so I figured to ask here, is there any possible way to put music on the main menu?


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 3:45 pm 
Lemma-Class Veteran
User avatar

Joined: Fri May 23, 2008 2:11 pm
Posts: 2545
Location: USA
Projects: RockRobin
@Wright1000: No idea, I don't have 6.13 so I haven't worked with the new quick buttons yet.
@xXimmaeatjooXx: You could do with a good Tutorial reading. :) A lot of configurations are in your options.rpy file. You have to open it and read the comments. To add music, you place your file name in this line of code:
Code:
config.main_menu_music = "main_menu_theme.ogg"

You have to uncomment it first by deleting the # symbol in front of it.

P.s. the search is in the upper right corner next to "faq", "members", and "user control panel"

_________________
I apologize in advance for being extremely opinionated.
[Tutorial] How to Customize the Textbox
[Tutorial] How to Customize Game Menus
Icon art by Mocha07734


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 3:51 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
I tried that and all that came up was

File "game/script.rpy", line 22: play requires a file
play music


I have it imported into the game gallery thing but is there a certain way I have to type it or something..?


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 3:57 pm 
Lemma-Class Veteran
User avatar

Joined: Fri May 23, 2008 2:11 pm
Posts: 2545
Location: USA
Projects: RockRobin
Why are you typing "play music"? That code will assign MM music without any additional line of code. And you're getting that error because "play music" doesn't know what music to play until you tell it: play music "my_song.ogg"

_________________
I apologize in advance for being extremely opinionated.
[Tutorial] How to Customize the Textbox
[Tutorial] How to Customize Game Menus
Icon art by Mocha07734


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 4:29 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
i'm not typing play music..it's just what comes up on the error message thingy ;-;


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 4:31 pm 
Lemma-Class Veteran
User avatar

Joined: Fri May 23, 2008 2:11 pm
Posts: 2545
Location: USA
Projects: RockRobin
Look at line 22 of your script.rpy. If you don't see it, post what code inside of it and I can show you the problem.

_________________
I apologize in advance for being extremely opinionated.
[Tutorial] How to Customize the Textbox
[Tutorial] How to Customize Game Menus
Icon art by Mocha07734


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 4:34 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
there's nothing for 22 on the script one, i was editing in the options one...i'm hopelessly confused now OTL


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 4:36 pm 
Lemma-Class Veteran
User avatar

Joined: Fri May 23, 2008 2:11 pm
Posts: 2545
Location: USA
Projects: RockRobin
xXimmaeatjooXx wrote:
there's nothing for 22 on the script one, i was editing in the options one...i'm hopelessly confused now OTL

The error says there's something here, so if you could, could you please post your script.rpy file (or just the code in it)?

_________________
I apologize in advance for being extremely opinionated.
[Tutorial] How to Customize the Textbox
[Tutorial] How to Customize Game Menus
Icon art by Mocha07734


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 4:44 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
Alright then
# You can place the script of your game in this file.

# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"

# Declare characters used by this game.
define p = Character('PeacockButt', color="#C0A545", what_color="#74138C")
define s = Character('SkullFucker', color="#3923D6", what_color="#660066")
define x = Character('Xim', color="# 0099FF", what_color="#6FFF44")
define w = Character('Wonderbolt', color="#CC99CC", what_color="#339933")
define c= Character('Christmas', color="#03F3AB", what_color="#FF6600")
define g = Character('GreenHood', color="#1F88A7", what_color="CC0000")
define r = Character('Ravey', color="#3366CC", what_color="#660000")
define b = Character('The Butler', color="#C0E7F3", what_color="#000000")
define m = Character('Marelady', color="#FF97CB", what_color="#5757FF")
define pd = Character('Pediatrician', color="#CCCCCC", what_color="#CCFFFF")
define d = Character('Darkscale', color="#000033", what_color="#FFFDFD")
define gr = Character('Groove', color="#FDF2FF", what_color="#003300")

# The game starts here.
label start:


"It was a normal day today. Just like any other day of days. The sun shined today, just like everyday."
"Christmas was out on her normal daily run that she does every day."
"Whilst zooming around the city, she noticed a girl dressed up like a doctor playing with little babies!"
"In a panic mode, she swupt down to the scene of the crime and violently ripped the babies out of the hands of THE PEDIATRITION"


there's all 27 lines


Top
 Profile Send private message  
 
PostPosted: Sun Oct 02, 2011 8:22 pm 
Lemma-Class Veteran
User avatar

Joined: Fri May 23, 2008 2:11 pm
Posts: 2545
Location: USA
Projects: RockRobin
Eh, you're right. Weird error. Maybe post the whole error next time, just in case that was a mistake on copy/paste's part. Is there an instance of "play music" *anywhere* in your script? You can search by hitting Find and then toggle "all buffers" and search.

If you're continuing to have problems, you'll need to post what you've modified (so I can see how you established the sound).

Also, that snippet made me laugh. :)

_________________
I apologize in advance for being extremely opinionated.
[Tutorial] How to Customize the Textbox
[Tutorial] How to Customize Game Menus
Icon art by Mocha07734


Top
 Profile Send private message  
 
PostPosted: Mon Oct 03, 2011 4:03 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
yes, thats me and my friends being stupid XD anyway, I'm on the options tab and I put this down for lines 190-195:
# config.main_menu_music =
"play" "05- Panty & Stocking with Garterbelt OST - Beverly Hills Cock"
( "fadeout" simple_expression )?
( "fadein" simple_expression )?
( "loop" | "noloop" )?
( "if_changed" )?

please correct my stupidity x_X


Top
 Profile Send private message  
 
PostPosted: Mon Oct 03, 2011 4:10 pm 
Lemma-Class Veteran
User avatar

Joined: Fri May 23, 2008 2:11 pm
Posts: 2545
Location: USA
Projects: RockRobin
Whoa, what is all that? Haha, okay. There's your problem.

First of all, remember that I asked you to remove the #? That comments out the line, meaning it's invisible. Delete that # symbol (but make sure the line lines up with all the other lines still).

Next, you can only define the file name here. Nothing else. No fades, looping, etc. Please make that line look like this:
Code:
config.main_menu_music = "05- Panty & Stocking with Garterbelt OST - Beverly Hills Cock.mp3"

Umm, but, what is the extension of your song? Is it an mp3? I put mp3 on the end just in case. If it's .wav or .ogg or something, make sure you change that.

Did you get all that? See if it works now.

_________________
I apologize in advance for being extremely opinionated.
[Tutorial] How to Customize the Textbox
[Tutorial] How to Customize Game Menus
Icon art by Mocha07734


Top
 Profile Send private message  
 
PostPosted: Mon Oct 03, 2011 4:21 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
AH! THANK YOU SO MUCH /cling

and yea it was MP3

ahhh i'm so happy now >u<


Top
 Profile Send private message  
 
PostPosted: Fri Oct 07, 2011 5:44 pm 
Newbie

Joined: Sun Oct 02, 2011 3:27 pm
Posts: 15
Okay, here's another stupid question that i probably missed the answer to while skimming, how do i add an image to the main menu?


Top
 Profile Send private message  
 
PostPosted: Fri Oct 07, 2011 5:47 pm 
Lemma-Class Veteran
User avatar

Joined: Fri May 23, 2008 2:11 pm
Posts: 2545
Location: USA
Projects: RockRobin
You should check the "basics" part of the opening post again. It shows you how to set the BG of your main menu, which I believe is what you're asking.

_________________
I apologize in advance for being extremely opinionated.
[Tutorial] How to Customize the Textbox
[Tutorial] How to Customize Game Menus
Icon art by Mocha07734


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 108 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: DragoonHP


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