Crimson Curse

1st Place Winner in the Hytale Modding Contest (Horror Category). A 2–10 player survival-horror minigame built in Java featuring custom HUDs and custom interactions.

HytaleJavaMinigame
Crimson Curse screenshot

1st Place Winner: Hytale Modding Contest (Horror Minigame Category)

Crimson Curse Contest Banner

Overview

Crimson Curse is an award-winning, 2–10 player survival-horror minigame built in Java for Hytale. At the start of each 20-minute match, roles are randomly distributed (approximately one vampire per four players), pitting a team of survivors tasked with gathering firewood and lighting village beacons against evolving vampire predators.

Developed in a four-person team, PacifictByte and I co-engineered the Java gameplay systems, while Hawkon and Slamma produced the custom 3D models, animations, audio, music, and level design.

Gameplay Trailer


My Technical Contributions & Granular Systems

While collaborating on the overarching match loop, I individually owned and created the following systems:

1. Survivor Arsenal & Tactical Item Logic

I programmed the item behaviors, cooldowns, and balanced for the survivor defensive toolkit:

  • Lantern: Area-of-effect blinding flash and knockback vampires.
  • Crossbow: Ranged projectile that applies slowness debuffs to struck vampires.
  • Shield: Defensive damage-mitigation state designed to extend survivor longevity during chases.
  • Bandages: Channeled consumable logic for restoring survivor health after escaping engagements.

2. Custom Survivor HUD Overlays

Survivor HUD Layout

  • Designed and coded the custom on-screen survivor HUD overlays to display, and match details clearly during gameplay.

3. Dynamic Extinction & Relighting of Torches

  • I designed a feature where my inventory system listener detects when players swap out the torch for other hotbar items in their inventory and automatically extinguishes the torches. This forces players to find fire sources to re-lit their torch again.

4. In-Game Config

  • Built an in-game configuration window allowing lobby hosts to customize match timers, role ratios, and gameplay modifiers before the game start.

5. Inventory Crash Diagnostics & Workarounds

One of the most critical technical challenges involved restricting the standard Hytale player inventory down to a small set of active hotbar slots. Calling standard capacity-reduction methods triggered repeatable client and server crashes.

public void restrictToHotbar(Store<EntityStore> store, Ref<EntityStore> playerRef, int slots) {
    List<ItemStack> overflowItems = new ArrayList<>();
    // Collapse main storage capacity to zero
    InventoryComponent.Storage storageComponent = store.getComponent(
        playerRef, 
        InventoryComponent.Storage.getComponentType()
    );
    
    if (storageComponent != null) {
        storageComponent.ensureCapacity((short) 0, overflowItems);
        storageComponent.markDirty();
    }
    // Constrain active hotbar capacity to target slot count
    InventoryComponent.Hotbar hotbarComponent = store.getComponent(
        playerRef, 
        InventoryComponent.Hotbar.getComponentType()
    );
 
    if (hotbarComponent != null) {
        hotbarComponent.ensureCapacity((short) slots, overflowItems);
        hotbarComponent.markDirty();
    }
}

Through systematic debugging of the Hytale entity component store, I isolated four undocumented engine flaws and implemented defensive workarounds:

  • Out-of-Bounds Selected Slot Crash: If a player held slot 5 when hotbar capacity was reduced to 3, the client crashed immediately. I implemented pre-restriction slot resetting to force the active index within bounds before resizing.
  • Weapon Marker Serialization Crash: Items flagged with native weapon markers caused engine crashes inside restricted hotbars; I restructured survivor tools as custom non-weapon interactive items.
  • Number-Row Input Desynchronization: Pressing keyboard keys 4–9 on a 3-slot hotbar bypassed client validation and desynchronized client-server state. I added server-side packet validation to clamp slot selection events.

Core Game Loop Overview

Survivors: Light the Beacons

Survivors search the village (where higher-tier loot spawns further from safety) to gather firewood and light beacons. Eliminated survivors drop their inventory in-place and transition to spectator mode.

ItemTactical Utility
LanternBlinds and pushes vampires away.
CrossbowFires darts that slow vampires.
ShieldMitigates incoming damage during chases.
BandagesConsumable item used to recover lost health.

Vampires: Escalating Predator Phases

Vampires hunt survivors to prevent beacon activation, unlocking three progressive power stages as the curse intensifies:

  • Stage 1: Elevated movement speed and traversal mobility.
  • Stage 2: Ability to shatter marked structural walls and destroy survivor hiding spots.
  • Stage 3: Supernatural proximity sensing to detect nearby survivors through obstacles.

The Team

The Team on the Winner Stand

  • RM20: Gameplay Programmer & UI Systems
  • PacifictByte: Gameplay Programmer & Backend
  • Hawkon: Art, Models & Level Design
  • Slamma: Audio, Music & Animation