Glitches

Every bug in Harmony of Dissonance on this page was found by reading the ROM’s code and then confirmed in an emulator. For other tricks, see Tips & Trivia.

Door warps

Walk through a door, and on the first frame in the new room press dash back the way you came (R or L): the character goes back through the door you just entered and dashes out of the room. Speedrunners call this the door glitch. There are two outcomes:

Why: after you walk through a door, the door forces the character to walk forward a short distance, and until the door has closed, walking out of the room does not change rooms. But on the new room’s first frame the door hasn’t started forcing yet, so a dash pressed on that frame still works. The character dashes all the way out past the door, and the room only changes once the door has closed; at that point the game uses the character’s position to work out “which door” was used. In a one-screen-wide room, the character has dashed far off-screen, and the position doesn’t match any door. The game searches for the exit by comparing entries in this room’s exit list one by one, but never checks for the end of the list; when nothing matches, it keeps reading past the list, treating the data that follows as exits too, until some entry happens to have the same position, and warps you there.

These are the 10 spots that warp, all entered by walking left through a door from the room on the right:

Walk out left fromInto (dash back right on the first frame)Warped to
Sky Walkway A150Aqueduct of Dragons A127Aqueduct of Dragons A130 (the Giant Merman room)
Aqueduct of Dragons A121Luminous Cavern A99Luminous Cavern A117
Clock Tower A153Sky Walkway A146Chapel of Dissonance B136 in Castle B
Luminous Cavern A95Castle Treasury A195Castle Treasury B206 in Castle B (the Merchant’s room)
Castle Treasury A196Skeleton Cave A74Not a room (black screen)
Sky Walkway B150Aqueduct of Dragons B127Aqueduct of Dragons B130 (the Giant Merman room)
Aqueduct of Dragons B121Luminous Cavern B99Aqueduct of Dragons B125
Clock Tower B153Sky Walkway B146Clock Tower A174 in Castle A
Castle Treasury B196Skeleton Cave B74Skeleton Cave B75
Luminous Cavern B95Castle Treasury B195Not a room (black screen)

Carrying water buoyancy out

Before you drain it with the Floodgate Key, several rooms of Luminous Cavern (Castle A) are under water (A100, A112–A115). If the warp passes through one of these flooded rooms, Juste keeps the underwater buoyancy after coming out of the warp, even if the room he lands in has no water.

Getting the Lizard Tail early

This uses the position shift. The left door of Shrine of the Apostates A55 leads to Entrance A11. A stone pillar blocks the room, and the Lizard Tail is to the right of the pillar; normally you come from the room on the right and hit a switch. Stand between A55’s left door and the pillar, walk left into A11, and on A11’s first frame press dash right: you dash back into A55 and appear on the right side of the pillar (A11 is not one screen wide, so you are not warped to another room).

Glitch compilation: Getting the Lizard Tail early

Drawbridge warp

At the start of the game, when Talos chases you and the drawbridge rises (Entrance A0), if you don’t cross in time and only step onto the bridge after it is more than halfway up, the bridge flings you off the top of the screen and you are warped to the bottom of Clock Tower A174.

Why:

Glitch compilation: Drawbridge warp at the start

Whiplaunch

After walking, release the d-pad, dash in the opposite direction while you are still slowing down, then whip as you drop off the edge of a platform: you keep speeding up in the air, with no speed limit. Speedrunners call this whiplaunch.

Why: the character’s horizontal movement has two values, “speed” and “how much speed is added each frame”. When you release the d-pad, the game sets the latter to a deceleration and stops when speed reaches 0. Dashing only changes the speed without clearing this deceleration, and since the dash is opposite to the direction you were walking, the old deceleration becomes acceleration in the dash direction. The value has no effect while dashing, but after dashing off the platform and starting to fall, the first 6 frames (≈0.1 s) don’t change it and keep accelerating; whip during that window, and the whole whip animation doesn’t change it either, so you keep accelerating until you land. It only stops when the speed reverses direction, and since the acceleration is in the same direction as the movement, the speed never reverses.

