What am I doing wrong when creating a choice???!! (Solved)

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
User avatar
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)

#1 Post by Ruubste » Wed May 15, 2013 11:09 am

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!
Last edited by Ruubste on Wed May 15, 2013 12:37 pm, edited 1 time in total.

User avatar
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???!!

#2 Post by Talann » Wed May 15, 2013 11:33 am

I think it would be best if you copy & paste the code to your post so we can correct it.

User avatar
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???!!

#3 Post by Ruubste » Wed May 15, 2013 11:42 am

Talann wrote:I think it would be best if you copy & paste the code to your post so we can correct it.
So yeah, I'm a real noob.

What do you exactly mean? The weblink or what?

User avatar
Chaotic
Regular
Posts: 30
Joined: Fri Feb 22, 2013 7:32 pm
Location: England, UK
Contact:

Re: What am I doing wrong when creating a choice???!!

#4 Post by Chaotic » Wed May 15, 2013 11:45 am

Basically your "menu:" bit is indented and you don't want to be indented.

User avatar
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???!!

#5 Post by Vilhelmina » Wed May 15, 2013 11:49 am

Ruubste wrote:
Talann wrote:I think it would be best if you copy & paste the code to your post so we can correct it.
So yeah, I'm a real noob.

What do you exactly mean? The weblink or what?
Talann is referring to the actual script code, from your script.rpy file.

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

User avatar
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???!!

#6 Post by Ruubste » Wed May 15, 2013 11:51 am

Chaotic wrote:Basically your "menu:" bit is indented and you don't want to be indented.
As I said, my English isn't very good and that was the word I didn't understand.

Could you please give an explenation or a synonym?

User avatar
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???!!

#7 Post by Ruubste » Wed May 15, 2013 11:55 am

Vilhelmina wrote:
Ruubste wrote:
Talann wrote:I think it would be best if you copy & paste the code to your post so we can correct it.
So yeah, I'm a real noob.

What do you exactly mean? The weblink or what?
Talann is referring to the actual script code, from your script.rpy file.

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?

User avatar
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???!!

#8 Post by Vilhelmina » Wed May 15, 2013 11:58 am

Ruubste wrote:
Chaotic wrote:Basically your "menu:" bit is indented and you don't want to be indented.
As I said, my English isn't very good and that was the word I didn't understand.

Could you please give an explenation or a synonym?
Ah, I see.

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

User avatar
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???!!

#9 Post by Vilhelmina » Wed May 15, 2013 12:00 pm

Ruubste wrote: God I feel SUPER stupid right now, where/how can I give you that code?
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.

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

User avatar
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???!!

#10 Post by Ruubste » Wed May 15, 2013 12:03 pm

Vilhelmina wrote:
Ruubste wrote:
Chaotic wrote:Basically your "menu:" bit is indented and you don't want to be indented.
As I said, my English isn't very good and that was the word I didn't understand.

Could you please give an explenation or a synonym?
Ah, I see.

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
Yes it worked!

Thank you so much! I can finally start with my VN.

Thank you for being so patient, you really helped me!

User avatar
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???!!

#11 Post by Vilhelmina » Wed May 15, 2013 12:04 pm

Ruubste 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!
Ah, it seems like we posted at the same time n_n

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

pwisaguacate
Veteran
Posts: 356
Joined: Mon Mar 11, 2013 11:03 pm
Contact:

Re: What am I doing wrong when creating a choice???!!

#12 Post by pwisaguacate » Wed May 15, 2013 12:25 pm

Vilhelmina wrote:This is a quick example from one of my scripts:

Code: 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
See how the word "menu" comes immediately on the row, without any spaces before it? That's what you want to do :)
Generally, everything within a label is indented away from the label's level:

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:
    [...]
Ruubste had the menu indented from a line a dialogue, and the dialogue isn't supposed to take a block.

User avatar
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???!!

#13 Post by Vilhelmina » Wed May 15, 2013 12:27 pm

pwisaguacate wrote: Ruubste had the menu indented from a line a dialogue, and the dialogue isn't supposed to take a block.
That's wording it even better than I could, thank you :)
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

Post Reply

Who is online

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