Tab Character Problem in script.rpy

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
Skorch
Newbie
Posts: 2
Joined: Sat Nov 21, 2015 7:32 pm
Contact:

Tab Character Problem in script.rpy

#1 Post by Skorch »

Ok so I was working on my first bigger project when suddenly everything goes haywire

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 165: Tab characters are not allowed in Ren'Py scripts.

Ren'Py Version: Ren'Py 6.99.7.858

Code: Select all

        menu:
	    "Jules Verne":  <------
		jump verne
		 
            "Tolkien":
		jump rings

	    "J.K. Rowling":
		jump potter
		 
	    "George R.R. Martin":
		jump thrones

        label verne:
	    "I've always enjoyed the work of Jules Verne. My favorite one was 20000 Leagues under the sea."
            "I wanted to travel that far down in a submarine after I've read that one for the first time."
	    "Sad day when I found out that I was afraid of deep water....sad day."
		jump intro
 
        label rings:
	    "I just loved The Lord of the Rings. The Hobbit wasn't bad either, but nothing over the original trilogy."
            "The movies were also really great, though a bit long and here and there not very true to the book, which you could expect if you make each 3 movies 3 hours long."
	    "I give the hobbit credit words here. I really liked the Hobbit Movie Trilogy, but my god. What a piece of haggis the last movie was."
		jump intro
I've tried looking for people with the same problem but the given explanations with Tab Characters weren't really helpful.
I just don't understand what he wants from me.

User avatar
Zetsubou
Miko-Class Veteran
Posts: 522
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: Tab Character Problem in script.rpy

#2 Post by Zetsubou »

You can't use tabs in an rpy file.
Replace any tabs with spaces.
Depending on your text editor, you may be able to replace all (usually ctrl+H) tabs with four spaces.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

https://zetsubou.games

Skorch
Newbie
Posts: 2
Joined: Sat Nov 21, 2015 7:32 pm
Contact:

Re: Tab Character Problem in script.rpy

#3 Post by Skorch »

..Oh... :shock:
Um..that took me longer then it should have :D
Thanks for the help, it works now.

Post Reply

Who is online

Users browsing this forum: Nozori_Games