For Juste:

  1. Walk briefly away from the platform edge, then release the d-pad.
  2. Within 7 frames (≈0.12 s) of releasing, dash toward the platform edge (R or L).
  3. Within 6 frames (≈0.1 s) of dashing off the platform, whip in the air.
Glitch compilation: Whiplaunch and zipping out of the castle

Candle whiplaunch

You can also whiplaunch by jump-kicking a candle. Speedrunners call it a candle whip launch; the principle is the same. It works for both Juste and Maxim in Maxim Mode; the numbers below are Maxim’s:

  1. During a double jump, hold the d-pad forward, then release it. On release the game again sets a backward deceleration; Maxim slows by 0.5 pixel per frame and stops in about 3 frames.
  2. Within 3 frames of releasing, press Down + Jump to jump-kick diagonally in your original direction. The kick doesn’t change that deceleration.
  3. When the kick hits something, you bounce back, exactly in the direction of the deceleration, so the deceleration becomes acceleration. Candles count as hits, and the bounce is the same as when kicking an enemy.
  4. Press attack on the frame you bounce off, and the air attack accelerates you by 0.5 pixel per frame every frame, indefinitely. One frame early you are still kicking and nothing happens; one frame late the deceleration has already been reset, so only that one frame works.
Glitch compilation: Accelerating off a candle

Zipping

Hit a thick wall fast enough and the character gets stuck in the wall, then rises up through it and ends up standing on top of the wall. Speedrunners call this zipping.

Damage glitch

Normally, after an attack hits an enemy, the same attack has to wait a short time before it can hit that enemy again (for example, about 0.5 s for the whip). But if you first hit with two different attacks and, before their intervals end, hit with a third attack, the third one may hit every frame (1/60 s), dealing a dozen or two dozen hits at once. Speedrunners call this the Damage Glitch.

Why: every attack has an ID. Each enemy has two slots recording “recently hit by ID …”, each with its own timer, cleared to empty when the timer runs out. When an attack touches an enemy, the game checks in this order:

  1. The ID is already in slot 1 or slot 2 → no hit (which is why the same attack has to wait before hitting again).
  2. Both slots are occupied → no hit.
  3. Otherwise → hit, recorded into the empty slot; if both are full, it isn’t recorded.

Step 2 should have been “slot 1 && slot 2” (both slots non-empty), but the code was written as “slot 1 & slot 2” (a bitwise AND of the two IDs). && only checks that both sides are non-zero; & compares the two numbers bit by bit in binary and keeps a 1 only where both bits are 1. So when both slots are occupied but the two IDs share no bits, the result is 0 and is treated as “a slot is still free”, so the third attack hits; but both slots are full, so it can’t be recorded, and on the next frame it still counts as “not hit yet”. It therefore hits every frame until one of the two slots times out and frees up space to record it.

InputsFirst two hitsBinaryANDResult
Cross → air whip → standing whipCross (9) + air whip (2)1001, 00100000Standing whip hits every frame
Holy Water → air whip → standing whipHoly Water (10) + air whip (2)1010, 00100010Works as designed; standing whip can’t hit
Cast Summon Fairy → release charged Crushing Stone → fairy’s hammerCharged release, first part (3) + second part (4)0011, 01000000Fairy’s hammer hits every frame

Methods (verified in the emulator):

Combinations calculated from the code only, not tested in the emulator:

Glitch compilation: Damage glitch

Common combinations

In theory Crushing Stone + any spell or sub-weapon works, but it depends on whether the casting order can be achieved, as well as on the hit order and the IDs.

So the same combination in a different order also deals different damage.

Without the Crushing Stone, the sequences you can do are air whip + ground whip, or flying kick + air whip. The whip is usually the third.

Common combinations:

Attack IDs

