Salvage Repentance+ 1.9.7.17 decompilation toolkit, notes and name database
Ghidra 12.2 project and full dump of isaac-ng.exe v1.9.7.17, query scripts, notes indexed by entity, anm2/rooms reimplementations, and db/ (names + fields) that build.sh re-applies. Fixes awk numeric address comparison in find.sh/decompile.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
ad8f933086
124 files changed
+1366681
No files matched your search
@@ -0,0 +1,129 @@
|
||||
# Group b notes
|
||||
|
||||
Applying patch_b.py to the parsed records runs cleanly (dry run). Nothing was built or run.
|
||||
|
||||
## blubber / half_sack / splasher: NpcAI::ENTITY_GUSHER 0050af90
|
||||
- Movement: `NPCAI_Pathfinder::MoveRandomlyBoss` (call to 0x7e6300, the engine's `hop`), pushing `.5 * speed / friction`, with friction `*= .75` each tick. The records used `wander .35/.4, ret .8` and now use `move hop, speed .5, retention .75`. The splasher had no retention set. Feared or charmed: EvadeTarget plus an extra .8 brake (not ported).
|
||||
- Splats/creep: `IsFrame(10, 0)`.
|
||||
- Blubber: MakeSplat `.4 + rnd*.4`.
|
||||
- Splasher: MakeSplat `.2 + rnd*.3`. Both now get `splatter` (same shape as Black Globin's Body, which runs this same AI).
|
||||
- Half Sack: red creep 1000.22 scaled `.2 + rnd*.3`, now `creep period 10, scale .35`, which is the mean.
|
||||
- Blubber shot:
|
||||
- First cooldown is `20 + rand%20` (shared by the family). It fires when cooldown < 1 and velocity > 0, then sets cooldown `30 + rand%30`.
|
||||
- The shot is `FireBossProjectiles(3 + rand%3, (0,0) i.e. random, traj 10, params{HeightModifier -15, FallingSpeedModifier +5, PositionOffset (0,5)})`. That gives fall_base 5-10+5 = 0 and accel .32+1 = 1.32.
|
||||
- Patched to `turret period 1, one_in 1, cooldown 45 (mean)`, with `boss_volley count 3 count_random 2, fall_base 0, fall_acceleration 1.32, offset_y 5`. The HeightModifier -15 is not ported.
|
||||
- Splasher shot:
|
||||
- Cooldown `60 + rand%30` (mean 75).
|
||||
- One FireProjectiles mode 0 shot along its own velocity unit times 5, with FallingSpeedModifier -5, FallingAccel +.3, BulletFlags |= 2 (EXPLODE), and a colour offset of .4.
|
||||
- The `green` kind stays, with speed 5. Its aim is still at Isaac.
|
||||
- Blubber death: morph into Half Sack on `rand&1==0` unless hp <= -25. This already matches `transformation`.
|
||||
- Proposed features:
|
||||
1. `turret/cooldown_random [count, step]`: cooldown = cooldown + random(count)*step, drawn as it fires. The blubber needs [30,1] on 30; the splasher [30,1] on 60.
|
||||
2. `turret/first [base, random]`: fireCount on spawn = base + random(random); here [20,20].
|
||||
3. `turret/moving: true`: the turret's start needs |velocity| > 0.
|
||||
4. A shot field `along_velocity: true`: aim = unit(actor velocity) * speed, and no shot when the velocity is 0 (Splasher, 0050af90 type 0xee branch).
|
||||
5. `creep/scale_random`: the puddle's scale is scale + random()*scale_random (Half Sack: .2 + .3).
|
||||
|
||||
## psychic_horf: NpcAI::ENTITY_HORF 00513080. Skipped (already matches)
|
||||
- range 200, IsFrame(7) check, cooldown 28 = 4 checks x 7, speed 7, friction .7, homing (BulletFlags |= 1). Hard mode (14 / speed 10) is ignored.
|
||||
|
||||
## hardy: NpcAI::ENTITY_HARDY 00500f70
|
||||
- Friction `*= .95` every tick.
|
||||
- Idle: extra `*.5`, so retention .475 (was .9). It attacks on `rand%5==0 && IsFrame(5, index) && stateFrame<1`, with no range. Was period 4, one_in 8, range 300.
|
||||
- Attack%d: on the `Slide` event it pushes 20 toward Isaac once, so the Slide attack is now `impulse 20` (was `lunge 3`), retention .95.
|
||||
- Slide (state 4): pushes .7 along its own velocity unit every tick until it hits a wall or rock ahead (dot > .5, grid collision 3/4), then Hit. Retention .95 is unchanged. On the crash:
|
||||
- It breaks the grid and shakes the screen 12.
|
||||
- Players within 90 get a 3-speed push.
|
||||
- subtype 0: 8-way speed 10 rock shots (variant 9).
|
||||
- subtype 1: 8-way plus FireBossProjectiles(6).
|
||||
- subtype 2: dies, FireBossProjectiles(8, scale 1.2) and 2 + rand&1 rock spiders.
|
||||
- Hit: extra `*.6` (retention .57, was 0). On end, stateFrame = 60, so Hit now has `cooldown 60`.
|
||||
- Proposed feature `lunge_along_velocity`: the per-tick lunge heads along unit(own velocity) instead of at Isaac or its main axis (Hardy's slide push of .7). The engine's lunge_facing snaps to an axis, so it was not used.
|
||||
- Watch: the cooldown on an attack that ends in `become` may be lost when the record changes. If it is, `become` should carry the cooldown over.
|
||||
- hardy_2 and hardy_3 (not in my list) run the same AI. They need the same edits: period 5, one_in 5, no range, impulse 20 from Slide, idle retention .475, Hit retention .57, cooldown 60. The `hardy(e)` function in the patch can be applied to them unchanged.
|
||||
|
||||
## goat: NpcAI::ENTITY_GOAT 004f2c20
|
||||
- Squad AI. A leader goat, re-picked every 300 ticks, gives roles to the goats in the room by distance to Isaac. The closest gets role 2 (dasher), the next role 1 (shooter), the rest role 0 (EvadeTarget plus .8 brake, never attacking).
|
||||
- Walk: FindGridPath with speed .8 toward Isaac (role 1: .68 toward Isaac + vel*dist*.15). Friction `*= .97`. Now `move path, speed .8, retention .97` (was wander .5 / .8).
|
||||
- Dash (role 2):
|
||||
- Start: `rand&3==0`, projectileDelay<1, |dy|<24, and a clear line (CheckLine mode 1). Now `period 1, one_in 4, line row within 24, sight`; range 300 and enemy_limit 3 are gone.
|
||||
- From DashBegin's Shoot on: velocity += 10 * (sign dx, 0) each tick under friction *.7. That makes engine `lunge 7, retention .7`. The y also eases toward its row's centre.
|
||||
- It ends when the cell 40 px ahead is blocked, giving DashLoop `on_wall end -> DashEnd`. It used to be repeat-on-speed. Then projectileDelay = 45, so DashEnd has `cooldown 45`.
|
||||
- Shoot (role 1): needs projectileDelay<1 and `FUN_006cae60(lead 5 ticks, IsFrame 7, range 120, LOS)`.
|
||||
- Patched to period 7, range 120, sight; one_in is gone (it was 5 / 1-in-6 / 200).
|
||||
- Shoot fires FireProjectiles mode 1, speed 10: two shots at +-16 deg, spread .5592.
|
||||
- Shoot2 fires mode 3: three shots at 0 and +-24 deg, spread .4189. Both were speed 7 / spread .2 before.
|
||||
- Brake *.6 during the attack (retention .6). Afterwards projectileDelay = 45 (cooldown 45).
|
||||
- Proposed feature `squad`: role assignment within an entity type.
|
||||
- Every `period` (300) ticks, or when a member's attack ends, its live actors sorted by distance to Isaac take `roles[i]`, with the rest taking the last role. Here roles = [dash, shoot, evade].
|
||||
- Each role names the attack indices it may roll, plus its own move (evade = flee with retention .8 extra, shoot = path .68 with lead .15*dist).
|
||||
- Without it, every goat can do both attacks.
|
||||
|
||||
## tar_boy: NpcAI::ENTITY_TARBOY 005442a0
|
||||
- Idle is pinned to its spot, with friction *.8. The decision timer i1 starts at `20 + rand%40`.
|
||||
- When the timer is 0, each tick:
|
||||
- `rand&7 != 0`: teleport to the closest free cell with tar creep (1000.26, older than 20 ticks) to Isaac. If Isaac is within ~11 px (dist² < 120), a 1-in-16 roll picks a random room point instead. No creep cell means no teleport, and the roll is retried next tick.
|
||||
- Otherwise, if 60 < dist < 280, rand%5 != 0, the target cell is free and it is on creep: Attack2, a mouth at Isaac + vel*dist*.1.
|
||||
- Otherwise: Attack. On Shoot it fires `FireBossProjectiles(6, lead target, traj 10, BulletFlags 8 GOO, Scale .7)`.
|
||||
- Timers: after Attack and Attack2, i1 = `15 + rand%40`; after TeleportEnd, `20 + rand%40`.
|
||||
- Patch:
|
||||
- Attacks reordered to [Attack2, Attack, Teleport, TeleportEnd]. Teleport's next moves to 3.
|
||||
- Attack2: period 1, one_in 10 (1/8 x 4/5), range 280, range_min 60. Its old cooldown 30 is replaced by 15 + [40,1] once.
|
||||
- Attack: period 1, one_in 8, no range, cooldown 15 + [40,1] once. Its volley is now fall_base -5, fall_acceleration 1.32, spread 1 (aimed), scale .7; the old speed 6 and fall .7 are gone.
|
||||
- Teleport: period 1, no one_in (it takes the leftover share, about 7/8).
|
||||
- TeleportEnd: cooldown 20 + [40,1] once.
|
||||
- first_cooldown [20, 40].
|
||||
- Gaps:
|
||||
- When Attack2 is ready, the spit's share comes out at .9*.125 instead of 0. The order-first engine can't split one 1-in-8 roll into 4/5 / 1/5.
|
||||
- Proposed feature `attacks[]/odds_of_previous`: an attack tried only when the previous attack failed its own non-random gates, with its own one_in. Simpler would be a `choice` list `[{attack, weight, gates}]` drawn once per ready tick.
|
||||
- The aim lead (Isaac vel * dist * .1) does not fit `aim_lead` (fixed ticks). Proposed: `aim_lead_distance: k`, lead = vel * |d| * k.
|
||||
|
||||
## cod_worm: NpcAI::ENTITY_COD_WORM 00531350
|
||||
- Pinned in place, friction *.7 (retention .7, was .5).
|
||||
- Pulse:
|
||||
- It is invulnerable. Any hit moves it to Attack and adds `2*damage` (capped 30) to stateFrame.
|
||||
- It digs out only when Isaac is NOT within 150 px with a clear line, and stateFrame <= 0.
|
||||
- DigOut sets stateFrame `80 + rand%40`, counted down through DigOut (32 frames) and PulseOut (vulnerable). At 0 it does DigIn and goes back to Pulse.
|
||||
- Attack, on Shoot: `FireBossProjectiles(5 + rand&3, Isaac, random()*10)`.
|
||||
- Patch:
|
||||
- count 5 + count_random 3, spread 1. The volley uses the mean trajectory 5: fall_base 0, fall_acceleration .82. The old speed 9 is gone.
|
||||
- DigOut: period 1, no one_in, range_min 150.
|
||||
- PulseOut: ticks 48 + ticks_random [40,1] (replaces repeat 3).
|
||||
- Proposed features:
|
||||
- `volley/trajectory_random: n`: per volley, f11 = random()*n, giving fall_base = 5 - f11 and accel .32 + .1*f11.
|
||||
- A gate `far_or_unseen: range`, true when |d| >= range OR there is no line of sight (DigOut). range_min alone ignores the line check.
|
||||
- A hit-delay `hurt_delay {per_damage 2, cap 30}` that pushes the next unhurt roll back.
|
||||
|
||||
## willo: NpcAI::ENTITY_WILLO 005586b0 (helpers 005581b0 orbit, 005583d0 attack, 00557f70 slot)
|
||||
- Slot: Isaac + radius (v1.x 120 * v1.y 1) at angle `base - (frame + (index%2)*.5) * .5pi * .035`, so the spin is .055 rad a tick (sign: the angle decreases). Patched radius 110 to 120 and spin .03 to -.055. The sign may need flipping if the engine's y axis differs.
|
||||
- Steering sets the velocity directly: `min(|slot - pos|/2, 10)` toward the slot, plus a share of Isaac's velocity. That is a hard snap, not the engine's speed .25 / retention .7 pull, and it is not changed. Proposed: `orbit/snap {share .5, cap 10}`, velocity = clamp((slot - pos) * share, cap).
|
||||
- Attack: `rand%9==0` each tick (was period 7, one_in 30). Needs cooldown 0, within 20 px of its slot, in the room, and no other Willo in its attack.
|
||||
- On Shoot it fires one aimed shot at speed 10, FallingSpeedModifier +4. Patched period 1, one_in 9, speed 10.
|
||||
- Proposed gates: `near_slot: 20` (orbit only) and `type_attacking_limit: 1` (no other actor of its type mid-attack).
|
||||
|
||||
## gas_dwarf: NpcAI type 874, listed as Entity_NPC::moms_heart_mausoleum_death 00561a20 (misnamed)
|
||||
- Walk: FindGridPath with speed 1.2, friction *.9. Now `move path, speed 1.2, retention .9` (was chase .45 / .8). During HeadAttack the path speed is 1.0 (not ported).
|
||||
- Attack: `rand&15==0` each tick when i1 < 1 and field b40 (seen?) is set; no range. Patched period 1, one_in 16, range removed (was 150 / 1-in-10 / period 7).
|
||||
- It spawns a smoke cloud 1000.141 with timeout 180 (gas frames 90 to 180).
|
||||
- The cloud's velocity is (facing +-1, 0) turned by a random +-30 deg, at speed 10 + random()*10.
|
||||
- Every IsFrame(5): Isaac within 40 px makes it kill itself. That death is BombExplosionEffects radius 40. Any other death fires one EXPLODE shot along velocity*.3, capped at 4.
|
||||
- Proposed features:
|
||||
- `gas/velocity {facing: true, turn: 60, speed: 10, speed_random: 10}`: the cloud drifts.
|
||||
- `self_destruct {range 40, period 5}`: the actor dies, and the death runs a bomb blast of `blast_radius 40` that hurts Isaac.
|
||||
- Anm2: gas_dwarf.anm2 HeadAttack has a Trigger EventId 1 at frame 8 (frame 9 counted from 1), but the package defines only Event 0 "Explosion". Add `<Event Id="1" Name="Shoot"/>`, which the record's `release: Shoot` needs.
|
||||
|
||||
## super_pooter: NpcAI::ENTITY_FLY 00506bd0 (type 14 var 1)
|
||||
- Range 200, IsFrame 7, and LOS all already matched.
|
||||
- Cooldown is 35 (0x23), was 28.
|
||||
- FireProjectiles mode 1 at speed 7 is two shots turned by (.961, +-.276), so the fan changes from [.8, +-.2] to [.961, +-.276].
|
||||
- Movement: brake *.6, plus .8 while the cooldown runs. The pooter random-target flight is left as `hover`, a Flash-derived tuning.
|
||||
|
||||
## level_2_fly: NpcAI::ENTITY_FLY 00506bd0 (0xd6). Skipped
|
||||
- Already matches: stop 25, gain .08, cap 1.2 doubled, drift every 3rd tick, edge push .06 inside 80..540 x 230..420, retention .6.
|
||||
- Inexpressible: before the y*.5, the steering vector is turned 45 deg, `(dx - dy, dy + dx)`, which is the spiral approach.
|
||||
- Proposed `flying_chaser/steer_turn: 1 | -1`: d' = (dx - s*dy, dy + s*dx). The Level 2 Fly is +1 and the Full Fly is -1, giving `(dx + dy, dy - dx)`.
|
||||
|
||||
## full_fly: NpcAI::ENTITY_FLY 00506bd0 (0xf9)
|
||||
- Stop distance is 25 for types 0x12, 0x50, 0xd6, 0xf9 and 0x333, so it changes from 35 to 25.
|
||||
- The death volley FireProjectiles mode 9 (8, 6) is a ring of 6 at speed 8, which already matches.
|
||||
- Same steer_turn gap as the Level 2 Fly (-1).
|
||||
Reference in new issue
Block a user