Signed Level Packs for "full version levels" in free mode #67

Closed
opened 2022-01-18 03:07:37 +00:00 by kirsle · 1 comment

The free version of the game won't use doodads embedded inside a level.

It could be possible to make exceptions, and allow free DLC or special promotions which need custom doodads attached:

  • Add a Signature property to the Level data (str)
  • It would be a signed hash of the remaining level data sans the key.

When the game is loading a level which has a signature attached, and especially for the free version, the algorithm is:

  1. Take the Signature value from the level
  2. Serialize the file attachments data and hash it.
  3. Verify the signature matches the hash

Or something along those lines. If the signature is good, the level is allowed to contain custom doodads and be played and edited. If the hash is over just the attached files data, it allows free users to edit and remix the level and use its embedded doodads to their heart's content, but if they break the signature the free game will no longer be happy.

The doodle-admin tool can have the feature to create signed levels and levelpacks.

The free version of the game won't use doodads embedded inside a level. It could be possible to make exceptions, and allow free DLC or special promotions which need custom doodads attached: * Add a `Signature` property to the Level data (str) * It would be a signed hash of the remaining level data sans the key. When the game is loading a level which has a signature attached, and especially for the free version, the algorithm is: 1. Take the Signature value from the level 2. Serialize the file attachments data and hash it. 3. Verify the signature matches the hash Or something along those lines. If the signature is good, the level is allowed to contain custom doodads and be played and edited. If the hash is over just the attached files data, it allows free users to edit and remix the level and use its embedded doodads to their heart's content, but if they break the signature the free game will no longer be happy. The `doodle-admin` tool can have the feature to create signed levels and levelpacks.
kirsle added the
enhancement
label 2022-01-18 03:07:37 +00:00
Poster
Owner

Implemented in 82884c79ae.

Levels and Levelpacks can both be signed and the free game will load their embedded doodads even for the free mode.

Implemented in 82884c79aeea88758d2e2180df9b101d7bb2f74f. Levels and Levelpacks can both be signed and the free game will load their embedded doodads even for the free mode.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SketchyMaze/doodle#67
There is no content yet.