IDBinaryAttackFrames remembered
2000010Air whip41
3000011Standing or crouching whip, first part of a charged Crushing Stone release, Maxim’s roll30
4000100Second part of a charged Crushing Stone release29
5000101Whip flail16
6000110Slide, flying kick, Crush Boots hitting the ceiling31
7000111Knife1
8001000Axe21
9001001Cross21
10001010Holy Water16
11001011Holy Book21
12001100Sacred Fist21
15001111Mirage Knife21
16010000Soul of Hydra21
17010001Burning Cross21
18010010Bounding Flame21
19010011Heat Spiral21
20010100Shinning Knuckle21
21010101Magic Missile1
22010110Hail Stone21
23010111Squire of Ice21
24011000Ice Cubic17
25011001Water of Judgement6
26011010Icicle Knuckle21
27011011Sparkling Rain5
28011100Lightning Bolt21
29011101Holy Cross21
30011110Grand Bolt21
31011111Shield21
33100001Homing Thunder1
34100010Thousand Daggers5
35100011Ax Trap21
36100100Guardian Cross21
37100101Hydro Typhoon21
38100110Protector Bible21
39100111Spirit Fist21
40101000Summon Garuda21
41101001Evil Wing21
42101010Summon Warlock21
43101011Summon Aquarius16
44101100Summon Fairy41
45101101Summon Ashura21
47101111Maxim’s shuriken21
48110000Maxim’s air attack15
49110001Maxim’s ground attack21
50110010Maxim’s crouching attack, ↓↘→ + attack11
51110011Maxim’s clones11

Double kills

Two enemies can award EXP (and drop checks) multiple times when defeated:

All other enemies and bosses were confirmed in the emulator not to do this.

When an enemy is defeated, the game registers it in the bestiary, checks drops and adds EXP. Normal enemies can’t be hit again from the moment they are defeated, but these two can be “defeated” again after going down:

Glitch compilation: Defeating Talos and O repeatedly

Either-or candles

Clock Tower room 174 (A174, B174) has a Holy Water candle at the top and a $25 candle at the bottom, but only one of them appears each time you enter:

These are two bugs stacked together:

Glitch compilation: Either-or candles

Missing candles

In three vertical rooms, candles fail to appear or appear late:

Why in rooms 174 and 24: things in a room are spawned only when the screen is about to scroll to them. When a vertical room scrolls down, and right after entering, the game uses the candle’s actual position and spawns it about 0.2 screen heights before it comes on screen, so the two line up. When scrolling up, though, it uses the candle’s position before correction, so some candles’ trigger lines end up much further above the screen. If a candle happens to be in this gap when you enter (outside the range covered on entry, but with its trigger line already passed), it won’t appear as you climb past it, and only spawns after you climb past and walk back down. Horizontal rooms scrolling left and right don’t have this problem.

Why in room 166: in vertical rooms objects are ordered by their position before correction, and the downward check stops at an object that hasn’t been reached yet, blocking candles listed after it.

Glitch compilation: Missing candles

Candle respawns

Break a candle, move it off screen before it finishes burning, then walk back, and the candle reappears as if it had never been hit; the item it dropped stays where it is. Repeat this to farm drops from the same candle over and over; it works for heart, money and sub-weapon candles alike.

How:

Why:

Glitch compilation: Candle respawns

Candle shield

Stand on certain candelabras without breaking them and enemies can’t touch you; you only get hit about 0.8 s after leaving the candelabra. In the same room some candelabras work and some don’t, and it isn’t always the same from one playthrough to the next. For example:

Why: every object in the game is assigned a numbered slot, which records the area in which the object touches the character. When an object disappears, this area isn’t cleared; the whole table is only cleared when a game starts. Enemies write their own area when they get a slot, but candles of the floor-standing candelabra and brazier type don’t, so they inherit the area left by whatever object used the same slot before, such as an enemy in a room you passed through earlier.

In the game these candles belong to the same category as enemies. After the character touches an enemy, the game records “just touched an enemy” and doesn’t let enemies touch the character again for about 0.8 s. When a candelabra has a stale area that overlaps the character, the game keeps thinking the character has just touched an enemy, so real enemies can’t hit.

Glitch compilation: Candle shield

Vanishing wall

