Every piece of dialogue I write breaks the game?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
workingonit
Newbie
Posts: 4
Joined: Thu Mar 19, 2015 6:49 pm
Contact:

Every piece of dialogue I write breaks the game?

#1 Post by workingonit » Thu Mar 19, 2015 7:02 pm

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?

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

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

#2 Post by Zetsubou » Thu Mar 19, 2015 7:20 pm

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.
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
-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

Image

User avatar
Queex
Regular
Posts: 46
Joined: Sat Mar 14, 2015 9:47 am
Contact:

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

#3 Post by Queex » Thu Mar 19, 2015 7:23 pm

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.

workingonit
Newbie
Posts: 4
Joined: Thu Mar 19, 2015 6:49 pm
Contact:

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

#4 Post by workingonit » Thu Mar 19, 2015 9:16 pm

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!

Post Reply

Who is online

Users browsing this forum: No registered users