Page 1 of 1

Every piece of dialogue I write breaks the game?

Posted: Thu Mar 19, 2015 7:02 pm
by workingonit
Hi. I've been using ren'py for a couple months now, and everything has been really smooth sailing until today. Today I opened up the script for a very important school project I've been working on, and I edited some dialogue. I tried to open up the game to show it to somebody, and the game was broken.

Here is the transcript of the error message I got.

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


File "game/script.rpy", line 58: expected statement.
“Sample text.”
^

File "game/script.rpy", line 66: expected statement.
“Sample text.”
^

File "game/script.rpy", line 74: expected statement.
“Sample text.”
^

File "game/script.rpy", line 82: expected statement.
“Sample text.”
^

Ren'Py Version: Ren'Py 6.18.3.761


Now, the only lines that aren't working are ones that I've edited today. A project I made a couple of days ago opened and ran just fine.

There is a possibility, I'll try to describe the problem as best I can, but I'm not the best with computers and it might not make any sense. I've been writing my scripts in Apple's plain text editor, and every time I make a pair of quotes and go back into it, it moves me over the end-quote. This has never happened before, and is the only thing that has changed.

I made a new project and copy/pasted as much of the old script as I could. I only typed out the dialogue that was giving me problems, and I got all the same error messages. It's only dialogue that's giving me trouble.

What's worse, this script is for a crucial school project that's due in a week. Is there anything I can do about this?

Re: Every piece of dialogue I write breaks the game?

Posted: Thu Mar 19, 2015 7:20 pm
by Zetsubou
Are these new, problematic edits being made in the same editor as all of the script writing prior?
Because at a glance it looks like the editor is using different quotes. Looking at the output:

Code: Select all

"game/script.rpy", line 74: expected statement.
“Sample text.”
note that the quotation marks on the two lines are different.

If that's the case, I'd say to use a different editor (something basic like Editra, not an office suite like Libreoffice) and replace the quotation marks.

Re: Every piece of dialogue I write breaks the game?

Posted: Thu Mar 19, 2015 7:23 pm
by Queex
I'm not familiar with Mac tools, but might they have been changed to 'smart' quotes? The pasted errors have smart quotes. They're different unicode characters to plain quotes. There might be a setting that autocorrects quotes to smart quotes that interfered with your editing today.

Open up a command line and inspect the text in nano or something, change any problem quotes and you should be good.

Re: Every piece of dialogue I write breaks the game?

Posted: Thu Mar 19, 2015 9:16 pm
by workingonit
That's right, that's right! I was screwing around with some settings today, and I turned on smart quotes, thinking nothing of it...

That's the problem, then. Man, I feel like such a clod! Thank you very much!