commit cc406ab14571dd528dd568d124881d425573bfcc
parent edf7c0f9e64c620c4db33fcd36597d106ae8dc79
Author: anon <anon@example.com>
Date: Thu, 5 Nov 2026 22:17:08 +0000
Stop promising unsupported mission completion XP
Diffstat:
11 files changed, 63 insertions(+), 13 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -155,6 +155,8 @@ research separately. More screenshots and test cases do not count as new gamepla
affordability and progression pace without repeating full leveling runs.
Mission cash/items and combat XP may use documented provisional rules;
unimplemented mission token/completion-XP rewards must not be promised.
+ November 5: generated offers and recovered journals now advertise zero
+ completion XP, matching hand-in; cash and selected items remain payable.
Keep a compact matrix of passed paths and specific remaining failures.
- [x] **A8: Isolate administration before public hosting.** The current HTTP
diff --git a/docs/mission-offers.md b/docs/mission-offers.md
@@ -15,8 +15,11 @@ playfield3000 at89.302162,115.144440,151.160873. The objective item's original
payload SHA256 is
`645b946ec12830a3695e1c27659dc37676dbc2b884cb1f19e4fda1692e7066fe`.
The original item and exterior placement establish those assets, not a recovered
-complete contract. The narrative, displayed20 credits/100 XP and48-hour duration
-are provisional reconstruction choices. No private interior is assigned yet.
+complete contract. The narrative and48-hour duration are provisional
+reconstruction choices. Current [shared starter contracts](starter-missions.md)
+advertise level-scaled cash and a selected item, with both completion XP fields
+zero. The initial displayed100 XP promise has been removed because hand-in does
+not award it. The shared starter document describes the current content scope.
The authored booth catalog and shared template Use criteria still control
admission. Both opening and generating use the same playfield, five-metre
diff --git a/docs/starter-missions.md b/docs/starter-missions.md
@@ -14,6 +14,27 @@ resupply policy, not recovered historical balance; see the
[cash and supply budget](early-shop-stock.md#mission-cash-and-resupply).
The earlier ordinary-play records below retain their actual 20-credit payouts.
+Completion XP and tokens are unimplemented and are not promised. Both XP fields
+in the original RewardBox5 payload are zero in generated offers and accepted
+journal replay; the empty reward lists promise no token item. The unused
+mission XP recipe field and stored column have been removed. Creature kills
+still award their ordinary combat XP independently of mission hand-in.
+
+The focused reward regression reproduced the unsupported 100-XP promise in
+all 12 faction/level/difficulty cases. Its offer, cold journal and settlement
+checks now pass, alongside the existing admission, acceptance, rollback/retry
+and duplicate-settlement tests (25 test roots). The native socket regression
+also checks the displayed reward payload.
+
+The Omni browser resupply fixture opens and expands the accepted mission's
+description before hand-in. The reviewed reward section displays only
+"Cash: 500 credits" and the item reward. Hand-in pays those rewards, then the
+existing supply purchase and reconnect/cold checks pass. The 23.57-second
+capture is in `local/alpha-mission-cash/20261105-141616/3221228472/`; focused
+logs are in `local/alpha-mission-promises/`. Both test server and browser were
+closed. This fixes the reward promise, not completion XP/token implementation
+or the remaining A7 progression requirements.
+
## Original placements
A fresh format-aware audit of all original 14.9.1 resource 1000026 statel lists
diff --git a/server/gamedata/missions.yaml b/server/gamedata/missions.yaml
@@ -16,7 +16,6 @@
objective_item: 40822
# Provisional cash per selected mission level; supports early resupply/upgrades.
credits: 500
- experience: 100
# Reconstruction pool at mission QL; original probabilities are unresolved.
# East Wind Katana160216/160217 has period mission-terminal evidence; docs/east-wind.md.
diff --git a/server/gamedata/types.go b/server/gamedata/types.go
@@ -29,8 +29,7 @@ type MissionTemplate struct {
Position [3]float32 `yaml:"position"`
ObjectiveItem uint32 `yaml:"objective_item"`
Credits uint32 `yaml:"credits"` // Per mission level in recipes; concrete amount in offers.
- Experience uint32 `yaml:"experience"`
- RewardItem uint32 `yaml:"-"` // Concrete choice saved with an advertised contract.
+ RewardItem uint32 `yaml:"-"` // Concrete choice saved with an advertised contract.
RewardItems []uint32 `yaml:"reward_items"`
RewardQuality uint32 `yaml:"reward_quality"` // Zero selects the mission level.
Encounters []MissionEncounter `yaml:"encounters"`
diff --git a/server/mission_cash_test.go b/server/mission_cash_test.go
@@ -89,11 +89,11 @@ func TestStarterMissionCashFundsRecoveryAndSurvivesSettlement(t *testing.T) {
player, client := world.characters[1], world.clients[1]
offer := *client.missionOffer
var advertised []byte
- for _, word := range []uint32{56001, shop.booth, 5, scenario.credits, 0, offer.definition.Experience} {
+ for _, word := range []uint32{56001, shop.booth, 5, scenario.credits, 0, 0} {
advertised = binary.BigEndian.AppendUint32(advertised, word)
}
if offer.definition.Credits != scenario.credits || !bytes.Contains(output.packets[1], advertised) || player.inventory.Credits != 0 {
- t.Fatal("mission did not advertise the level-scaled cash after charging its fee", offer.definition.Credits)
+ t.Fatal("mission did not advertise only payable rewards after charging its fee", offer.definition.Credits)
}
collectMissionCashObjective(t, world)
cold := reloadMissionEntranceWorld(t)
diff --git a/server/mission_offers.go b/server/mission_offers.go
@@ -41,8 +41,8 @@ func appendMissionQuest(body []byte, offer missionOffer, id, owner, remaining ui
body = append(body, offer.definition.Description...)
body = append(body, 0)
- // Quest creator, RewardBox5 and the advertised cash/conditional XP/item reward.
- for _, word := range []uint32{56001, offer.booth, 5, offer.definition.Credits, 0, offer.definition.Experience, 1009, 1009} {
+ // Advertise payable cash/items; completion XP is not implemented.
+ for _, word := range []uint32{56001, offer.booth, 5, offer.definition.Credits, 0, 0, 1009, 1009} {
body = binary.BigEndian.AppendUint32(body, word)
}
if offer.definition.RewardItem == 0 {
diff --git a/server/mission_offers_test.go b/server/mission_offers_test.go
@@ -311,7 +311,7 @@ func TestMissionOfferNativeSocketSeparatesBrowsingFromAcceptance(t *testing.T) {
t.Fatalf("invalid native Quest14 description: %x", offer)
}
reward := offer[80+descriptionSize:]
- if binary.BigEndian.Uint32(reward[8:12]) != 5 || binary.BigEndian.Uint32(reward[12:16]) != 20 || binary.BigEndian.Uint32(reward[20:24]) != 100 {
+ if binary.BigEndian.Uint32(reward[8:12]) != 5 || binary.BigEndian.Uint32(reward[12:16]) != 20 || binary.BigEndian.Uint32(reward[20:24]) != 0 {
t.Fatalf("wrong displayed cash/XP reward: %x", reward[:24])
}
action := reward[80:216]
diff --git a/server/missions.go b/server/missions.go
@@ -23,14 +23,14 @@ type acceptedMission struct {
doors []missionDoor
}
-const missionColumns = "owner_id, booth_id, seed, difficulty, dimension_0, dimension_1, dimension_2, dimension_3, dimension_4, dimension_5, originator, description, playfield, entrance, position_x, position_y, position_z, objective_item, credits, experience, reward_item, reward_quality, expires_at, world_id, layout, objective_id, completed"
+const missionColumns = "owner_id, booth_id, seed, difficulty, dimension_0, dimension_1, dimension_2, dimension_3, dimension_4, dimension_5, originator, description, playfield, entrance, position_x, position_y, position_z, objective_item, credits, reward_item, reward_quality, expires_at, world_id, layout, objective_id, completed"
func (mission *acceptedMission) fields() []any {
return []any{&mission.owner, &mission.offer.booth, &mission.offer.seed, &mission.offer.difficulty,
&mission.offer.dimensions[0], &mission.offer.dimensions[1], &mission.offer.dimensions[2], &mission.offer.dimensions[3], &mission.offer.dimensions[4], &mission.offer.dimensions[5],
&mission.offer.originator, &mission.offer.definition.Description, &mission.offer.definition.Playfield, &mission.offer.definition.Entrance,
&mission.offer.definition.Position[0], &mission.offer.definition.Position[1], &mission.offer.definition.Position[2],
- &mission.offer.definition.ObjectiveItem, &mission.offer.definition.Credits, &mission.offer.definition.Experience, &mission.offer.definition.RewardItem, &mission.offer.definition.RewardQuality, &mission.expiresAt, &mission.world, &mission.layout, &mission.objective, &mission.completed}
+ &mission.offer.definition.ObjectiveItem, &mission.offer.definition.Credits, &mission.offer.definition.RewardItem, &mission.offer.definition.RewardQuality, &mission.expiresAt, &mission.world, &mission.layout, &mission.objective, &mission.completed}
}
func insertMission(tx *sql.Tx, mission *acceptedMission) error {
diff --git a/server/world.sql b/server/world.sql
@@ -248,7 +248,6 @@ CREATE TABLE IF NOT EXISTS missions (
position_x REAL NOT NULL, position_y REAL NOT NULL, position_z REAL NOT NULL,
objective_item INTEGER NOT NULL,
credits INTEGER NOT NULL,
- experience INTEGER NOT NULL,
reward_item INTEGER NOT NULL,
reward_quality INTEGER NOT NULL,
expires_at DATETIME NOT NULL,
diff --git a/tools/client/test_mission_cash.mjs b/tools/client/test_mission_cash.mjs
@@ -31,6 +31,33 @@ try {
if (initial.phase === 'hand-in') {
assert.equal(initial.inventory.Credits, 0);
assert.equal(initial.completed, false);
+ // Inspect the accepted contract before collecting its payable reward.
+ await page.keyboard.press('Control+4');
+ await game.wait('accepted mission icon visible', state => state.grids.some(grid => grid.cells.some(cell => cell.identity[0] === 56003)));
+ const mission = game.state.grids.flatMap(grid => grid.cells).find(cell => cell.identity[0] === 56003);
+ await page.keyboard.down('Shift');
+ try { await click(mission); }
+ finally { await page.keyboard.up('Shift'); }
+ await game.wait('mission description opens', state => state.regions.some(region =>
+ region[0] === 760 && region[1] === 620 && region[2] === 1024 && region[3] === 768));
+ // Move and expand the original information window to expose its rewards.
+ for (const [startX, startY, endX, endY] of [[870, 628, 450, 148], [602, 286, 1000, 730]]) {
+ const start = await game.point(startX, startY), end = await game.point(endX, endY);
+ await page.mouse.move(start.x, start.y);
+ await page.mouse.down();
+ try { await page.mouse.move(end.x, end.y, {steps: 10}); }
+ finally {
+ const sequence = game.sequence;
+ await page.mouse.up();
+ await game.waitInput(sequence, 1026);
+ }
+ await game.snapshot();
+ }
+ await game.wait('mission reward text fits the window', state => state.regions.some(region =>
+ region[0] === 340 && region[1] === 140 && region[2] > 900 && region[3] > 600));
+ await game.save(output + '/reward-promise');
+ await game.key('Escape');
+ await page.keyboard.press('Control+4');
const book = initial.inventory.Items.find(item => item.Template === 40822);
assert(book);
await click(cell(104, book.Slot - 16));