AI • Science • Technology • Future

Side Projects

How oddbout-starter Validates Sprite Sheet Integrity

Image from the original article
Featured image: original publisher image. Via original publisher.

A recent technical test in the oddbout-starter project reveals how a simple file modification can expose flaws in a character asset validation system. Source: dev.to.

What Happened in the Test

The test focused on a sprite sheet re-export after a manifest file has already been written. In oddbout-starter, a tool for creating animated fighters, the manifest file—called fighter.json—records how each motion clip plays, which asset it uses, and the exact size and SHA-256 hash of each file.

Using a fresh checkout of the project with Node.js 22.12 or later, the test ran these commands:

  • npm ci --ignore-scripts
  • npm run example
  • npm run validate -- output/sparring-bot/fighter.json

The example script generated a geometric training robot with 11 required motion clips. The original validation passed with ok: true at the bytes, hashes, and decode stages.

When a single byte was appended to the assets/idle.webp file in a temporary copy, the validation failed with an ASSET_BYTES error at the path /assets/0/bytes.

How the System Works

The manifest file is the core of the validation process. It stores metadata about each motion clip, including asset paths and cryptographic hashes. These hashes are used to verify that the actual file matches what was originally exported.

When a sprite sheet is re-exported, the system checks whether the new file matches the stored hash. If it doesn’t, the validation fails. This ensures that only properly generated assets are accepted.

The validation process runs in three phases: bytes, hash, and decode. The test shows that the system catches inconsistencies early, even before visual inspection or runtime preview.

Why This Matters

Early detection of file mismatches prevents downstream issues. A stale or corrupted sprite sheet could cause visual glitches or runtime errors in the game.

Without such checks, developers might miss errors until the character is tested in a live environment. The validation step acts as a safeguard against silent failures.

Image from the original article
original publisher image. Via original publisher. · Source

The test demonstrates that even small file changes can trigger validation errors. This makes the system sensitive to file integrity and export consistency.

Limitations and Open Questions

The test only covers one type of file modification—appending a byte to a WebP image. It does not address other file types or edge cases like partial exports or corrupted metadata.

While the validation passes at the bytes and hash level, the system does not verify visual quality. Issues like a sliding foot or poorly timed attack pose are only visible during runtime preview or visual review.

After a local pass, the report lists three pending steps: runtime preview, visual review, and server registration. These steps occur after the file integrity is confirmed.

The project’s validator and authoring contract are open-source and licensed under MIT. The full code is available at github.com/jeonghwanko/oddbout-starter.

This test highlights a practical use case for file validation in game asset creation. It shows how small, automated checks can prevent larger problems later in development.

For developers using similar tools, this example illustrates a reliable method to detect stale exports before visual or runtime testing.

Further exploration could include testing with different file types, larger modifications, or integration with version control systems.

For more on runtime safeguards in agent-based tools, see Testing Agent Runtime Safeguards: A Message Board Discussion.

For a broader view of AI-powered development tools, see AI Coding Agent Builds Duolingo-Like App in Minutes.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source