Mainmenu bug

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
Kamos
Regular
Posts: 33
Joined: Mon Jan 02, 2017 5:18 am
Tumblr: Kamos
Contact:

Mainmenu bug

#1 Post by Kamos »

So i try to search on this forum and find lots of topic but no one help so please tell me how supid I´m and how i fix this problem.

I add mainmenu picture:

## The background of the main menu. This can be a color
## beginning with '#', or an image filename. The latter
## should take up the full height and width of the screen.
mm_root = "menu.jpg",

## The background of the game menu. This can be a color
## beginning with '#', or an image filename. The latter
## should take up the full height and width of the screen.
gm_root = "#dcebff",

and game run ok.

But when i want to change gm menu:

## The background of the main menu. This can be a color
## beginning with '#', or an image filename. The latter
## should take up the full height and width of the screen.
mm_root = "menu.jpg",

## The background of the game menu. This can be a color
## beginning with '#', or an image filename. The latter
## should take up the full height and width of the screen.
gm_root = "menu2.jpg",

that error appears:

I'm sorry, but an uncaught exception occurred.

While processing the background property of style gm_root:
File "renpy/common/00start.rpy", line 70, in _init_language
renpy.change_language(language)
Exception: Color string must be 3, 4, 6, or 8 hex digits long.

so what should i change to make it work?

THANKS

User avatar
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: Mainmenu bug

#2 Post by SuperbowserX »

Were you using an outdated tutorial? You don't need to change anything in the script, just change certain files as instructed here:

https://www.renpy.org/doc/html/gui.html ... und-images

Undo the changes to the file.

By the way, on this form, when you copy paste code, enclose it in a code tag. Before that copy-paste code starts, open it with the word code surrounded by square brackets, and then close it with the phrase "/code" enclosed in square brackets (without the quotes).

Kamos
Regular
Posts: 33
Joined: Mon Jan 02, 2017 5:18 am
Tumblr: Kamos
Contact:

Re: Mainmenu bug

#3 Post by Kamos »

I hate to tell this but unfortunatelly that didn´t work... any other ideas?

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Mainmenu bug

#4 Post by indoneko »

Are you sure you didn't make any additional modification elsewhere?
Perhaps you can attach your files here so that other can check the errors for you.
My avatar is courtesy of Mellanthe

Post Reply

Who is online

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