ink icon indicating copy to clipboard operation
ink copied to clipboard

Peek feature (originally "any lookahead ability?")

Open lhughes41 opened this issue 9 years ago • 5 comments

Since as outside users of the ink-engine as middleware we are likely to find outselves parsing output from its stories as possible commands it would be nice to have a lookahead function (as parsers like to have :-) ). Is there any look ahead capacity? Rather then being forced to "eat" content from the ink-engine to look ahead? Obviously I can build my own buffer but just wanted to know if any was available or planned. Thank you.

lhughes41 avatar Aug 26 '16 21:08 lhughes41

Yup, this is definitely planned! On the old version of the engine we had a "peek" function that was equivalent to "continue", except that it didn't change any state. We'll definitely be needing this for our next game, so it's definitely coming, but I can't give you a solid timeline since it will depend entirely on whenever we find we need it during development.

joethephish avatar Sep 05 '16 15:09 joethephish

Good to hear! Implemented my own for now :) Good lck on Sorcery release:)

On Monday, September 5, 2016, Joseph Humfrey [email protected] wrote:

Yup, this is definitely planned! On the old version of the engine we had a "peek" function that was equivalent to "continue", except that it didn't change any state. We'll definitely be needing this for our next game, so it's definitely coming, but I can't give you a solid timeline since it will depend entirely on whenever we find we need it during development.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/inkle/ink/issues/165#issuecomment-244766373, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGsl9FuwHz1MW-fFdcSJQOftD-W0tqoks5qnC6UgaJpZM4Jufee .

Sent from Gmail Mobile

lhughes41 avatar Sep 05 '16 20:09 lhughes41

So did you guys ever get around to this for the new game (i.e. a 'peek')? Thanks for any update.

lhughes41 avatar Feb 09 '19 00:02 lhughes41

Sorry, not for this game! On 9 Feb 2019, 00:25 +0000, lhughes41 [email protected], wrote:

So did you guys ever get around to this for the new game (i.e. a 'peek')? THanks for any update. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

joethephish avatar Feb 09 '19 07:02 joethephish

I'm interested in this too, in particular because I would like to read certain knots (via ContinueMaximally) without bothering to update their read counts and whatnot for performance reasons. I'm using this for a quest log type system that can use Ink variables, though I may have to take a different approach for performance reasons.

wilg avatar Apr 25 '25 05:04 wilg