Options fault...

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
JamesH
Regular
Posts: 85
Joined: Sat Feb 05, 2011 2:06 pm
Projects: Friends Or More
Contact:

Options fault...

#1 Post by JamesH »

Code: Select all

On line 82 of C:\......\..........\............\renpy-6.12.0\Friends or More/game/options.rpy: invalid syntax
        gm_root = "#FCFCD7",
               ^
What does this mean?
Hi i'm JamesH
Works in progress:
Friends Or More
My Blog:
http://jhvisualnovels.blogspot.com/

James
Regular
Posts: 113
Joined: Thu Jan 20, 2011 2:08 am
Projects: The Alumnus
Contact:

Re: Options fault...

#2 Post by James »

I'm not the best person to explain this but I'll give it a shot.

"gm_root" - A displayable (such as an Image or Solid) that will be used as the background for the game menu.

"#FCFCD7" - code for yellowish color hex (choice of color you picked)

Basically it's telling you there's a problem with the background picture of menu screen. Probably with the way it's coded.



I made a card_clock.png picture for my menu background so mine is.

gm_root = "card_clock.png",
ImageImage
W.I.P. Script demo available

JamesH
Regular
Posts: 85
Joined: Sat Feb 05, 2011 2:06 pm
Projects: Friends Or More
Contact:

Re: Options fault...

#3 Post by JamesH »

Code: Select all

On line 82 of C:\-----------\-------------\-----------\renpy-6.12.0\Friends or More/game/options.rpy: invalid syntax
        gm_root = "Friends or More Logo - Copy.png",
               ^
i still get the fault

thanks for the advice though :)
Hi i'm JamesH
Works in progress:
Friends Or More
My Blog:
http://jhvisualnovels.blogspot.com/

James
Regular
Posts: 113
Joined: Thu Jan 20, 2011 2:08 am
Projects: The Alumnus
Contact:

Re: Options fault...

#4 Post by James »

So is the picture you want to display on background...

1. In game folder
2. Picture file is called "Friends or More Logo - Copy" word by word in png picture format?

Both requirements need to be met before it'll work if you coded it that way
ImageImage
W.I.P. Script demo available

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: Options fault...

#5 Post by Aleema »

I don't see a problem with that line, could you find that line in your options.rpy and paste the lines of code around it as well? I'm talking more than the ##Comments, I need to see mm_root and the ending parenthesis.

JamesH
Regular
Posts: 85
Joined: Sat Feb 05, 2011 2:06 pm
Projects: Friends Or More
Contact:

Re: Options fault...

#6 Post by JamesH »

James wrote:So is the picture you want to display on background...

1. In game folder
2. Picture file is called "Friends or More Logo - Copy" word by word in png picture format?

Both requirements need to be met before it'll work if you coded it that way
1. Yes
2. Yes
Hi i'm JamesH
Works in progress:
Friends Or More
My Blog:
http://jhvisualnovels.blogspot.com/

User avatar
SleepKirby
Veteran
Posts: 255
Joined: Mon Aug 09, 2010 10:02 pm
Projects: Eastern Starlight Romance, Touhou Mecha
Organization: Dai-Sukima Dan
Location: California, USA
Contact:

Re: Options fault...

#7 Post by SleepKirby »

The error says "invalid syntax", so I doubt it is a problem of not finding the image file. A syntax error can mean a lot of different things. It might be caused by a missing comma, an extra comma, a missing/extra parenthesis, a missing quote mark, a missing colon, incorrect indentation, and so on.

As Aleema said, you should show us multiple lines of code around the error line. Syntax errors are often not obvious unless you look at multiple lines of code. In particular, a syntax error often points at the line *after* the line where you actually made the mistake.

JamesH
Regular
Posts: 85
Joined: Sat Feb 05, 2011 2:06 pm
Projects: Friends Or More
Contact:

Re: Options fault...

#8 Post by JamesH »

## 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 = "Friends or More Logo - Copy.png",

## If this is True, the in-game window is rounded. If False,
## the in-game window is square.
rounded_window = False,

does that help?
Hi i'm JamesH
Works in progress:
Friends Or More
My Blog:
http://jhvisualnovels.blogspot.com/

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: Options fault...

#9 Post by Aleema »

Nope, post your options.rpy or at least the entire opening section. PM if you don't want to share it publicly.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]