Don't understand thes "expected statement" errors

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
Jae
Regular
Posts: 192
Joined: Sun Sep 13, 2015 5:41 pm
Projects: Pokémon Academy Life
Location: New York, NY
Contact:

Don't understand thes "expected statement" errors

#1 Post by Jae » Sat Jan 09, 2016 6:52 pm

Edit: Okay... so I renamed the .rpy and .rpyc script files and that fixed the problems. I would still very much like to know why this would happen, though.

Code: Select all

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


File "game/006_day01_intro.rpy", line 289: expected statement.
    nvl clear
             ^

File "game/006_day01_intro.rpy", line 335: expected statement.
    nvl clear
             ^

File "game/006_day01_intro.rpy", line 2376: expected statement.
    nvl clear
             ^

File "game/006_day01_intro.rpy", line 2387: expected statement.
    nvl clear
             ^

File "game/006_day01_intro.rpy", line 2388: expected statement.
    nvl hide dissolve
                     ^

Ren'Py Version: Ren'Py 6.99.7.858
This was working just moments ago and suddenly the game is failing to launch and I start getting these errors. I'm certain it's not an indent issue as I've manually typed everything out in Editra. This works just fine in my other script files and not even copying and pasting from the working scripts stop these errors.

If I take out the lines, the game works fine again. But I kinda need to clear the NVL text. Stumped why these lines don't work while they work just fine everywhere else and worked just moments ago.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Don't understand thes "expected statement" errors

#2 Post by PyTom » Sun Jan 10, 2016 2:42 am

Are those inside a menu or something? We'd need to see a dozen or so lines on each side of the errors.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Jae
Regular
Posts: 192
Joined: Sun Sep 13, 2015 5:41 pm
Projects: Pokémon Academy Life
Location: New York, NY
Contact:

Re: Don't understand thes "expected statement" errors

#3 Post by Jae » Sat Jan 16, 2016 8:37 pm

No menus are involved. Clean under a label and just basic dialogue text.

I've wondered if it has anything to do with the .rpyc files, but I'll be the first to say I am not well-versed in how those files work. I'm assuming because I've renamed different .rpy files for organization purposes, it somehow screwed things up. When I rename the files back to their original versions, the errors stop.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Don't understand thes "expected statement" errors

#4 Post by PyTom » Sun Jan 17, 2016 3:05 am

No, these parse errors occur before the .rpyc files happen.

Hm... did you put a number or special character in the filenames? That could cause this as well.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: _ticlock_