Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tttool play: improve handling of the J command (#231) #238

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tbleher
Copy link
Contributor

@tbleher tbleher commented Dec 1, 2020

Ich bin vor kurzem darüber gestolpert, dass tttool play das J()-Kommando nicht richtig implementiert. Dieser Commit verbessert das Verhalten, auch wenn es noch nicht perfekt ist.
Ich vermute, dass man das wieder kürzer schreiben könnte, als ich das mit pattern matching geschrieben habe. Bin wie immer an Verbesserungsvorschlägen interessiert, um mein Haskell zu verbessern :)

nomeata and others added 4 commits November 30, 2020 22:05
and a bit more files for the test suite
Most or all Ravensburger GMEs have a duplicated Audio table. Most of
them have an identical copy, but it seems not all. For those where the
table is 80% equal, treat it like a copy (and throw away the extra
information for now).

It remains future work to make sense of this extra table.
The J() command is executed after all other commands in the line have
executed. The 2s pause if no P() follows J() (as documented in
entropia#179 (comment))
is not implemented yet.
@nomeata
Copy link
Member

nomeata commented Dec 2, 2020

If that is really the semantics on all pens, then what we should do is

  • Check that all GMEs from ravensburger have at most one J per line (tttool lint on all downloaded GMEs)
  • Forbid writing more than one J per line.
  • Require it to be the first or last command or something(?)

tbleher pushed a commit to tbleher/tip-toi-reveng that referenced this pull request Dec 5, 2020
As discussed in entropia#231 and entropia#238, TipToi pens handle a jump after all other
actions (even if they are earlier in the list). If there are multiple
jumps, only the last has an effect. This lint check verifies that a GME
only contains one jump, and that the jump is the last action. This check
is true for all GMEs published by Ravensburger.
@tbleher tbleher mentioned this pull request Dec 5, 2020
tbleher pushed a commit to tbleher/tip-toi-reveng that referenced this pull request Dec 5, 2020
As discussed in entropia#231 and entropia#238, TipToi pens handle a jump after all other
actions (even if they are earlier in the list). If there are multiple
jumps, only the last has an effect. This lint check verifies that a GME
only contains one jump, and that the jump is the last action. This check
is true for all GMEs published by Ravensburger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants