How should we approach the trancript issues? #1321
KVonGit
started this conversation in
Developing Quest
Replies: 1 comment 3 replies
-
I'm not entirely clear what's been added, and what the proposal(s) are here. It sounds like Quest 5.8 got a new feature to show the entirety of a game transcript (including sections that were cleared when the screen was cleared). This transcript is shown in a pop-up dialog. Questions:
You're now suggesting removing the As for how many PRs, I generally prefer one PR to do one thing. But if the "thing" is "remove the transcript functionality", then it's fine for that to be a fairly big PR, rather than trying to remove small pieces of it at a time without breaking other things. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@alexwarren
We are pretty much down to the transcript and the
clearScreen
function, as far as issues I introduced in 5.8.Things got more out of hand in playercore.js than any other file, and most of it is completely my doing.
Easy one first, and it's also the major one, because it effects every game by default, without the player enabling anything:
clearScreen
The Quest forum was very active from 2017 to 2018, especially the earlier part of '18. (In fact, I occasionally wish I could see the site's numbers from that time.)
There was literally always someone posting about Quest for quite a few consecutive months. Lots of code being discussed, lots of games getting beta-tested, and lots of folks asking about transcripts -- or at least a way to print all the game's text.
Angel Wedge posted some code that would modify
clearScreen()
so it would add a class to hide the text rather than dumping it. (Note that he wasn't posting it to get it added to Quest; he was simply having fun and helping someone out simultaneously.)Among other ways to access this same text, this is one of the things that was changed in Quest 5.8.
We modified
clearScreen
as described, and included a boolean variable namedsaveClearedText
to have an option to use the oldclearScreen
script. That boolean istrue
by default in Quest 5.8, and it slows big games down as the text continues to make the document larger and larger.I had recently discovered the jQuery-UI pop-up that was already included in Quest, and we ended up making
showPopup
functions for everyone to have included by default. So, we ended up creating ashowScrollback
function that displays all the text in divOutput, removing the "hidden" class beforehand, in a dialog window.While on the subject, these pop-up windows are larger than the screen on a mobile device, and they have been known to break walkthroughs when popping up and lacking the decency to close themselves during walkthroughs for the greater good of the game!
Speaking of walkthroughs, people (including yours truly) have occasionally wished the walk-through toggled a boolean to check from a Quest script, but I digress.
Point:
I think we should remove the jQuery-UI pop-up functions I added -- and the
showScrollback
function along with them.If we do that, the mod to
clearScreen
would be pointless, and that could be reverted. I don't that anyone even knew this stuff was in the code, unless it cause them problems.Now, this is where I can't do this without altering the transcript's code, because Quest 5.8 will display an in-game transcript in a dialog window just like the log did. And this is the same code
showScrollback
uses.So, two roads diverge in a yellow wood:
clearScreen
, and leave the rest to remove in the transcript PRI'm thinking the former, but I wanted to explain this beforehand.
...and because this will be continued in the transcript question(s) I'll have for the transcript PR: should I patch what was meant to work in 5.8, then do a separate PR with the major changes after that? Or just one with the major changes)
Beta Was this translation helpful? Give feedback.
All reactions