User Tools

Site Tools


twine_1.4.1_release_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
twine_1.4.1_release_notes [2014/01/09 05:35]
l [Game engine]
twine_1.4.1_release_notes [2017/10/09 20:39] (current)
Line 1: Line 1:
-**Twine 1.4.1** is not released yet.+**Twine 1.4.1** is a maintenance update for Twine 1.4.
  
 Here are the fixes: Here are the fixes:
Line 6: Line 6:
  
 ====Development program==== ====Development program====
-  * Fixed the Windows VC++ runtime problem.+  * Potentially fixed the Windows VC++ runtime problem. If you haven'​t installed the VC++ 9 redistributable,​ the Twine installer should now correctly contain it.
   * Fixed <<​endnobr>>​ consuming the three characters that come after it.   * Fixed <<​endnobr>>​ consuming the three characters that come after it.
   * Fixed external link syntax highlighting.   * Fixed external link syntax highlighting.
Line 19: Line 19:
   * Fixed an error when trying to replace a passage with one from animported file.   * Fixed an error when trying to replace a passage with one from animported file.
   * Fixed importing from HTML sometimes failing to read passages correctly.   * Fixed importing from HTML sometimes failing to read passages correctly.
 +  * Now, the "no Start passage"​ warning is suppressed if a StoryIncludes passage is present.
 + 
 ====Game engine==== ====Game engine====
-  * Fixed a bug where putting "​Lookup:"​ in the StorySettings could potentially crash the game. 
   * Fixed passages with names containing quote marks being unrecognised by links.   * Fixed passages with names containing quote marks being unrecognised by links.
   * Fixed HTML tables in passages not being constructed correctly.   * Fixed HTML tables in passages not being constructed correctly.
Line 42: Line 43:
   * <<​back>>​ and <<​return>>​ now work when restoring a Jonah state via bookmark.   * <<​back>>​ and <<​return>>​ now work when restoring a Jonah state via bookmark.
   * <<​back>>​ also now works when clicked in a past Jonah passage - previously it would act as if it was in the present passage.   * <<​back>>​ also now works when clicked in a past Jonah passage - previously it would act as if it was in the present passage.
 +  * <<​back>>​ now works in the StoryMenu, StoryAuthor,​ StoryTitle and StorySubtitle passages.
 +  * <<​choice>>​ now produces an error message if it's used in the StoryMenu, StoryAuthor,​ StoryTitle and StorySubtitle passage.
   * Fixed Jonah scrolling in IE 8.   * Fixed Jonah scrolling in IE 8.
   * Now, only the StoryTitle passage'​s text content will be used for the window title, instead of its raw code.   * Now, only the StoryTitle passage'​s text content will be used for the window title, instead of its raw code.
   * Now, if a story has no StoryTitle, or the StoryTitle has no text content, it will default to the name of the .tws file used to build it, instead of just "​Untitled Story"​.   * Now, if a story has no StoryTitle, or the StoryTitle has no text content, it will default to the name of the .tws file used to build it, instead of just "​Untitled Story"​.
-  * Added a sanity check in case a script overrides History.prototype.display() but doesn'​t pass enough arguments (since in 1.4 it takes 4 arguments instead of 3). +  ​* Fixed a bug where putting "​Lookup:"​ in the StorySettings could potentially crash the game.  ​* Added a sanity check in case a script overrides History.prototype.display() but doesn'​t pass enough arguments (since in 1.4 it takes 4 arguments instead of 3). 
 +  * Fixed HTML <​table>​ structures in passages not being rendered correctly.
 =====Additions===== =====Additions=====
  
Line 53: Line 56:
   * Added a Preferences option for showing the faint connector arrows for image and stylesheet passages.   * Added a Preferences option for showing the faint connector arrows for image and stylesheet passages.
   * Passages displayed via the shorthand <<​display>>​ syntax now result in connector arrows being drawn.   * Passages displayed via the shorthand <<​display>>​ syntax now result in connector arrows being drawn.
-  ​+
 ====Game engine==== ====Game engine====
