EvilHop 0.5.0

dotnet add package EvilHop --version 0.5.0
                    
NuGet\Install-Package EvilHop -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EvilHop" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EvilHop" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="EvilHop" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EvilHop --version 0.5.0
                    
#r "nuget: EvilHop, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EvilHop@0.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EvilHop&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=EvilHop&version=0.5.0
                    
Install as a Cake Tool

EvilHop

EvilHop is a C# .NET library for reading, writing, and manipulating HIP archive files, the binary asset container format used in several games developed by Heavy Iron Studios.

Status

EvilHop is alpha software, and breaking changes between versions are expected; CHANGELOG.md names them. It ships on NuGet as EvilHop:

dotnet add package EvilHop

The block layer is complete: every serializer round-trips every archive tested byte-for-byte, including unknown fields and padding. The asset layer opens an archive through a session, parsing its blocks into typed Assets and rebuilding them unconditionally on commit.

Asset codec support falls into three states, per type:

  • Typed - the asset's fields are modeled and read/written individually. Most gameplay-relevant types are here.
  • Payload - the asset wraps an embedded file (a RenderWare model, a Bink video, audio) that is imported and exported as a whole blob rather than parsed field-by-field. This is the intended shape for these types, not a gap: BinkVideo, BSP, JSP, Model, RawImage, Sound, StreamingSound, StreamingTexture, Texture.
  • Untyped - no codec exists yet. The asset reads through its shape's generic prefix if available and remains byte-preserved. Not yet supported: most Dynamic types.

Every asset says which it is (asset.Support), including one that degraded to untyped because its parse failed; AssetSupport.Of answers for an asset type or a dynamic kind under a game before anything is read.

A handful of Typed assets are only partially modeled, marked with a // TODO: Partial implementation comment at their definition:

  • AnimationAsset - ROTU and Ratatouille's revised SKB layout isn't modeled.
  • CutsceneAsset - chunked media data is unmodeled and preserved as unparsed bytes.
  • CutsceneTableAsset - trailing TimeChunk-offset, visibility, and break tables are unmodeled.
  • NPCAsset - N100F Prototype-only fields aren't parsed.
  • OneLinerAsset - a trailing 67-byte trailer isn't modeled.
  • ParticleSystemAsset - particle commands are undecoded and stored as raw bytes.

Supported Games

  • Scooby-Doo! Night of 100 Frights
  • SpongeBob SquarePants: Battle for Bikini Bottom
  • The SpongeBob SquarePants Movie
  • The Incredibles
  • The Incredibles: Rise of the Underminer
  • Ratatouille (January 18, 2006 prototype)

Example

EvilHop exposes a HIP archive's bytes two ways. The block layer is the container exactly as it sits on disk - a tree of tagged blocks - and is complete and permissive. The asset layer sits on top of it and parses those blocks into typed Assets with names, positions, and links. To edit, open a session (OpenAssets()): it maintains offsets, sizes, and checksums for you rather than leaving them for you to get wrong, and while it is open it owns the blocks that describe assets. To read, take a view (ReadAssets()): it parses the same assets, takes nothing from the archive, commits nothing, and gives each asset's bytes and each layer's image as they sit on disk. Its Index finds assets by ID, name or type, and lists which assets name which; GetLayout says which asset or gap sits at any offset of a layer's image, and Describe says which field sits at any byte of an asset.

Every archive is opened with the game and platform you state. The platform decides the byte order of every asset field, and nothing in the files names it reliably, so EvilHop never guesses it: opening assets without one throws. Serializer.Sniff can help when you do not know, and says how sure it is.

Reading an archive, listing its pickups, and doubling the Scooby Snack count of every snack gate:

using EvilHop;
using EvilHop.Assets;
using EvilHop.Common;
using EvilHop.Serialization;

using var file = File.OpenRead("hb01.HIP");
var archive = Archive.Load(file, Serializer.Create(GameVersion.BFBB, Platform.GameCube));

using var session = archive.OpenAssets();

var pickups = session.Layers.SelectMany(layer => layer.Assets).OfType<PickupAsset>();

foreach (var pickup in pickups)
{
    Console.WriteLine($"{pickup.Name} ({pickup.Kind}) at {pickup.Position} - worth {pickup.PickupValue}");

    if (pickup.Kind == PickupAsset.PickupKind.SnackGate)
        pickup.PickupValue *= 2;
}

session.Commit();

using var output = File.Create("hb01.out.HIP");
archive.Save(output);

Documentation

The architecture is documented in living documents that are updated in the same change that moves the code they describe:

Building

Requires the .NET 10 SDK.

dotnet build
dotnet test

License

EvilHop's code is licensed under the MIT License. A small number of third-party test fixtures are licensed separately under more restrictive, project-only terms - see THIRD_PARTY_NOTICES.md for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 48 11/30/2026
0.4.0 83 11/24/2026