Indentation error at the very beginning of a script

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
Misamor98
Regular
Posts: 45
Joined: Wed Jul 14, 2021 4:43 pm
Contact:

Indentation error at the very beginning of a script

#1 Post by Misamor98 »

Hi, this morning I opened my ren'py project, and I had a "parsing project error". Apparently I had a wrong ident at the line 5 of my "screen" script. The problem is, line 5 is the very first line of code that's not commented in this script, and that whole area is what's been there since the beginning by default...
I tried indenting it, but then the error moved to the next line, if I had kept this up I probably would have had to indent the whole script.

If anybody has an idea, I'd be grateful.

Misamor98
Regular
Posts: 45
Joined: Wed Jul 14, 2021 4:43 pm
Contact:

Re: Indentation error at the very beginning of a script

#2 Post by Misamor98 »

Attached 2 screenshots of the line that's triggering an error, and the error message.
Attachments
mismatch.PNG
mismatch.PNG (9.24 KiB) Viewed 748 times
init offset.PNG
init offset.PNG (3.89 KiB) Viewed 748 times

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Contact:

Re: Indentation error at the very beginning of a script

#3 Post by hell_oh_world »

I can't see what's wrong in here. better to post the full traceback here.

User avatar
Alex
Lemma-Class Veteran
Posts: 3090
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Indentation error at the very beginning of a script

#4 Post by Alex »

Try to delete space at the beginning of first line (it shouldn't be an issue, but...). Also, check if you've actually saved changes made in script file.

Misamor98
Regular
Posts: 45
Joined: Wed Jul 14, 2021 4:43 pm
Contact:

Re: Indentation error at the very beginning of a script

#5 Post by Misamor98 »

Oh my god, that was it, that tiny space at the first commented line... Thank you very much Alex, I didn't even notice it

Post Reply

Who is online

Users browsing this forum: Google [Bot]