0 votes
by (120 points)
I can work with twine easy, but when I go to Test Play in the 1.4.2 version, I get this error message and no changes are displayed:

Sorry to interrupt, but this story's code has got itself in a mess (TypeError: 'undefined' is not a function (evaluating 'this.pushState(true,window.location.href.replace(/#.*$/,""))')). You may be able to continue playing, but parts of the story may not work properly.
 

I have an assignment due soon. How do I view my project without this error message?

1 Answer

0 votes
by (61.3k points)
edited by
What story format are you using (I'm assuming Sugarcane)? What browser are you testing with? Did you try building to see if the problem persists? How about another browser? Do you have any custom JavaScript code running? Were you able to play after the error as the message suggested? If so, how'd that go?

At a guess, this is probably an issue with Safari, which has changed the way browser storage works on recent versions, wreaking havoc with a lot of web apps. The Twine formats that are still actively maintained have all been updated to deal with this, but no one is currently maintaining the Twine 1 default formats.

For this reason, it is highly, highly recommended that you use SugarCube 2 if you want to keep working in Twine 1.x.
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...