What am I doing wrong when creating a choice???!! (Solved)
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.
- Ruubste
- Newbie
- Posts: 17
- Joined: Wed May 15, 2013 10:01 am
- Projects: BitterSweet, Destination
- Location: The Netherlands
- Contact:
What am I doing wrong when creating a choice???!! (Solved)
I'm like stuck for a month, I just can't figure it out.
My english can also be a problem, sorry but I'm from the Netherlands and I don't understand what they mean.
I'm making an Otome game, and I'm first practicing with a tutorial. But when I have to make "Choices" (the player should make to make boy A or boy B happy) I get stuck.
I've got screen shots, you might have to zome in.
So this is the script as shown in the tutorial, I copied it completely:
http://tinypic.com/view.php?pic=u4vpl&s=5
And this is what I get when I launch my project:
http://tinypic.com/view.php?pic=2w2hq50&s=5
I hope someone recognizes this and already solved it so he/she could help me.
Thank you for reading!
My english can also be a problem, sorry but I'm from the Netherlands and I don't understand what they mean.
I'm making an Otome game, and I'm first practicing with a tutorial. But when I have to make "Choices" (the player should make to make boy A or boy B happy) I get stuck.
I've got screen shots, you might have to zome in.
So this is the script as shown in the tutorial, I copied it completely:
http://tinypic.com/view.php?pic=u4vpl&s=5
And this is what I get when I launch my project:
http://tinypic.com/view.php?pic=2w2hq50&s=5
I hope someone recognizes this and already solved it so he/she could help me.
Thank you for reading!
Last edited by Ruubste on Wed May 15, 2013 12:37 pm, edited 1 time in total.
- Talann
- Regular
- Posts: 132
- Joined: Thu May 09, 2013 12:02 pm
- Projects: Shooting Stars, REBORN
- Contact:
Re: What am I doing wrong when creating a choice???!!
I think it would be best if you copy & paste the code to your post so we can correct it.
- Ruubste
- Newbie
- Posts: 17
- Joined: Wed May 15, 2013 10:01 am
- Projects: BitterSweet, Destination
- Location: The Netherlands
- Contact:
Re: What am I doing wrong when creating a choice???!!
So yeah, I'm a real noob.Talann wrote:I think it would be best if you copy & paste the code to your post so we can correct it.
What do you exactly mean? The weblink or what?
Re: What am I doing wrong when creating a choice???!!
Basically your "menu:" bit is indented and you don't want to be indented.
- Vilhelmina
- Regular
- Posts: 37
- Joined: Fri Apr 20, 2012 6:22 am
- Organization: Cassis Connection Studios
- Location: Sweden
- Contact:
Re: What am I doing wrong when creating a choice???!!
Talann is referring to the actual script code, from your script.rpy file.Ruubste wrote:So yeah, I'm a real noob.Talann wrote:I think it would be best if you copy & paste the code to your post so we can correct it.
What do you exactly mean? The weblink or what?
It sounds from your error message like the indentation (number of spaces before the code for the menu) is the problem, but it's easier for us to help you correct it if we get to see your code.
edit: Err,sorry, I guess I mixed up your usernames. xD
Last edited by Vilhelmina on Wed May 15, 2013 11:52 am, edited 1 time in total.
Artist/writer by night, MD/PhD student by day
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
- Ruubste
- Newbie
- Posts: 17
- Joined: Wed May 15, 2013 10:01 am
- Projects: BitterSweet, Destination
- Location: The Netherlands
- Contact:
Re: What am I doing wrong when creating a choice???!!
As I said, my English isn't very good and that was the word I didn't understand.Chaotic wrote:Basically your "menu:" bit is indented and you don't want to be indented.
Could you please give an explenation or a synonym?
- Ruubste
- Newbie
- Posts: 17
- Joined: Wed May 15, 2013 10:01 am
- Projects: BitterSweet, Destination
- Location: The Netherlands
- Contact:
Re: What am I doing wrong when creating a choice???!!
Vilhelmina wrote:Talann is referring to the actual script code, from your script.rpy file.Ruubste wrote:So yeah, I'm a real noob.Talann wrote:I think it would be best if you copy & paste the code to your post so we can correct it.
What do you exactly mean? The weblink or what?
It sounds from your error message like the indentation (number of spaces before the code for the menu) is the problem, but it's easier for us to help you correct it if we get to see your code.
edit: Err,sorry, I guess I mixed up your usernames. xD
God I feel SUPER stupid right now, where/how can I give you that code?
- Vilhelmina
- Regular
- Posts: 37
- Joined: Fri Apr 20, 2012 6:22 am
- Organization: Cassis Connection Studios
- Location: Sweden
- Contact:
Re: What am I doing wrong when creating a choice???!!
Ah, I see.Ruubste wrote:As I said, my English isn't very good and that was the word I didn't understand.Chaotic wrote:Basically your "menu:" bit is indented and you don't want to be indented.
Could you please give an explenation or a synonym?
For the verb "to indent", dictionary.com gives this as one of the definitions: "to set in or back from the margin, as the first line of a paragraph."
Basically, it means that the text on that line (line 52) has a couple of empty spaces before it, causing RenPy to believe the menu code lies within a new block. Remove those spaces and your code should work.
For more information about RenPy language, you can check this part of the documentation
Artist/writer by night, MD/PhD student by day
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
- Vilhelmina
- Regular
- Posts: 37
- Joined: Fri Apr 20, 2012 6:22 am
- Organization: Cassis Connection Studios
- Location: Sweden
- Contact:
Re: What am I doing wrong when creating a choice???!!
You would need to select it in your script editor, push ctrl+c (or cmd+c if you're on a mac), then go back into the forums and push ctrl+v to paste that part of the code into a new forum post.Ruubste wrote: God I feel SUPER stupid right now, where/how can I give you that code?
Edit: You would also need to use the code function, so around the code you paste you write [ code ] and [ / code ] (without the spaces). Otherwise we will not see the indentation / spaces correctly.
Last edited by Vilhelmina on Wed May 15, 2013 12:26 pm, edited 2 times in total.
Artist/writer by night, MD/PhD student by day
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
- Ruubste
- Newbie
- Posts: 17
- Joined: Wed May 15, 2013 10:01 am
- Projects: BitterSweet, Destination
- Location: The Netherlands
- Contact:
Re: What am I doing wrong when creating a choice???!!
Yes it worked!Vilhelmina wrote:Ah, I see.Ruubste wrote:As I said, my English isn't very good and that was the word I didn't understand.Chaotic wrote:Basically your "menu:" bit is indented and you don't want to be indented.
Could you please give an explenation or a synonym?
For the verb "to indent", dictionary.com gives this as one of the definitions: "to set in or back from the margin, as the first line of a paragraph."
Basically, it means that the text on that line (line 52) has a couple of empty spaces before it, causing RenPy to believe the menu code lies within a new block. Remove those spaces and your code should work.
For more information about RenPy language, you can check this part of the documentation
Thank you so much! I can finally start with my VN.
Thank you for being so patient, you really helped me!
- Vilhelmina
- Regular
- Posts: 37
- Joined: Fri Apr 20, 2012 6:22 am
- Organization: Cassis Connection Studios
- Location: Sweden
- Contact:
Re: What am I doing wrong when creating a choice???!!
Ah, it seems like we posted at the same time n_nRuubste wrote: Yes it worked!
Thank you so much! I can finally start with my VN.
Thank you for being so patient, you really helped me!
I'm glad you managed to solve it, best of luck with your game!
Artist/writer by night, MD/PhD student by day
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
-
- Veteran
- Posts: 356
- Joined: Mon Mar 11, 2013 11:03 pm
- Contact:
Re: What am I doing wrong when creating a choice???!!
Generally, everything within a label is indented away from the label's level:Vilhelmina wrote:This is a quick example from one of my scripts:See how the word "menu" comes immediately on the row, without any spaces before it? That's what you want to doCode: Select all
ep "“You'll have one less foe to worry about.”" menu: "Tell him he's lost his mind": jump x1 "It's not a bad idea": jump x2
Code: Select all
label start:
scene bg split_paths
"Which way will you take?"
menu:
"Left":
jump go_left
"Right":
jump go_right
label go_left:
[...]
label go_right:
[...]
- Vilhelmina
- Regular
- Posts: 37
- Joined: Fri Apr 20, 2012 6:22 am
- Organization: Cassis Connection Studios
- Location: Sweden
- Contact:
Re: What am I doing wrong when creating a choice???!!
That's wording it even better than I could, thank youpwisaguacate wrote: Ruubste had the menu indented from a line a dialogue, and the dialogue isn't supposed to take a block.
Artist/writer by night, MD/PhD student by day
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
Looking for medical fact checking / advice for your game? PM me!
art gallery: Vilhelmina @ deviantART | Founder of Cassis Connection Studios
Who is online
Users browsing this forum: Google [Bot]