Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(3 edits)

hi! these are great and very useful. makes my cyoa game look all nice and fancy :)

a small note: i tried adding in the notify macro to the one-page template, and can't get the custom css classes to work for it. i don't think that has anything to do with this template, it's probably something about the css that i'm misunderstanding, but i'm just mentioning it since it's included in other templates here and i was confused when it didn't seem to be compatible.

i don't fully understand css though, and i understand javascript even less, so it's not surprising. :p i'm just mentioning it in case it's relevant to someone else, or somebody knows what the problem is.

Hi!

I'm not sure if I'll have a solution, since I currently can't see your code, see which error message you have, nor know which SugarCube version you are using (2.37 is breaking the template - been working on updating all the templates). 

The issue could be one of the following:

  • Something wrong happened as you added the Notify macro (e.g. not pasted in the right section, edits made broke the macro)
  • Something was wrong with the template to begin with (e.g. not compatible with your version of SugarCube)

First, you will want to check which version of SugarCube you are using:

  • if SugarCube 2.36.1: remove the Notify code you currently have and re-add it (Chapel's repo, choose either the minified or pretty, and add the JS in the JavaScript and the CSS in the StyleSheet). I made sure the One Page Template didn't use any of the ID/Class name that macro uses.
  • if SugarCube 2.37.3,
    • Remove the Settings from the JavaScript (this is probably where the issue is) or move the custom macros (Notify and Dialog) above the settings
      • The 2.37 update changed a lot of stuff, that made some older code incompatible. When it runs into a JS error, SugarCube stops loading code.
    • Wait for the template to be updated (should be on this page later this week) and edit what's been changed (JavaScript/CSS and some passages).
      • The code is already available here on Github right now, while I finish editing the last template.

For faster help, you might want to check either: the Twine Discord, the Twine Reddit, or the Twine section of the IntFiction Forum (you will need to share your code there too, but it's easier to it there than on itch.io).

(1 edit)

hey, thanks for the reply! i appreciate the assistance, and the links are very helpful :) i'm using 2.63.1, and i don't actually have an error message, the notification just isn't reflecting any css changes. i understand that this probably has something to do with my code though, so i'll be sure to re-add the macro in case i messed it up, and i'll try the updated version if i still can't get it to work. worst case scenario i need to brush up on css, lol. thanks again!