Falsebound Archive
5 Bugs & quirks 5.9

Slips in the attack effects

Basic attacks, special attacks and the skill cards that have an effect play an effect module: a small program of its own, loaded from the disc when needed. There are 233 of them, and many were built by copying another and changing it. Some mistakes spread by copying and some are a module’s own; the clearest are listed below.

Where
effect/B_MODULE.MRG and Z_MODULE.MRG (attack effect modules)
Found in the original effect code
Yes, all reproduced exactly in the decompiled code
Visible
A few change what is drawn; most change nothing on screen
Files
5 · 1.8 MB

Ones that change the picture

Effect Slip
Support aura (z261), used by Tao the Chanter The aura’s colour comes from an argument 0-3 (orange-red, yellow, green, violet). When picking the sparkle picture the code tests for 1 twice and never for 2, so Tao the Chanter’s green aura (argument 2, the only user of it) gets the sparkle picture of the violet aura (argument 3).
Mote grid (z039) A mote that restarts flies towards a point on a line, scaled by a ratio. The x and z of the end point are scaled; the y is not, so those motes fly slightly off the line.
Slifer the Sky Dragon’s special attack (z163, z181) The first beam ends 100 units above the source but at depth 0 instead of the source’s depth, so its direction depends on where the attacker stands; whether that is meant is not known. Its halo fades in its last stage, and when the fade passes 0 it jumps back to full brightness (the rise before it stops at full instead), so it can fade out a second time before the effect ends.
Surge (b123, b129, b132) Each burst around the target sets up 96 strips, but the draw loop stops at 16, so the bursts look sparser than their data allow.

The support aura’s slip can be seen on the console. Its sparkles are cut from one picture of four colours, and argument 2 gets the violet one, so Tao the Chanter’s green aura sparkles violet. The green sparkle the code meant for it is in the picture but never drawn.

The frames come from Dolphin. z261 was started by a patch, at the same moment of the title’s demo battle with argument 1, 2 or 3, so the three frames differ only in the argument. The demo plays the same way each time.

Effects that never say they are done

An effect reports when it is finished, so the battle can move on. Some never do:

Effect Slip
Enchanting Mermaid (z069) Its vortex sets its level to 0 and only then tests whether the level is below 0, so it never reports done and always runs to its 300-frame limit.
A family of disc effects (b023, b032 and relatives) The step can only count to 1, but the end test waits for 2. The frame limit ends them instead.
Ra’s summon effect (b179) It never moves itself to its closing stage, so it too runs until its frame limit.

Possibly out of bounds

Rocket Warrior (z175) searches its pools as if they were the size of the module it was copied from, which can run past their end. Whether this causes a visible fault is not known.

Harmless ones

Effect Slip
b125 Its second part counts its finished pieces up to 1 but waits for 2, so that part never reports done; the effect still ends on time because its first part does.
b047 Six large debris pieces get a random offset, but it is added to pool entries 0-5 instead of the pieces just created.
Rocket Warrior (z175) Both exhaust colours are written to the first colour field; of eight debris pieces, two are moved the same way.
b161 It searches for a free kite and then always uses entry 1.
b105 It fills 64 rows of a 16-row table at start, writing over its own data before that data is set.
Slifer’s summon effect (b178) It sets eight values to 10 and then to -10 “if i < 0”, which never happens.

Evidence

All 233 effect modules were decompiled into C that reproduces the original’s behaviour, and these slips were found while doing so. In each case the original machine code does exactly what is described; the “meant” behaviour is an inference from the code around it.