Every time I try and run my script to see if it's working, I keep getting:
On line 82 of C:\Documents and Settings\Kira\Desktop\Doujin Games\Death Rule-Episode 0/game/options.rpy: invalid syntax
gm_root = "sundialnight.png"
^
Could someone help me?
*Note: I have the recent version of Ren'Py*
Problems with script [RESOLVED]
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.
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.
-
- Miko-Class Veteran
- Posts: 832
- Joined: Mon Nov 01, 2010 9:10 pm
- Contact:
Problems with script [RESOLVED]
Last edited by HigurashiKira on Tue Nov 02, 2010 8:23 pm, edited 1 time in total.
-
- Veteran
- Posts: 322
- Joined: Sun Oct 03, 2010 11:49 pm
- Completed: Memoirs of an Angel (2010)
- Projects: Memoirs of an Angel (Remake); W.I.S.H
- Location: United States
- Contact:
Re: Problems with script
Well, what do you have at line 82 exactly?
If you post that part of the code here, people will be able to help you better. :3
But it's likely that you wrote it wrong somehow, like you forgot a comma or something.
EDIT:
That's exactly what it is: you forgot a comma.
It should be...
If you post that part of the code here, people will be able to help you better. :3
But it's likely that you wrote it wrong somehow, like you forgot a comma or something.
EDIT:
That's exactly what it is: you forgot a comma.
It should be...
Code: Select all
gm_root = "imagename.png",
-
- Miko-Class Veteran
- Posts: 832
- Joined: Mon Nov 01, 2010 9:10 pm
- Contact:
Re: Problems with script
did that and it still reads it:
Code: Select all
On line 82 of C:\Documents and Settings\Kira\Desktop\Doujin Games\Death Rule-Episode 0/game/options.rpy: invalid syntax
gm_root = "sundialnight.png",
-
- Miko-Class Veteran
- Posts: 636
- Joined: Thu May 14, 2009 8:15 pm
- Projects: Castle of Arhannia
- Contact:
Re: Problems with script
Ah, syntax errors. those tend to be fun.
Okay so, whenever you get a syntax error in any situation, if you can't tell what it is immediately you should look at the lines around it. This is especially true if you get the error on the first or last character of the line, because the compiler/interpreter is telling you when it realized there was a problem, and thus the problem is elsewhere.
in this case, you should look at the entire section in the parentheses, as that line is probably part of the theme.roundrect() function that is placed in options.rpy whenever you start a new project. you should especially check the line before it (or before the comments before it).
Okay so, whenever you get a syntax error in any situation, if you can't tell what it is immediately you should look at the lines around it. This is especially true if you get the error on the first or last character of the line, because the compiler/interpreter is telling you when it realized there was a problem, and thus the problem is elsewhere.
in this case, you should look at the entire section in the parentheses, as that line is probably part of the theme.roundrect() function that is placed in options.rpy whenever you start a new project. you should especially check the line before it (or before the comments before it).
Re: Problems with script
(I agree completely, but as it goes, the compiler is actually pointing to point around the '=', as you can see if you quote the OP and put that part in 'code' tags:KimiYoriBaka wrote: Okay so, whenever you get a syntax error in any situation, if you can't tell what it is immediately you should look at the lines around it. This is especially true if you get the error on the first or last character of the line, because the compiler/interpreter is telling you when it realized there was a problem, and thus the problem is elsewhere.
Code: Select all
gm_root = "sundialnight.png"
^
I can reproduce a similar error message by having the following in those lines:
Code: Select all
mm_root =
## 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",
Code: Select all
mm_root = gm_root = "#dcebff",
- so if I were you, HigurashiKira, I'd make sure you've specified a value for mm_root and put a comma after it.
If this isn't your problem, then you might be better off just attaching the entire options.rpy to a post, so we can take a look and see what's wrong.
Server error: user 'Jake' not found
-
- Miko-Class Veteran
- Posts: 832
- Joined: Mon Nov 01, 2010 9:10 pm
- Contact:
Re: Problems with script
Well I did go back and check, turns out I was missing a comma from the previous script from mm_root. So I just fixed my own problem. Thanks for all your help people!
I have moved to a new account. Please contact me here from now on. T/Y~
Who is online
Users browsing this forum: Nozori_Games, Ocelot