Howdy, Stranger!

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

How does one use the Sugarcube 2 config?

Just that.

Placing the library's suggested config.history.tracking = false; in the story JavaScript throws "cannot set property tracking of undefined." Putting that in a passage in <<script>> tags produces similar results.

I'm sure this is quite basic, but I cannot find any guidance on this at all.

Comments

  • edited September 2015
    Are you sure you have selected the "SugarCube 2 (local/offline) x.x.x-beta.x" story format instead of the "SugarCube 1.0.26" one that comes with Twine 2, because that is the error message you will receive if using 1.0.26

    If you are using the SugarCube 2 story format then that code goes in your Story Javascript area.
  • Also, if you are actually using SugarCube 2, ensure that you're using the latest release, v2.0.0-beta.7.

    The last two releases (betas 6 & 7) saw various config object properties refactored into logical groups where appropriate. In particular:
    • beta.6: All config object history-related properties were refactored to exist within the config.history sub-object.
    • beta.7: All config object passage-related properties were refactored to exist within the config.passages sub-object. Additionally, the config.updatePageElements property was refactored into config.ui.updateStoryElements.
Sign In or Register to comment.