At the upper left of Luminous Cavern A102 there is a wall you need the Crushing Stone to break, with a warp point behind it. Enter the room from the bottom entrance, come up and stand still near the entrance, wait about a minute and then go up: the wall is gone, and you can walk straight through without the Crushing Stone.

Why:

Glitch compilation: Vanishing wall

Early Cyclops charges

By design, the Cyclops stands still for about 4 s after you enter, and if the character is near it when that ends, its first move should be Hammer; Charge only comes about once every 7.5 s. In actual play, though, it often charges earlier than expected: charging right at the start, or charging again shortly after you whip it, no matter where the character is.

Why: Charge and Hammer each have a timer, stored on an invisible helper object. This object should follow the Cyclops and decide when it should disappear, but the code is missing one value, so it ends up looking at a set of the character’s state flags instead: whenever the character does one of the actions below, it deletes itself. Once deleted, both timers reset to zero, and the Charge check comes first, so it charges as soon as it finishes its current action.

Actions that trigger it:

Hitting it with sub-weapons or spells (including Shield) doesn’t trigger it.

Height-based flame damage

The Sylph releases several purple (magenta) flames around itself, which circle it for a while, then fly at Juste trailing afterimages. The damage and element of a flame hit aren’t fixed; they depend on the flame’s height on screen at the time.

Glitch compilation: Height-based flame damage

Heights beyond the enemy data

The enemy data has only 125 records (the 100 in the bestiary plus objects not in the bestiary), but when a flame is in roughly the bottom 1/5 of the screen, the converted ID already exceeds that, and above the top of the screen it is larger still. The game doesn’t check the range and keeps reading further: right after comes the other set of enemy stats (the one used by Boss Rush and Maxim Mode), then the table of enemy name IDs, then the game’s text data. In normal play, the power when a flame touches Juste is as follows (by flame height):

Flame height on screenData looked upPowerHeights with an element
Top 1/4Early bestiary enemies12–51A few each of Fire, Ice and Wind
1/4–1/2 from the topMiddle bestiary enemies30–115A few each of Fire, Ice and Wind
1/2–3/4 from the topLate bestiary enemies, objects not in the bestiary1–202A few each of Fire, Thunder and Wind
Bottom 1/4Objects not in the bestiary, then the other set of enemy stats12–144One each of Fire and Wind
Above the top of the screen (up to about 1/4 screen height)Later part of the other set of enemy stats, table of enemy name IDs123–202, 471–561471–561 are Fire or Ice; a few others are Fire or Wind

Maxim Mode uses the other set of enemy stats; counting on from there, the power when a flame touches Maxim is as follows:

Flame height on screenData looked upPowerHeights with an element
From the top to about 4/5 from the topOther set of enemy stats105–202A few each of Fire, Ice, Thunder and Wind
A thin band about 4/5 from the topTable of enemy name IDs471–579Fire or Ice
Below the band to the bottom of the screenGame text dataMostly around 34000Flagged as “fixed damage” (ignores defense)

Fixed detonate button

With Burning Cross (Fire Book + Cross), pressing attack before it releases its fireball detonates it immediately. But the code checks the B button itself, not the attack button from the button settings: after moving attack to another button in KEY CONFIG, you still have to press B to detonate. Also, pressing B while holding ↑ doesn’t detonate it (the code requires B to be newly pressed and ↑ not held).

Tips & trivia: Burning Cross and the B button bug

Siren’s flight direction

Once every three moves, the Siren moves up or down. It should compare against the character’s height to decide whether to go up or down, but the code reads the character’s horizontal position on screen instead: the further right the character is, the lower she flies; with the character within about 1/5 of the screen from the left edge she always flies up, and within about 1/8 from the right edge she always flies down.

Dark room crash

In the two dark corridors on the lower level of Sky Walkway A (A149, A150), high jumping out of the room with Griffin's Wing from below the exit leading up can sometimes black out the screen and freeze the game, forcing a reset. Where it happens:

Normal jumps don’t trigger it, nor does having Night Goggles equipped. The same spots in Castle B aren’t dark and don’t crash.

Why:

Glitch compilation: Dark room crash