OSX 10.7.5, Firefox 25.0.1. Just downloaded and opened Twine 1.4.1. When I test or build any of my old stories, or a new blank one, it gives me the following Javascript alert before I can play the game:
Your browser couldn't save the state of the game.
You may continue playing, but it will no longer be possible to undo moves from here on in.
This happens in Sugarcane and Responsive, but not in Jonah. It happens in Firefox, but not Chrome or Safari. I haven't upgraded to Firefox 26 because it borks plugins I need. I'm not running anything that blocks Javascript in Firefox. Any ideas?
Comments
If you're getting this error, I'd like to see the built HTML in question.
Edit: In other stories with links, I indeed cannot undo choices. Firefox is set to remember history, and I have cleared old history recently, so it shouldn't be too full.
I tried Sharpe's loop tutorial HTML which he generated in 1.4.1, and the same alert came up (http://twinery.org/forum/index.php/topic,759.0.html). Apparently it's a problem with my Firefox, then. What setting do I need to change?
Edit 2: It works fine in Firefox 26. Problem solved, though if you have any ideas why it went awry in 25, and how I could prevent it happening if someone tries to play a Twine 1.4.1 game in Firefox 25...
The alert does not appear when I run it on Windows 7, Firefox 26. Or on Chrome 32.
Warning message screen shot attached.
In Sugarcane: When opening the page or restarting
Windows 7:
Firefox 25 : Warning message pops up
IE 10 : Warning message pops up
Chrome 32: works OK
OSX 10.9.1
Safari 7.01 OK
Chrome 32 OK
Firefox 36: OK
Cheers
I'm on latest version of Chrome, on Mac OSX Mavericks.
Also, whenever I click the browser's Back button in my story, it always brings me back to the Start, which is pretty annoying.
I'll PM you one of the three or four other HTML files that I can't remember that have this error. I can't post it here because it contains copyrighted material from SJ Games without including the proper notices yet.
So, if you have this issue, go in your browser's developer tools, go in Resources > Local Storage (and Session Storage) > Localhost and delete everything.
I had about 40 before I had to deleted them again. Maybe it's filling the allowed space?
I'm now pretty sure the error is caused when a lot of passages are visited, and the Session Storage becomes full.
But using the Restart button should empty the storage, right?
history.replaceState() operates exactly like history.pushState() except that replaceState() modifies the current history entry instead of creating a new one.
Because I noticed that the following is using "pushState" but testing for "replaceState"
and perhaps be able to 'bookmark' eventually.
I couldn't find the Localhost in Resources > Local Storage (and Session Storage) > ... of chrome. And everything i found there was empty ...
any suggestions ?
Unfortunately the Sugarcane story format relies on the web-browser's History system to save the state of the story, which it can no longer access so it fails with the error measge you saw.
One possible solution to your problem is to change to the SugarCube story format which has been modified to so that it will keep working if access to the web-browser's History system is not allowed, although it will display a warning message.