how do i...

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Message
Author
Ace92
Regular
Posts: 34
Joined: Sun Mar 29, 2009 9:19 am
Contact:

how do i...

#1 Post by Ace92 » Sun Apr 05, 2009 10:54 am

how do i put a background picture before the game start, i mean in the main menu where there is all the start load etc buttons i want to put a background picture...how do i do it???

Shinrei_Reheiner
Newbie
Posts: 21
Joined: Wed Mar 18, 2009 5:00 pm
Location: Luzon,Philippines
Contact:

Re: how do i...

#2 Post by Shinrei_Reheiner » Sun Apr 05, 2009 11:11 am

I think you should try the Main Menu Generator by JQuartz-senpai.

(*Magically warps away*)
"...I'll keep on going.No matter how tough things get, I will overcome it."(...I hope...)

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: how do i...

#3 Post by Jake » Sun Apr 05, 2009 11:24 am

Shinrei_Reheiner wrote:I think you should try the Main Menu Generator by JQuartz-senpai.
Uh... it's a lot simpler than that. Just go into options.rpy, on line 80 there's a line which reads:

Code: Select all

        mm_root = "#dcebff",
(presuming you pick the default theme, anyway, otherwise the colour code will be different...)

Change the "#dcebff" part to the name of an image file, in quotes. Leave the comma there. For example, for my last project this line reads:

Code: Select all

        mm_root = "cg/title.png",
- underneath my game directory there was a directory called 'cg', which had 'title.png' in it.


Generally speaking, options.rpy is where you can customise how your VN looks, and all of the commonly-changed things have comments describing what you need to do. Just remember to remove the '#' at the front of any line you actually want to use, because if you leave the '#' there, Ren'Py will ignore that line.
Server error: user 'Jake' not found

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: how do i...

#4 Post by PyTom » Sun Apr 05, 2009 11:35 am

I would suggest an easier way would be to change the mm_root line in options.rpy to read:

Code: Select all

        mm_root = "mainmenu.jpg",
where mainmenu.jpg is your menu background image.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Ace92
Regular
Posts: 34
Joined: Sun Mar 29, 2009 9:19 am
Contact:

Re: how do i...

#5 Post by Ace92 » Sun Apr 05, 2009 12:20 pm

thank you very very much (:

Shinrei_Reheiner
Newbie
Posts: 21
Joined: Wed Mar 18, 2009 5:00 pm
Location: Luzon,Philippines
Contact:

Re: how do i...

#6 Post by Shinrei_Reheiner » Sun Apr 05, 2009 12:27 pm

Jake wrote:
Shinrei_Reheiner wrote:I think you should try the Main Menu Generator by JQuartz-senpai.
Uh... it's a lot simpler than that.
Ah...sorry.I was using the main menu generator so I didn't realize that there was an easier way.^^;;

(*Magically warps away*)
"...I'll keep on going.No matter how tough things get, I will overcome it."(...I hope...)

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: how do i...

#7 Post by Jake » Sun Apr 05, 2009 1:02 pm

Shinrei_Reheiner wrote: I didn't realize that there was an easier way.^^;;
That's one big reason I'd recommend people don't use the main menu generator unless they really have to - if all you use is that, then not only will you miss out on easier ways of doing some things, but you're liable to believe that if a thing can't be done with the generator, it can't be done at all. Which probably isn't true.
Server error: user 'Jake' not found

Ace92
Regular
Posts: 34
Joined: Sun Mar 29, 2009 9:19 am
Contact:

Re: how do i...

#8 Post by Ace92 » Sun Apr 05, 2009 3:55 pm

ahhh if we're already on the how to do subject...
how do i put music in the main menu and in what extension(like *.wav\*.ogg\*.mp3\etc) does it have to be in?
thank (:

User avatar
Samu-kun
King of Moé
Posts: 2262
Joined: Mon Sep 03, 2007 3:49 pm
Organization: Love in Space Inc
Location: United States
Contact:

Re: how do i...

#9 Post by Samu-kun » Sun Apr 05, 2009 4:12 pm

At line 192 of options.rpy, replace

# config.main_menu_music = "main_menu_theme.ogg"

with

config.main_menu_music = "main_menu_theme.ogg"

Where main_menu_theme.ogg is the name of your music file. The extension depends on the file format of your song. Most songs are either mp3 or ogg. Your song should be located in the game folder of your project directory.

Ace92
Regular
Posts: 34
Joined: Sun Mar 29, 2009 9:19 am
Contact:

Re: how do i...

#10 Post by Ace92 » Sun Apr 05, 2009 4:19 pm

ohhhh great (: thanks!
I meant if it has to be a specific exstinsion or it can be whatever i want?

User avatar
Samu-kun
King of Moé
Posts: 2262
Joined: Mon Sep 03, 2007 3:49 pm
Organization: Love in Space Inc
Location: United States
Contact:

Re: how do i...

#11 Post by Samu-kun » Sun Apr 05, 2009 4:22 pm

It has to be the same extension as the song file. You can look that up by finding the file on My Computer. If you're using XP and below, the extension should be right behind the file name, while if you're on Vista, it'll be on the information bar at the bottom of the window.

Ace92
Regular
Posts: 34
Joined: Sun Mar 29, 2009 9:19 am
Contact:

Re: how do i...

#12 Post by Ace92 » Sun Apr 05, 2009 4:28 pm

you don't seem to understand me...ahhh...
does the music file has to be in some specific extension or can i use whatever extension i want???i mean will the game read whatever extension i give him or does it have to be specific?

User avatar
Samu-kun
King of Moé
Posts: 2262
Joined: Mon Sep 03, 2007 3:49 pm
Organization: Love in Space Inc
Location: United States
Contact:

Re: how do i...

#13 Post by Samu-kun » Sun Apr 05, 2009 4:33 pm

Oh. Well, it has to be either .mp3 or .ogg.

Ace92
Regular
Posts: 34
Joined: Sun Mar 29, 2009 9:19 am
Contact:

Re: how do i...

#14 Post by Ace92 » Sun Apr 05, 2009 4:35 pm

got it.
thank you very much (:

User avatar
JQuartz
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...
Contact:

Re: how do i...

#15 Post by JQuartz » Sun Apr 05, 2009 5:34 pm

Shinrei_Reheiner wrote:I think you should try the Main Menu Generator by JQuartz-senpai.
Thanks for the promo, Shinrei_Reheiner :D
Jake wrote:That's one big reason I'd recommend people don't use the main menu generator unless they really have to - if all you use is that, then not only will you miss out on easier ways of doing some things, but you're liable to believe that if a thing can't be done with the generator, it can't be done at all. Which probably isn't true.
I see. I'll edit some precaution into the main menu generator thread.
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

Post Reply

Who is online

Users browsing this forum: No registered users