-  * The StoryMenu now auto-updates when you change passages!! The code is re-executed and re-rendered into the element. (This also applies to StoryAuthor,​ StoryTitle and StorySubtitle).+  * The StoryMenu now auto-updates when you change passages!! The code is re-executed and re-rendered into the element. This means you could, say, <<​print>>​ a variable inside it, and it would update automatically. (This change ​also applies to StoryAuthor,​ StoryTitle and StorySubtitle).
   * Added the tags() [[function]],​ which takes one or more strings and returns an array of the tags of the given passage (or the current passage if no name is supplied).   * Added the tags() [[function]],​ which takes one or more strings and returns an array of the tags of the given passage (or the current passage if no name is supplied).
   * Added passage(), which simply holds the name of the current passage (If a passage is being <<​display>>​ed by another, passage() is the name of the "​topmost"​ passage.)   * Added passage(), which simply holds the name of the current passage (If a passage is being <<​display>>​ed by another, passage() is the name of the "​topmost"​ passage.)
 +  * Added turns(), which provides the number of turns that have elapsed in the current game.
   * Added visitedTag(),​ which returns the number of times passages with the given tag have been visited. Provide multiple tags to only search for passages that contain both.   * Added visitedTag(),​ which returns the number of times passages with the given tag have been visited. Provide multiple tags to only search for passages that contain both.
   * Added '​header'​ and '​footer'​ elements to Jonah'​s .passage elements, to provide a bit more symmetry with Sugarcane'​s DOM layout.   * Added '​header'​ and '​footer'​ elements to Jonah'​s .passage elements, to provide a bit more symmetry with Sugarcane'​s DOM layout.
Line 67: Line 71:
   * Added <<​checkbox>>​. It's similar to <<​radio>>,​ having identical syntax - but it sets the variable to an array value containing all of the checked boxes' labels as strings. Example: %%<<​checkbox $weapons "​Pistol"​ "​Newspaper"​ "​Letter opener">>​%%.   * Added <<​checkbox>>​. It's similar to <<​radio>>,​ having identical syntax - but it sets the variable to an array value containing all of the checked boxes' labels as strings. Example: %%<<​checkbox $weapons "​Pistol"​ "​Newspaper"​ "​Letter opener">>​%%.
   * Added <<​button>>,​ a macro that takes a link as its argument and creates a <​button>​ element. Use it for passages which use <<​radio>>​ or <<​checkbox>>,​ or a <<​textinput>>​ set. Example: %%<<​button [[Let'​s go!|armoury]]>>​%%   * Added <<​button>>,​ a macro that takes a link as its argument and creates a <​button>​ element. Use it for passages which use <<​radio>>​ or <<​checkbox>>,​ or a <<​textinput>>​ set. Example: %%<<​button [[Let'​s go!|armoury]]>>​%%
-  * As an extra fallback, window.onerror is now set to issue a one-time +  * As a counterpart to the alert() raised when a script fails to load, window.onerror is now set to issue a one-time alert() signifying that a Javascript error has occurred during playFeel free to contact me or use the [[http://​twinery.org/​forum/​|forum]] if you find the message mystifying.
-alert() signifying that all is not wellIf you rely on a slightly buggy script, you can now opt out using the "​Errors"​ StorySetting option.+
   * StoryMenu now honours the '​nobr'​ passage tag.   * StoryMenu now honours the '​nobr'​ passage tag.
   * Built HTML files are now timestamped.   * Built HTML files are now timestamped.
Line 75: Line 78:
   * Altered Responsive'​s CSS to make the body background easier to change.   * Altered Responsive'​s CSS to make the body background easier to change.
   * Altered the CSS for all targets to make StoryMenu contents display better.   * Altered the CSS for all targets to make StoryMenu contents display better.
 +  * Individual script or stylesheet passages may request the inclusion of jQuery or Modernizr, overriding the StorySettings options, by including in their code the case-insensitive string "​requires jQuery"​ or "​requires Modernizr"​. This enables jQuery-using scripts or Modernizr-using CSS to be easily pasted into stories without requiring any other modifications to the story.
twine_1.4.1_release_notes.1389263727.txt.gz · Last modified: 2017/10/09 20:38 (external edit)