Problems with Jedit

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
Gouka
Regular
Posts: 66
Joined: Thu Feb 01, 2007 1:24 pm
Projects: Demon Wraith
Contact:

Problems with Jedit

#1 Post by Gouka » Sun Nov 09, 2008 8:15 pm

I imported a script into Jedit but when I try to run the game it gives this message.

ParseError: On line 17 of C:\Documents and Settings\Carlos\Mis documentos\Nueva carpeta (2)\ChaosLord Development\renpy-6.8.0\Chaos Lord/game/script.rpy: indentation mismatch.

I eliminated the variable for the character's name so it would be a narration, would that be the problem?
Attachments
traceback.txt
(2.45 KiB) Downloaded 33 times
Check the Chaos Lord development at http://atelieredgeproductions.wordpress.com

User avatar
Aenakume
Regular
Posts: 182
Joined: Mon Aug 11, 2008 4:38 am
Projects: Arts... i hate arts -_-
Contact:

Re: Problems with Jedit

#2 Post by Aenakume » Sun Nov 09, 2008 8:46 pm

No, the problem is an indentation problem - which could mean a couple of different things. i can't guess which without seeing your script.

Make sure that your lines all use consistent indentation. This would work:

Code: Select all

start:
    c "line 1"
    "line 2"
    c "line 3"
This will not:

Code: Select all

start:
    c "line 1"
      "line 2"
    c "line 3"
Because "line 2" is indented with 6 spaces, not 4 like the other lines.

You just have to go through to make sure that every line in the same block has the same indentation. Also, if you loaded a script you wrote somewhere else into jEdit, watch out for mixing spaces and tabs.
“You can lead a fool to wisdom, but you cannot make him think.”

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Ocelot