User Tools

Site Tools


twine_1.4.2_bugs

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 Both sides next revision
twine_1.4.2_bugs [2014/12/15 23:56]
l
twine_1.4.2_bugs [2014/12/19 19:47]
l
Line 1: Line 1:
 This is a list of bugs in Twine 1.4.2. Some of these may be carryovers from Twine 1.4.1, and some may be newly introduced. All of these will be fixed in a future release. This is a list of bugs in Twine 1.4.2. Some of these may be carryovers from Twine 1.4.1, and some may be newly introduced. All of these will be fixed in a future release.
 +
 +=====Image syntax doesn'​t work with external URLs=====
 +
 +Due to a bug, the image syntax in 1.4.2 only works with imported image resources - external URLs will silently fail to load.
 +
 +====Patch====
 +
 +To fix this, simply install this repair code in a [[script]] passage:
 +<​code>​
 +    Wikifier.imageFormatter.importedImage = function(img,​ passageName) {
 +        var imgPassages,​ imgname;
 +        // Try to parse it as a variable
 +        try {
 +            imgname = internalEval(Wikifier.parse(passageName));​
 +        }
 +        catch(e) {
 +        }
 +        if (!imgname) {
 +            imgname = passageName;​
 +        }
 +        // Base64 passage transclusion
 +        imgPassages = tale.lookup("​tags",​ "​Twine.image"​);​
 +        for (j = 0; j < imgPassages.length;​ j++) {
 +            if (imgPassages[j].title == imgname) {
 +                img.src = imgPassages[j].text;​
 +                return;
 +            }
 +        }
 +        img.src = imgname;
 +    }
 +</​code>​
  
 =====No History.prototype.display warning===== =====No History.prototype.display warning=====
twine_1.4.2_bugs.txt ยท Last modified: 2017/10/09 20:39 (external edit)