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 [2013/12/27 23:50]
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 external link syntax highlighting.   * Fixed external link syntax highlighting.
   * Fixed syntax highlighting for shorthand <<​print>>​ macros.   * Fixed syntax highlighting for shorthand <<​print>>​ macros.
 +  * Fixed unmatched <<​endif>>​ and <<​endsilently>>​ macros not being syntax-highlighted red.
   * Removed the "​Delete Passage"​ menu item in the Story menu, due to an identical entry being in the Edit menu.   * Removed the "​Delete Passage"​ menu item in the Story menu, due to an identical entry being in the Edit menu.
   * External links and variable links are no longer considered broken links in the IDE.   * External links and variable links are no longer considered broken links in the IDE.
Line 15: Line 17:
   * The StorySettings passage is no longer converted to all-lowercase at build time. This should make HTML exporting/​importing more symmetrical.   * The StorySettings passage is no longer converted to all-lowercase at build time. This should make HTML exporting/​importing more symmetrical.
   * Improved speed of HTML importing.   * Improved speed of HTML importing.
 +  * Fixed an error when trying to replace a passage with one from animported file. 
 +  * 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 passages with names containing quote marks being unrecognised by links.
 +  * Fixed HTML tables in passages not being constructed correctly.
 +  * Altered Sugarcane'​s browser state-saving to avoid a crash in Firefox caused by having lots of variables in your story.
 +  * Fixed TiddlyWiki emdashes not being rendered correctly.
 +  * Fixed the <<​nobr>>​ macro inserting zero-width space characters into contained macro tags, thus breaking them.
 +  * Fixed bug preventing custom macros from being usable in StoryMenu etc.
 +  * Fixed the [img] syntax used in CSS stylesheets inserting a terminating semicolon, preventing further attributes from being used on the same line.
   * Added "​vertical-align:​bottom"​ to images to compensate for a line-height difference between XHTML Transitional and HTML5. Why is there a line-height difference? The person who can answer that is not on this Earth, but in Heaven.   * Added "​vertical-align:​bottom"​ to images to compensate for a line-height difference between XHTML Transitional and HTML5. Why is there a line-height difference? The person who can answer that is not on this Earth, but in Heaven.
   * Fixed the <<​nobr>>​ macro not working if any text follows it.   * Fixed the <<​nobr>>​ macro not working if any text follows it.
Line 31: 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). 
-  * Formatting syntax inside link text is once again no longer parsed. +  * Fixed HTML <​table>​ structures in passages not being rendered correctly.
-  * Added the CSS "​word-break:​ break-all"​ to #sidebar li, to keep unnaturally long words from overflowing the sidebar.+
 =====Additions===== =====Additions=====
  
Line 42: Line 55:
   * IDE tag colours now vary between shades of orange based on the hash of the tags, to help differentiate dissimilarly tagged passages from a distance.   * IDE tag colours now vary between shades of orange based on the hash of the tags, to help differentiate dissimilarly tagged passages from a distance.
   * 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.
 +
 ====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 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 other 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 51: Line 68:
   * Re-implemented <<​textinput>>​. It creates an <​input>​ text element which, when a <​button>​ element is pressed, sets the variable to its string contents. It may also have an additional parameter, a link expressed in link syntax, which is used to create a <​button>​ next to it. Examples: %%<<​textinput $name>>​%%,​ %%<<​textinput $name [[Submit|Next passage]]>>​%%.   * Re-implemented <<​textinput>>​. It creates an <​input>​ text element which, when a <​button>​ element is pressed, sets the variable to its string contents. It may also have an additional parameter, a link expressed in link syntax, which is used to create a <​button>​ next to it. Examples: %%<<​textinput $name>>​%%,​ %%<<​textinput $name [[Submit|Next passage]]>>​%%.
   * The previous 1.3.6 <<​textinput>>​ behaviour of triggering the passage change via pressing the Enter key has been removed for now.   * The previous 1.3.6 <<​textinput>>​ behaviour of triggering the passage change via pressing the Enter key has been removed for now.
-  * Added <<​radio>>​. Its arguments are a variable, and a string ​for the labelRadio buttons for the same variable are part of the same set. The label of the selected radio button is put into the variable. Example: %%<<​radio $feel "​Strongly agree">>​%%. +  * Added <<​radio>>​. Its arguments are a variable, and a number of strings ​for each optionWhen a <​button>​ is pressed, ​the label of the selected radio button is put into the variable. Example: %%<<​radio $feel "​Strongly agree" "​Strongly disagree">>​%%. If you have multiple <<​radio>>​ macros that refer to the same variable, they'​re treated as part of the same set
-  * 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">>​%%.+  * 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 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 play. Feel free to contact me or use the [[http://​twinery.org/​forum/​|forum]] if you find the message mystifying.
 +  * StoryMenu now honours the '​nobr'​ passage tag.
   * Built HTML files are now timestamped.   * Built HTML files are now timestamped.
 +  * Upgraded the built-in jQuery module to version 1.11.
 +  * Changed Responsive'​s footer to a sticky footer, like God and all His hideous bat-faced angels originally intended.
 +  * Altered Responsive'​s CSS to make the body background easier to change.
 +  * 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.1388206221.txt.gz · Last modified: 2017/10/09 20:38 (external edit)