Curves for Offense, Defense and Resilience in the Hostile Space host (build r2775). Move a slider and the curve follows; hover a chart for exact values. Each tab ends with what has been found so far and how well it is supported.
From the earlier offense-effectiveness work (OUT/offense-effectiveness/web/equations.md and its progress.log), read from the host decompile and checked against live host calls there. Status marks are that work's own. In this session I confirmed the two lookup tables used on these tabs against the binary (481 skill_level and 256 armor_level entries, identical) and re-implemented the offense math here, tested against the earlier calculator. I did not rerun its host cross-checks.
| Finding | Status | Source |
|---|---|---|
Systems Offense. skill_level[OffenseSkill/10] + 1 + ocv/10 + DEX + WeaponSchool/3 (C integer division); +10% if the target faces away; plus raw ammo bonus; then × your crew ratio (floor 0.25). Gear and buff Offense of N adds N/10. | Verified | equations §2 |
The roll. X = roll + Offense − Defense, roll uniform 0–199 (0–99 if the weapon-school skill is 0). X ≤ 100 is a miss, so a gap of −98 or better is needed for any hit. | Verified | equations §4 |
Damage bands. 100 < X < 150: weak hit, random 1 to w/3. X ≥ 150: (X−150)·w/200 + random 1..w/2, capped at the weapon damage w (×1.2 when facing away). Precision adds a chance of a bonus hit; ammo adds flat damage. | Verified | equations §5 |
| Plateau. Mean damage reaches 95% of its maximum at a gap of about +245 and 99% at about +289 (exact enumeration of the model here, same as the earlier calculator, for weapon damage 100 to 1500). The earlier notes quote +225 to +250 and +275 to +285 from measured curves. A gap of +350 clears every roll. Past that, more Offense does nothing. | Verified (model); ranges differ slightly | equations §5, §10 |
| Offense cannot touch dodge (level-based, reduced by your Precision) or shield deflect (up to 30%). Both zero the damage after the roll. | Verified | equations §6 |
| Measured. A saturated shooter (Offense 725) saw no change from extra buffs. An Offense-0 build (456) hit level-200 and level-300 mobs 0% and 20% of shots, and 60% and 50% with +100 Offense from a buff. | Verified (small samples) | progress.log 21:49 |
| Typical level-90 player. Systems Offense p10 647, median 694, p90 790, from 440 saved characters by formula (facing bonus included, ammo excluded). | Computed, not traced | progress.log 21:16 |
| Client "combat rating". The number the host sends per weapon slot is your final Offense, not Offense minus Defense. Not confirmed on a real client screen. | Verified (captures) | equations §9 |
| Not modelled: ambush from cloak, weapon-psion procs, pets, damage over time, mobs as attackers (different roll divisor), the shield and hull split, modulo bias of the random draw. | Not modelled | equations §11 |
This tab is about your Defense when mobs shoot at you. It replaces an earlier version that drew the mob's Defense, which is the Offense tab's target. Checked in this session against the live host: get_offense for mobs and get_defense for players by direct in-process calls (750 of 750 equal), 2,708 real shots from a booted scratch server, of which 165 had the test character as the target (every offense, defense and roll value equal), and mob weapon damage (see the table). Formulas are from the decompile (decomp/303bb0.c, 303d50.c, 329870.c).
| Finding | Status | Source |
|---|---|---|
Your Defense. skill_level[DefenseSkill/8] + 1 + 2·DEX + dcv/9, then × max(crew/crewMax, 0.25) at the shot. Note the skill is divided by 8 and Dexterity counts double. | Matched (in-process and 165 real shots) | get_defense, create_attack_ss |
Mob offense. ocv/10 + 4·level + skill_level[level] + 21 (+1 below level 31). Bosses use 5·level. Then +10% if you face away from it, then × max(crew ratio, 0.25). Pets with a player owner get × 0.75 (not drawn). | Matched (in-process and real shots) | get_offense, create_attack_ss |
The roll. Mobs always roll 0 to 199. X = roll + offense − defense; X ≤ 100 is a miss. A gap of +101 or more means no roll misses; a Defense 99 above its offense means none land. | Matched (real shots) | create_attack_ss |
Damage bands for mobs. 100 < X < 150: random 1 to w/3. X ≥ 150: (X−150)·w/300 + random 1..w/2, capped at w (1.2 w when you face away). The divisor is 300 for mobs and 200 for players, so a mob needs a larger gap to reach full damage. 48 landed shots could only be explained by 300. | Matched (48 discriminating shots) | create_attack_ss |
| Seen in play. A level 55 to 58 miniboss against a Defense of 565 missed all 131 shots. Mobs of level 115 to 141 (68 shots, including a level-141 boss) never missed: 52 did damage and 16 landed rolls were zeroed by dodge or deflect. | Observed | vectors/roll_trace*.jsonl |
Mob weapon damage. weapon damage = int(delay × unit) where unit = (diff/4) × 22.2222233 × 0.0009999… (about diff/180) and diff is the host's level difficulty (a piecewise curve, tabulated from the binary). Minibosses and bosses × 1.7; definitions with id 300 to 499 × 1.3; the two Nexus mobs × 2; sentries × 0.6 at spawn; a pet with a player owner uses a separate difficulty curve without the /4. The delay is the weapon's own, ±3 at load (50 if the slot has no weapon). The difficulty curve adds a large constant past level 350, so damage more than doubles between level 350 and 351. | Matched (2,448 host calls; 6,237 definition slots; 192 live slots) | setMobDamage, calculate_mob_difficulty |
Level 480 and above. The skill_level table is read past its end and entries 480 to 487 are 0, so mob offense drops by about 450 there and recovers slowly. The host caps mob levels at 500. | Table dump; formula matched | skill_level_r2775.json |
| Dodge and deflect come after the roll and do not use Defense: dodge from your ship level, Precision and buffs, deflect from your shield (up to 30%). | Verified earlier | equations §6 |
| Not modelled. Ambush from a cloaked attacker (adds 3 × its level to offense; seen on 17 mob-versus-mob shots), a rare extra bonus roll that pushed 4 high-X boss hits past the cap, psion attacks, damage after shields, and PvP offense modifiers. | Not modelled | this session |
| Defense and Resilience are separate. Neither Resilience formula reads Defense. | Verified (reader list) | report.md §1 |
From this research session (report.md, progress.log, vectors/): disassembly of build r2775, calls of the real host functions, and a trace of a booted scratch server. Three fresh reviewers re-derived the static parts.
| Finding | Status | Source |
|---|---|---|
What it is. The ship stat resist_psion (+0x3f8), shown in game as Resilience. It counters exactly two things: psion resist rolls and weapon-hit interrupts. | Live | report §1 |
Psion resist. base = 5·(min(your level,90) − attacker level) + 25 (+40 for a mob with ability 5). chance = clamp(10, 90, trunc(0.6·R + base)), resisted if chance > roll 0–99. Players with Tactics trained add Tactics/25 + 5 to R. | 35,734 live calls, 0 mismatches | report §2 |
Interrupt. v = max(0, 36 + attStr/4 − yourStr/4 − trunc(R/10) − trunc((yourLevel − attLevel)/2)); chance added = trunc(v · min(bonus/base, 1.1)), kept as a maximum. Your casts, hyperspace, gate and heals then roll against it. | 14,112 live calls, 0 mismatches | report §3 |
| No effect on hit roll, damage, ammo or crit bonuses, shield deflect, armor or dampening. The only readers of the stat are the two formulas above, display, save and Lua code. | Static, 3 reviewers | report §1 |
| Where it comes from. Items with stat id 14 (max 50 per item in the data), buffs of type 15 and 49 (psions 105, 905, 123, 1205, 1082), minus Compromise. Races give none. No cap on the stat; it is rebuilt from zero on every recalculation. | Static, reviewed | report §5 |
| Live checks. The Resilience psion took a test character from 0 to 98 (5 + Telepathy 93). Compromise took a Shard Lord from 62 to −3. One real mob-to-player psion roll matched the formula. | Live | progress.log |
| Mob Resilience. Roamer mobs carry level + 5, which matches psion 905 as a self-buff. Meaning of ability 5 is unknown. | Inferred | report §4 |
| Untested: the Strength terms on a real server row, stun and disable side branches of the interrupt, and the true reachable maximum of Resilience (the shaded band is an estimate). | Open | report §7 |
All figures are for host build r2775. The curves recompute the host's integer and float32 steps in your browser; they are models of the host, not the host itself.