Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Replace/One-Screen Macro Bug?

I started using Twine 1.4.2 (Mac version) and noticed something a bit screwy with my game. The replace macro stopped working. I tried recreating the conditions under which the macro broke and discovered that using Jonah in conjunction with the one-screen macro caused the macro to break for me. Feel free to test it independently to confirm (it could just be my particular set-up, though I did test it in a couple of browsers to be semi-sure).

Just thought I put this out there just in case anyone ever has said issue.

Comments

  • Officially, the "one-screen" script is no longer supported. Everyone using it is recommended to remove it and use Sugarcane instead with the "Undo" StorySetting switched off. Converting Jonah CSS to Sugarcane was formerly a bit difficult, but certain changes (the "content" element now having the "body" class) have made it easier - just remove the sidebar and maybe change a few margins.

    On a more practical note, this is actually indirectly caused by a bug, albeit a minor one, which I shall fix in the next release. So, the above recommendation notwithstanding, it should start working again then. If you really want a quick fix, the one-screen script can be altered thus:

    History.prototype.originalDisplay = History.prototype.display;

    History.prototype.display = function (title, link, render)
    {
    if (title && tale.has(title) && (render != 'quietly') && (render != 'offscreen'))
    removeChildren($('passages'));

    this.originalDisplay.apply(this, arguments);
    };
  • I switched to Sugarcane right after discovering the issue (it took five minutes and a a handful of CSS, as you've suggested) but hopefully anyone else having the issue will at least know that they're not insane. Thanks for taking the time out to reply, L!
Sign In or Register to comment.