Catalog main-hand weapons
Weapon admission uses the original type 51018 definition, an exact shipped QL or a reviewed family interval, right-hand slot mask (298 bit 6) and an ordered damage range. It no longer requires a particular template ID. Unknown stats and requirement operators reject equip rather than treating an unknown stat as zero. Equality and strict minimum predicates joined by AND use effective abilities/skills, level, title, profession, breed, sex, side and race. Other predicate forms remain open.
The existing combat calculations read damage, protection type, range, attack skill weights, initiative, attack/recharge delay and overequipping thresholds from the quality-adjusted instance. This enables the original Baseballbat, Oak Bo, Meta Shield and five solar guns, plus the reviewed M-10 pistol intervals below. Left-hand scheduling, dual wield, wider endpoint families, original critical/hit selection and unimplemented item functions remain separate work; critical outcomes now have a provisional shared path. A reversed damage range, including template 123868, is rejected until the original interpretation is established; unsigned damage arithmetic must not turn it into an enormous hit.
| Template | Weapon | Profession restriction |
|---|---|---|
| 121564 | Baseballbat | Enforcer |
| 121565 | Oak Bo | Martial Artist |
| 121566 | Meta Shield | Meta-Physicist |
| 121567 | Solar-Powered Pistol | None |
| 121568 | Solar-Powered Rifle | Agent |
| 121569 | Solar-Powered Assault Rifle | Soldier |
| 121570 | Solar Trader Shotgun | Trader |
| 121571 | Solar Powered Submachinegun | Fixer |
Allocation of Oak Bo and the four provisional pistol professions remains a starting-loadout research question. Admission of the weapon does not settle which character should receive it at birth.
Meta Shield's OnWear AddSkill functions add 10 Projectile, Melee and Energy AC.
They use the ordinary equipment bonus path and native weapon instance, without
a shield-specific stat override. Worn weapons use persistent live identities
in FullCharacter and FullUpdateItem for both owner and observers. Unequip
retains the owner's detached dynel so its live inventory row remains usable;
observers retire it immediately. A successful later equip retires the owner's
old dynel before moving and recreating it. Native row deletion needs a separate
dynel despawn after the durable delete, including deleted bag children.
The original lifetime evidence is retained in
docs/research-notes/starter-weapon-research/inventory-reuse/findings.md.
Reviewed Rusty pistol qualities
Rusty OT M-10 Flechette Pistol uses explicit endpoints 123742 (QL1) and 123743 (QL11). Either stored endpoint accepts QL1..11; QL0 and QL12 are rejected. No name or adjacent-ID inference admits an unreviewed higher pistol tier. The original payload audit fully decodes both records, including all sections, requirements and presentation descriptors. All layouts align; only quality, value, MultiRanged, maximum damage, critical bonus and two wear thresholds vary. The current Auno QL5 record independently names this endpoint pair. It corroborates pairing, not historical 14.9.1 values or a captured original server family table. Its later Fling and MultiRanged values differ from the original payloads, and its later attack rating cap is absent from the original records.
| QL | Damage | Critical bonus | MultiRanged | Minimum Pistol / Fling | Value |
|---|---|---|---|---|---|
| 1 | 3-12 | 12 | 26 | 6 / 6 | 2321 |
| 2 | 3-13 | 12 | 29 | 11 / 8 | 2333 |
| 5 | 3-15 | 13 | 36 | 24 / 15 | 2525 |
| 6 | 3-16 | 14 | 39 | 29 / 18 | 2640 |
| 10 | 3-19 | 15 | 49 | 47 / 27 | 3354 |
| 11 | 3-20 | 15 | 51 | 52 / 29 | 3598 |
These minimum skills include action8 operator2's strict greater-than rule. Overequipping instead reads the interpolated raw thresholds, as in the original consumer. Attack/recharge remain 1.25 seconds, equip delay 1.5 seconds, range 22 meters, and a magazine of 20 Bullets. Stat436=90 selects ProjectileAC; it is not an attack rating cap. No OnWear, OnHit or Use gameplay effect appears in this family. Its four event10 presentation descriptors remain intact for the client.
The shared instance-stat helper follows original kkr.dll FUN_100f0c80's numeric
property whitelist. FUN_100eff20 rounds the interpolated difference by adding
0.5 before truncation; stat74 then uses FUN_100f1320's quadratic price curve.
For example, QL5's rounded linear value 2832 becomes final value 2525. Other
properties use the nearer endpoint, with the midpoint choosing high, following
FUN_100894c0. FUN_100f1200 supplies the instance's selected quality. Original
module SHA-256 is recorded below; bounded evidence, payload hashes and confidence
limits are retained in docs/research-notes/weapon-quality/catalog-audit.md and
local/weapon-quality/native-evidence.json.
Player and NPC combat share one immutable quality-adjusted weapon definition. Action8 requirements are copied and interpolated for combat's OE check; equip admission uses the same scalar rule. Normal/Fling damage, critical bonus, special timing, equip timing, ammunition capacity/recharge and shop valuation read the selected quality. Endpoints remain immutable catalog data. This does not add left-hand attacks or dual-wield scheduling; MultiRanged is resolved for native instance parity without claiming that subsystem is implemented.
Native remote weapon construction needs an additional rule. FUN_100b38b0
invokes FUN_100f1200 only when the packet parent is the local actor;
FUN_100b2830 loads stat23's base definition and applies explicit packet stat
pairs. Consequently, FullUpdateItem now selects the nearer definition for
stat23 and includes each numerical difference from that definition. Loaded
energy26 remains the owned ammunition count and quality54 comes from stat701.
This makes both views agree without changing the original client. The initial
second-client check reproduced raw high-endpoint damage20/value3598 for QL6;
the packet regression retains that failure. Evidence is in
local/weapon-quality/remote-native-evidence.json.
server/weapon_quality_test.go checks both stored anchors at QL1,2,5,6,10,11:
strict skill boundaries, equip deadlines, native endpoints, price, catalog
immutability, normal/critical/Fling damage, all OE tiers, ammo, reload and cold
recovery. server/weapon_quality_lifecycle_test.go follows a controlled QL5 drop
through death, repeated pickup, equip/remove, cancellation and one durable sale.
Skill loss during delayed equip and failed/ignored placement conserve the item;
failed shot/reload writes preserve both sides and a fresh retry succeeds. NPC
health reaches disk at its ordinary world checkpoint. These controlled drops
establish delivery and consumers, not historical Leet equipment membership,
quality selection, shop stock or mission rewards. Those remain priority work.
Headed GPU WASM owner/observer checks agree at QL5 and the QL6 midpoint,
including damage, critical bonus, MultiRanged and curved value. One-point-below
Pistol/Fling wear retains the same item. Native reload/cold restart retains
20 rounds and 80 source bullets; a normal hit consumes one round while Fling
retains 19, and both clients receive identical damage/count results. A later
reload leaves 20 rounds and 79 bullets. Removal retires only the observer's dynel;
re-equip preserves identity and resolves the same numbers. No page exception or
adapter abort occurred. Only the two owned QA characters/items were removed;
unrelated stopped-world rows and SQLite integrity were verified. Captures,
assertions and confidence limits are indexed in docs/research-notes/weapon-quality/README.md.
The complete server suite passes 1,421 roots/14,995 results; gamedata passes
23 roots/50 results. The affected selection passes 419 results, final race
checks pass 64 results, and go vet passes. Temporary endpoint-only combat and
remote-packet overlays fail the new regressions as expected. Final verification
is retained in local/weapon-quality/verification.json.
Ammunition contract
Original kkr.dll SHA-256:
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
Bounded REA evidence and the observed/inferred/unknown ledger are retained in
docs/research-notes/starter-weapon-research/findings.md and native-evidence.json.
- WeaponItem initialization
100abb20supplies omitted AmmoType 420 as -1. The HasEnergy flags setter1009f390initializes absent Energy 26 and Clip 212 to -1. These defaults are distinct from Can 30 capability bits. - Empty-weapon helper
100acd20accepts Energy -1, rejecting other values below 1. All five solar guns have Clip -1 and AmmoType 10; none has Can's NoAmmo bit 10. Their catalog descriptions and native behavior support unlimited firing. - Special predicate
100aaf10selects Fling by Can bit 12. Solar Trader Shotgun has that bit. Result helper1007c0f0preserves ammunition -1; the server supplies that sentinel for unlimited normal and special results. - Reload predicate
1007bba0and inventory search100ae410match source AmmoType 420 with the weapon and require source ItemType 76 == 0. Class 88 == 9 is not a native requirement. Missing source AmmoType has no verified default and is rejected by the server.
The server classifies positive finite catalog Clip values, excluding UINT_MAX, as consumable magazines. This is reconstruction policy, not an exact recovered native predicate for every omitted or malformed catalog combination. Other weapon instances store Ammo 0 internally and expose the native unlimited sentinel in combat results. The original finite magazine's initial loaded count remains unresolved; newly created finite weapons start empty.
Finite weapon FullUpdateItem packets carry the loaded count as stat 26. Shots commit one round with any lethal outcome; reload atomically transfers from the named compatible stack up to the weapon's own Clip, with its own RechargeDelay. Full, incompatible and failed transfers conserve both sides. The original reload protocol and durability rules apply. Fling keeps its pre-15.5.5 special prototype, with no round consumption and a persistent shared lock. Other advertised specials still need their own rules and outcomes.
Reviewed Shortened and regular M-10 qualities
Two additional explicit endpoint pairs extend the shared pistol path:
123744/123745 (Shortened, QL12..21) and 123746/123747 (regular, QL22..37).
Before admission, qualified QL13 wear failed at the public inventory handler;
the retained failing regression is in local/m10-quality/red-qualified-wear.log.
These intervals are explicit rows in item_families.yaml. The M-10.3 interval
is reviewed below; later M-10.4 and Nano tiers remain separate and unreviewed.
An independent read of all six original resource payloads, including Rusty, matches the exported records and retains their hashes. Complete within-pair headers, scalar membership, sections, requirements and presentation functions align. Only audited numeric properties and Pistol/Fling thresholds differ. This supports the explicit pairing; it is not a recovered server family table. The current AO Index independently lists these intervals but does not establish period values or acquisition.
| Interval / QL | Damage | Critical | Attack/recharge (cs) | Minimum Pistol/Fling | Value |
|---|---|---|---|---|---|
| Shortened / 12 | 3-21 | 16 | 125 | 56 / 31 | 3853 |
| Shortened / 13 | 3-22 | 16 | 125 | 61 / 33 | 3894 |
| Shortened / 16 | 3-25 | 17 | 125 | 74 / 40 | 4512 |
| Shortened / 17 | 4-25 | 18 | 124 | 79 / 42 | 4884 |
| Shortened / 21 | 4-29 | 19 | 124 | 97 / 51 | 7195 |
| Regular / 22 | 4-30 | 19 | 124 | 102 / 54 | 7683 |
| Regular / 23 | 4-31 | 19 | 124 | 107 / 56 | 7727 |
| Regular / 29 | 4-36 | 21 | 124 | 134 / 70 | 9881 |
| Regular / 30 | 4-36 | 22 | 124 | 138 / 72 | 10554 |
| Regular / 37 | 4-42 | 24 | 124 | 170 / 88 | 17780 |
All retain a 20-Bullet magazine, Projectile damage, 22m range, 150cs equip delay, Pistol attack, Dodge Ranged defense and Ranged Initiative. Minimum skills include the strict greater-than rule. Existing quality interpolation preserves both selected properties and the native nearer-endpoint override packet. No new OnWear, OnHit or Use gameplay function is introduced.
The expanded existing weapon tests cover both stored anchors at the interval ends, neighbors and rounding/midpoint boundaries. Public handlers check strict skill rejection, exact selected stats, immutable catalog data, owner/observer packets, attack/recharge cadence, normal/Fling damage, ammunition and reloads. Controlled QL13/30 drops follow their exact instances through pickup, rejected wear, wear/remove/rewear, cancelled/accepted/repeated sales and cold ownership. At the fixture's shop skills, final wallets are 195 and 528 credits respectively.
TestBrowserM10Qualities uses a controlled level-100 Adventurer and two real
WASM clients. Its abilities 200 contribute 49 effective skill points through the
existing float32 calculation: raw Pistol 351/Fling 23 give effective 400/72.
Native inventory input wears/removes QL13 and QL17, then wears QL30 and refuses
QL37 with the displayed minimum Fling 88. An actual ammo-on-weapon request loads
20 Bullets; one normal shot deals 72 Projectile damage, leaving 19 loaded and 80
carried rounds. Both clients show the same target HP 9928 from a controlled 10000 HP
checkpoint. All five exact item identities, slots, QLs and ammunition survive
page replay and two fresh clients after the warm server closes. This verifies
item contracts, not earned progression or original creature balance.
The native check passes in 98.16s (warm 63.37s, cold 34.78s); both clients' final
traces contain no errors. The independent verifier compares all six original
payload hashes and exact native/durable page/cold ledgers. Reports and reviewed
screenshots: local/m10-quality/20261102-133343/. The focused normal Go checks
pass in 26.742s (server) and 7.634s (gamedata); the expanded race selection
passes in 174.372s/97.482s, and vet passes. The published client is unchanged.
Historical shop, mission-reward and creature-drop membership remain unverified;
these selections are unchanged. A self-dated
February 2002 pistol guide names the Grand
Master line but supplies no Shortened/regular acquisition contract. Direct Auno
QL13/23 pages were inaccessible during the bounded follow-up. Original audits,
literal expectations and test reports are under local/m10-quality/.
Reviewed M-10.3 qualities
The explicit pair 123748/123749 admits OT M-10.3 Flechette Pistol QL38..119. Qualified QL39 wear previously failed through the public inventory handler. An independent original-resource read/reparse matches both complete exported records. Within-pair headers, stat membership, full sections, attack/defense weights, getter defaults and presentation descriptors match; only the reviewed numeric properties and strict Pistol/Fling thresholds vary. This supports the pairing, rather than recovering the historical server's family table.
| QL | Damage | Critical | Attack/recharge (cs) | Minimum Pistol/Fling | Value |
|---|---|---|---|---|---|
| 38 | 4-43 | 25 | 124 | 174 / 90 | 18639 |
| 39 | 4-44 | 25 | 124 | 179 / 92 | 18661 |
| 58 | 4-60 | 32 | 124 | 265 / 135 | 27579 |
| 59 | 5-61 | 32 | 123 | 270 / 137 | 28495 |
| 78 | 5-77 | 38 | 123 | 356 / 180 | 54402 |
| 79 | 5-78 | 39 | 123 | 361 / 183 | 56212 |
| 98 | 5-94 | 45 | 123 | 447 / 226 | 99105 |
| 99 | 6-95 | 45 | 122 | 452 / 228 | 101809 |
| 118 | 6-111 | 52 | 122 | 538 / 271 | 161691 |
| 119 | 6-112 | 52 | 122 | 543 / 273 | 165289 |
MultiRanged runs from 118 to 535. The pair retains a 20-Bullet magazine, Projectile damage, 22m range, 150cs equip delay, Pistol attack, Dodge Ranged defense and Ranged Initiative. No new OnWear, OnHit or Use gameplay effect is admitted. The production change is one shared family row.
Existing public-handler regressions cover both stored anchors at all ten QLs, including the midpoint and both minimum-damage/delay transitions. Combat cases use attack rating 800, keeping the upper endpoint out of OE while independently checking normal/critical and Fling damage, ammunition and reloads. Controlled QL39/79 pickups follow the exact physical item through failed wear, wear/removal/rewear, cancelled/accepted/repeated sales and cold ownership. Final fixture wallets are 934 and 2811 credits.
TestBrowserM103Qualities uses two controlled WASM clients. A level 200
Adventurer's abilities 300 contribute 74 trickle; raw Pistol 526/Fling 109 gives
effective 600/183 within native training caps.
Native input wears/removes QL39 and QL78, wears QL79 and refuses QL80's higher
Fling requirement. The observer's weapon packet must contain the correct
nearer definition and selected stats. An actual reload loads 20 Bullets; one
ordinary shot must deal 195 Projectile damage and leave 19 loaded/80 carried.
Page replay and fresh-server clients must retain all five exact item identities.
This is a controlled contract fixture, not earned progression.
Original payloads, index/payload hashes, the independent arithmetic and test
reports are in local/m10-3-quality/. The
current AO Index lists QL38..119;
it does not establish historical values or acquisition. Bounded web queries
found no period M-10.3 stock contract. The local Fandom dump contains no exact
M-10.3/M-10 plaintext match; its one Flechette match is unrelated buff rifles.
Original shop, mission and creature-drop membership remain open.
The native check passes in 66.26s (warm47.42s, cold18.84s); all ten retained
trace error arrays are empty. Its independent verifier checks native/durable
item ledgers, the shot/ammo totals and original payload hashes. Screenshots
and evidence are in local/m10-3-quality/20261102-143118/. The related normal
Go selection passes in 36.558s/7.689s, focused new-case race checks pass in
106.108s/97.535s, and vet passes.
Verification
server/starter_weapons_test.go covers all eight starter definitions, every
incorrect profession, equip deadlines, owner/observer instance packets,
unequip/reopen identity conservation, Meta Shield bonuses and removal, unknown
predicates, appearance restrictions, invalid QL, reversed ranges and left-hand
rejection. Solar normal/Fling results use -1 and cannot repeat a locked special.
Another shipped finite weapon (122099, QL161) checks energy-ammo matching,
10-round capacity, 2.5-second reload, per-shot durable debit and rollback before
damage on a failed save. Source-type regressions distinguish ItemType from
Class. Deletion cases cover inventory, bank, backpack, carried/banked bag
children and failed saves, checking that native row removal precedes dynel
retirement. Live-item delete requests may omit both template endpoints;
partial or mismatched nonzero endpoints remain rejected. Zero-valued wield
thresholds contribute no OE penalty and cannot cause integer division by zero
after skill loss. The zero edge follows the native masked-x87 conversion
model, not a native zero-denominator branch; see
docs/research-notes/starter-weapon-research/oe-zero-findings.md.
Existing equipment, ranged, special and atomic-outcome suites
remain applicable to the shared paths.
Two GPU/OpenGL WASM clients verified Meta Shield's native model and exactly
10/0/10 AC through equip, removal and same-session re-equip, plus a backpack
round trip with the same item identity. A wrong-profession character retained
its shield. Native Q and Fling hotkeys delivered solar shotgun normal and
special damage with ammunition -1. A QL161 energy rifle rejected Bullets and
loaded 10 rounds from 100 Energy Weapon Ammo, leaving 90 in the source stack.
Packet captures, native object probes, SQLite snapshots and error logs are
retained under local/starter-weapon-smoke/.
Committed reloads now update the owner and same-world observers before a first shot. Original routing scopes the ammunition transfer to the receiving character's inventory helper. Two controlled clients verify empty-gun reload, native action 5, the first impact and an unchanged observer weapon/stack through page/cold ownership recovery; see remote reload.
The native delete sender (N3Msg_DeleteItem, 10027670) forwards the auxiliary
identity pair unchanged to CharacterAction112. The observed live Meta Shield
request carries (0,0), so deletion accepts an omitted pair while retaining
source ownership/page/slot checks and exact matching of supplied endpoints.
The native evidence is retained in
docs/research-notes/starter-weapon-research/delete-auxiliary-findings.md.
A full server restart and fresh native clients restored the same shield/rifle identities, exactly 10 shield AC and 10 loaded rifle rounds in both views, plus the 90/100 compatible/incompatible ammo stacks. The native live-item Delete confirmation then removed the shield durably, acknowledged its ordinary inventory row and retired its cached dynel in that order. The other weapon and ammunition remained unchanged. All owned browser sessions closed without page errors or adapter failures.
Scoped cleanup removed the four owned characters and 20 remaining items,
restored the one nonlethal test NPC, and verified every unrelated stopped-world
row unchanged. Foreign keys and SQLite integrity passed. One default-port
HTTPS preview remains available for manual testing. Full evidence and final
verification are indexed by local/starter-weapon-research/verification.json.