Entry 420
Kyvia's fights show their pictures: the beams, smokes, auras and their generators as the fight keeps them, the meteors falling with their trails and bursts, and Outbreak's thunderbolts
Documented in Bosses - Kyvia's second fight, Bosses - Kyvia's first fight.
Linked from Twenty-two play questions were already answered: the triage's list against the work since.
Files13 in 8 directories
kyvia.rscrates/piney-battle/src/boss/kyvia/core.rsgomora.rsthunder.rscrates/piney-effect/src/kyvia.rsboss.rscrates/piney-game/src/fx.rscrates/piney-gen/src/manifest.rstools/test_battle_kyvia_rs.pytest_boss_effect_rs.pycrates/piney-game/src/session/tests/kyvia_fx.rsdocs/engine/boss-kyvia.mdboss-kyvia-second.mdMentioned inGAPS.md:98GAPS.md:115
Worklog 411 left Kyvia's own pictures undrawn on both discs. Its rules
named every particle generator (Out::KyviaParticles, a table and row),
but nothing in the runtime started one. The meteors'
(EffKind::Meteorite) and Outbreak's thunderbolts' (EffKind::Thunderbolt)
Creates made no picture. A player saw the fight's attacks land with
nothing in the air: no light gathering, no beams, no smoke, no meteors,
no bolts, no auras about the core or the gomoras.
What the game draws
Mutation's code (kyvia01.cpp, kyviacore.cpp, kyviagomora.cpp, bosseff.cpp); Outbreak's copy is the same, its second fight's layout 0x10 further on. Every site is in docs/engine/boss-kyvia.md, "The pictures":
- The generators. About thirty
new ccParticleGeneratorsites over five tables:KyviaGenerator(28 rows on Infection, 30 from Mutation: the symbol's DWARF size is Infection's),KyviaDmgGenerator,CoreGenerator,GomoraGeneratorandGomoraAuraGenerator, each with its force fields. Each site has its own rows and force fields (row 5 twice, with ff 1 and ff 8). It either stands at a place or follows one (syncPos,syncPosType0):- the core's place, with the auras' offset (0, 0, 250);
DedDmgVec;- a beam's head or tail (
LBpos,LBposSub); - a gomora's
AuraPos. Some sites keep the pointer, so the fight can kill it later (the beams' ends before their bursts, the smokes at the death, a grown aura's last). The core pauses its other attribute's aura (+5 bit 0,pauseFlag) and frees it again. A gomora's attack clears its pointer without a kill. Kyvia 02's death smoke and the thunder's member smoke have distSW off.
- The meteors (
ccBossEffMeteoriteMissile0x0047aa90,Draw0x0047b330):- Each meteor is particle's
ANM_x300, drawn at transparency 0.5 and scale 3 and never stepped (its first frame throughout). - Two trails follow each meteor's place:
MissileSmokeGenerator6 (5) and 7 (6). - At each landing they are deleted (
ParticleDelete) and SE 35 plays. - The first's landing starts
BurstSmokeGenerator8, 9 and 11 and throwseffSmokeRock(now, rot, 75, 0, 20, -1), facing away from camera 2.
- Each meteor is particle's
- The bolts (
ccBossEffThunderbolt, OUT 0x00477410,Draw0x004778b0):- Each segment is particle's
CMP_x012onCLT_x012c1(mode 1), drawn with the stroke's own matrix. - On its first
Drawa disc bolt writesMissileSmokeGeneratorrow 8 (gLifeits time,gRadiusmax(350, range + 100)) and starts it. - At its end it starts
BurstSmokeGenerator10. ThunderboltAtkwrites row 17 (gLifethe thunder's time,gRadius50,pGenRate20) before each member's smoke.
- Each segment is particle's
In the port
- piney-battle
kyvia:Gennames each start by its maker, androws()gives its table, row, force fields and distSW.Place/Followsay where it stands,Heldwho keeps it.Out::KyviaGen(GenOp::Kill,Pause,Forget) is emitted where the game kills, pauses or clears a kept generator: the beams, the smokes, the core's auras, a gomora's aura.Meteorite::makeandfly(withMeteorCall) andthunder::Bolt::newandstrokeare pure steps on accRandsource, so a manager can run them alone.
- piney-effect
kyvia:startandgen_opmake and keep the fight's generators, the rows the game writes applied to the copy (Tables::generator_edited).MeteoriteandBoltare drawn after the boss's task from the rules' flights (BossEffects::sync_kyvia), or run alone (Make::MeteoriteAlone,BoltAlone).
- piney-game:
fx.rsstarts them and makes the meteors' and bolts' pictures at theirCreate.kyvia_showspublishes the followed places as anchors each frame.
- piney-gen: the effect group's
boss_kyvia,boss_kyvia_ff,boss_kyvia_dmg(_ff),boss_core(_ff),boss_gomora(_ff)andboss_gomora_aura(_ff), withKyviaGenerator's rows counted to the next table. Data version 33. - The session tests' Kyvia disc (
event_108_disc) was a generated field: area 47'sWORLD_MANwith its own event number, so the disc (EVENTAREAB8) was never built andDiscPoswas the origin. It is nowev_area_number(9), as for Gorre's arena.event_108_ends_with_kyviastill ends the event.
Checks
tools/test_battle_kyvia_rs.pynow records each start in full from the game: the force fields' rows, distSW, the place or what it follows (by member) and its offset, and who keeps it. It also records eachParticleKillof a kept generator (by member), the kept pointers (the body's light and beams, a gomora's aura) and the core's auras'pauseFlag. battle_probe prints the same from the rules' outs, its kills only for generators it keeps, as the game's pointers are.- Mutation: bulk 120 (161,184 frames) and 60 (84,657) agree.
- Outbreak's second fight: 60 (180,064) and 40 (129,363) agree, the three thunders reached.
- Outbreak's copy of the first: 30 (38,224) agree.
tools/test_boss_effect_rs.py'stest_kyvia_effectsruns the game'sccBossEffMeteoriteMissileCreate(pos, range 500, seven, no callback, no camera; camera 2 the test's camera) and, on Outbreak,ccBossEffThunderboltCreatefor each kind's disc bolt (with the caller's offset) and a member's. Each runs with the manager's pass frame by frame against boss_probe'smeteoriteandbolt: the draws (the fireballs'ccAnmand frame, the segments' clump, matrix and palette), the generators (rows, force fields, flags, place, what they follow: the meteors'now), kills and deletes, the rocks' effect slots, the sounds,rand()andgenrand().- Mutation: 4 cases, 472 frames, agree.
- Outbreak: 16 cases, 1,696 frames, agree.
- Skeith's, Fidchell's and Innis's cases still agree.
session::tests::kyvia_fx:kyvia_shows_its_meteors_beams_and_auras(Mutation's event 108 on the disc, the core's time cut short so the body strikes in turn):ANM_x300drawn 384 frames, generators following the beams' places 1,164 frames, the auras on the core throughout.kyvia_s_second_fight_shows_its_thunderbolts(Outbreak's event 211 on field 10's disc):CMP_x012drawn 3,458 frames, the thunder (act 6) reached.- Before, the fight started none of its generators, and
boss_makemade no picture for either effect.
- piney-battle, piney-effect, piney-world tests, piney-game's suite (four
threads), clippy, fmt,
piney-gen gen --check.
Shots (kyvia_shots, /mnt/data/claude/scratch/a420):
kyvia-mut-00702-act4.png: the beams leaving with their light and smoke.kyvia-mut-01170-act5.png: a meteor's fall and burst over the disc.kyvia-out-00702-act6.png: the thunder's bolts on Kite and the disc.
the gomoras' pushes, the pad's sway and the arm's picture (docs/engine/boss-kyvia.md, worklog 272) are other parts of the fight than its pictures and stay open; the blur (ccBossBlur) is drawn for no boss (worklog 117)