I have a .tws with 70 passages using Sugarcane in 1.4.2 currently - it's likely to get a lot bigger.
When I add the 71st passage and "test play" the game, it appears as if the stylesheet stops being applied. It doesn't matter what the content of the passage or its name is: as soon as I go above that 70 passage threshold...stylesheet doesn't work any more.
Anything I can do to deal with this? I tried stopping at 70 passages in that .tws and then using storyincludes to add another .tws....same problem once it goes over 70!
Comments
Have you tried another browsers?
Problem is the same in Chrome and Firefox. It's caused directly by the number of passages - even if I add blank untitled passages above the limit it still happens, so it's not to do with the content in the additional passages at all.
I'd be happy to take a look, if you were up for that. nicolemgames at gmail.com.
I can post the stylesheet here if that's useful?
1. You had an extra </script> tag at the end of your "transition" stylesheet passage.
2. In "stylesheet", your .tab code block had no closing curly bracket. From the perspective of the CSS interpreter, this means all the subsequent selectors and rules "inside" .tab {} would be read as invalid rules and then invalid selectors after the first curly bracket.
2a. There was an extra closing bracket at the end of "stylesheet".
3. In "dosvga" (a font I'd included), you were missing your closing curly bracket.
If anyone else has similar problems then having someone who knows what they're doing check through your bodged up CSS files is a good idea! Many, many thanks to nicolem for this.
I still don't totally understand WHY it was breaking after 70 passages, so if anyone's seen something similar, I'd love to hear your thoughts.
The reason for this that the order that CSS rules are applied is important and there is no way to control which order multiple stylesheet related passages will be processed/applied. The same goes for javascript related passages.