Skip to content

The product-id code can't be used as script after activation #302

Open
@fresswolf

Description

@fresswolf

I have the following use case which I couldn't implement with the current tttool: A printed photo contains only one single OID code, the product-id 901. When activated, music plays. Subsequent tipping on the photo should replay that music.

In the original tiptoi books, subsequent activation replays the welcome audio or does other things. Media created with tttool however only plays the welcome audio once, after activation that product-OID code becomes useless.

Below is the attempt to create a single code product with tttool. I'd expect the script 901 to run after activation, effectively replaying the welcome audio. Instead, nothing happens.

product-id: 901
media-path: audio/%s
welcome: audio.ogg
scripts:
  901:
  - P(audio.ogg)

I also tried to just leave out the "welcome" line, but it doesn't fix the issue and plays nothing upon activation. It seems that the product-id can't be used as a script.

I consider above use case as quite useful for many applications. For example a birthday cards that simply plays happy birthday and nothing else, or a plastic figure playing some soundtrack. In its current implementation we can only play such product once and the user would need to shutdown the tiptoi pen to replay the audio, which is cumbersome and especially for kids quite frustrating.

Does anyone have a workaround to deal with such use cases? Any technical insight why tttool wouldn't allow using the product-id as subsequent trigger?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions