info.html · 介绍 · play.html · 游玩 · llms.txt · 下载与本地运行 · ZIP · GitHub
《梦幻西游》是以《西游记》神话世界观为背景的西游题材 mudlib,以"青岛站" 分支自 2002 年 1 月 15 日起运行,隶属于经典的"西游记"引擎家族(与本站收录的 xyj2000f 等同源),底层引擎标注为 MudOS V22Pre11。新手从长安城中的"南城客栈"起步,黄飞鸿、孙悟空等耳熟能详的角色都以 NPC 身份出现在场景里;角色拥有体格、根骨、悟性、灵性四项天赋,踏上取经之路,帮会、 门派、九重天/十二宫/冥界等玩法名词贯穿角色档案,整体氛围偏休闲。与本站收录的手足档案 mhxyqd 属于同一套 2002 年代码库的另一条"青岛站"分支。
English
A Journey to the West-themed wuxia/fantasy mudlib running as the "Qingdao Station" branch since January 15, 2002 (part of the classic Xiyouji engine family sharing lineage with this project's xyj2000f, built on a MudOS V22Pre11-labeled core). New characters start at the South City Inn in a Chang'an setting, with well-known figures like Sun Wukong and Huang Feihong appearing as fixed NPCs alongside the standard four attributes (physique, bone-structure, aptitude, spirituality) and a scripture-pilgrimage framing; guild, sect, and cosmology terms (Nine Heavens, Twelve Palaces, the underworld) surface throughout character records, in a generally casual-paced game. It shares its 2002-era codebase with this collection's sibling mhxyqd, also branded a "Qingdao" release.
README
内容亮点
- 以《西游记》神话世界观为背景:新手村是长安城中的"南城客栈",黄飞鸿、 孙悟空等耳熟能详的角色都以 NPC 身份出现在场景里。
- 角色拥有体格、根骨、悟性、灵性四项天赋,踏上取经之路。
- 帮会、门派、九重天/十二宫/冥界等玩法名词在角色档案里都能看到痕迹, 整体氛围偏休闲。
在线试玩
https://mudlibs.fluffos.info/mhxy/
管理员账号 / Admin account
- ID:
fluffos - 密码 / Password:
Mud@2026("身份标识"/SuperPassWord 同样是Mud@2026) - 中文名 / Display name: 浮浮
- 权限 / Level:
(admin)(最高级别),通过/adm/etc/wizlist授予。
警告:对外公开架设前请务必修改此密码(及 SuperPassWord)。
本地运行
cd libs/mhxy
~/src/fluffos/build-debug/src/driver config.fluffos游戏端口:40016。
NOTES · 移植与修复记录
mhxy.rar → mhxy
- Archive:
archives/mhxy.rar(18.8MB — "梦幻西游"/"Fantasy Journey to the West", 青岛站/Qingdao station, running since 2002-01-15). Same 西游记 lineage as archive #15 (xyj2000f) — shares the age-gate question,convertd.lpcGreek-table typo shape, etc. Not a byte-duplicate of梦幻西游2002版.rar(a separate archive in this collection with the same game name) — different snapshot, processed separately; cross-reference when that archive's turn comes. - Mudlib root: nested at
梦幻西游2002版/mhxy/world/(the archive's own top folder is a snapshot-dated Chinese name, then anmhxy/dir with Windows driver binaries + client-facing files, thenworld/is the actual mudlib). Config atmhxy/config.mhxy. - Port: 40016.
Status: DONE — boots clean, playable over telnet
Full flow confirmed: banner, GB/BIG5 prompt (same legacy pattern as
xyj2000f), stats, age-gate question. Note: the BIG5 hint text
in the banner is mojibake (same shape as other libs — a BIG5-encoded
substring inside an otherwise-GBK file), cosmetic only.
What was fixed
1. Encoding + .c→.lpc: 1506 refs auto-fixed, 99 angle-bracket .c>
refs, and 304 local angle-bracket includes converted to quotes
automatically (convert_lib.sh's generalized fix — by far the
largest count seen yet, confirms this pattern is very common in the
西游记/xiyouji lineage specifically). static→nosave: 104 files.
Two files triggered a grep: binary file matches warning during the
local-include conversion step (d/lingtai/obj/yuanpinzhu.lpc,
daemon/class/yaomo/xueshan/cuixin-zhang/cuixin.lpc) — the script
handled it gracefully and continued; not investigated further (not on
the boot path).
2. adm/daemons/convertd.lpc — the SAME Greek-alphabet-table stray-
trailing-backslash bug as xyj2000f ("α\", should be
"α",, repeated ~45 times in this file specifically). Gotcha this
time: this file has CRLF line endings, so the straightforward
s/\\"(,)?$/"\1/ fix from xyj2000f silently did nothing
(sed's $ anchors before the \n, not before a preceding \r) —
needed s/\\"(,)?\r?$/"\1\r/ to actually match. Worth remembering:
always check for a stray \r before concluding an end-of-line sed
fix "did nothing" quietly (0 change reported, no error) — CRLF
content is common across this whole archive family.
3. /u/feizei/log (a wizard's personal log directory) was missing from
the archive, causing repeated Wrong permissions for opening file
.../log for append at boot (same shape as the missing-directory
pattern documented for lib #3 — a nonexistent directory manifests as
a permission denial, not ENOENT). Created it.
Known remaining issues (documented, not fixed)
- 315 lpcc-sweep failures (of 11785, 97.3% pass) — not triaged further given time constraints; boot/login path unaffected.
How to run
cd libs/mhxy
~/src/fluffos/build-debug/src/driver config.fluffos
python3 ../../scripts/mudclient.py 127.0.0.1 40016 --timeout 10 --send "gb" --send "" --send "quit"Post-hoc fix: UTF8-native is_chinese/registration (AGENTS.md §15h)
Applied in a later batch pass across the whole project: is_chinese/is_chinese2
in the shared chinese.lpc simul_efun fragment used GBK byte-range checks that
silently never match real Chinese text once strings are UTF-8 (this driver's
str[i] returns a Unicode codepoint, not a GBK byte). This broke character
registration specifically -- any real Chinese name was rejected. Fixed the
range check to test the CJK Unicode block instead, and halved the
GBK-byte-calibrated length bounds in check_legal_name to match. See
AGENTS.md §15h for the full writeup; confirmed via a real interactive
registration test (Chinese surname + given name reaching the next prompt).
Re-verification pass: driver rebuild + formatter + WASM (2026-07-23)
- LPC formatter: ran
format-corpus.mjsacross all 11785.lpcfiles underwork/— 11635 reformatted, 112 unchanged, 38 refused (token-mismatch safety gate, expected/fine on this size of legacy corpus, not investigated further). - Native retest against the freshly-rebuilt driver: booted (this lib doesn't print a driver-level "Initializations complete" line the way some other libs'
master.lpcs do, but adebug.logreview + a livemudclient.pyconnection confirm it's up and fully responsive — a large 11785-file preload does take a little over a minute of CPU time and produces routineEval interrupted/Too long evaluationtraces from a couple of preload-time content-placement daemons walking large zones, all caught/non-fatal, same shape as ordinary mega-content preload noise, not new). Ran the full interactive flow (gbencoding select → age-gateno→new→ English id → Chinese name → password ×2 → "SuperPassWord" secondary identity ×2 → email → webpage → ICQ → gender → an in-game gift/attribute-point wizard9/yconfirm) with a real Chinese name (秦风三/ idqflibc), reached the actual starting room (南城客栈), and confirmedscorerenders a complete, correctly-populated character sheet andquitexits cleanly. Zero fatal errors indebug.log. No regression from the reformat or the driver rebuild. - WASM build test (
scripts/wasm_client.js): boots cleanly (only the expected non-fatal preload warnings/errors — missing network daemon programs,dns_master/ftpd/httpd— same non-fatal shape as native). Login is blocked by the documentedquery_ip_number()WASM limitation, but via a different call site than thesscanf-based site-ban pattern already known fromrzrmud/bxsj:logind.lpc'sencoding()calls"/adm/daemons/ipd" ->seek_ip_address(query_ip_number(ob))to look up a friendly "connecting from" description; under WASMquery_ip_number()returned an empty string for the console connection (confirmed directly from the driver's own error trace:seek_ip_address("")), andipd.lpc'sseek_ip_address()doesuser_ip = explode(ip, ".")then unconditionally indexesuser_ip[1]— with an empty IP,explodeyields a single-element array, souser_ip[1]throws*Array index out of bounds, uncaught, right in the middle oflogon()'s encoding callback. This aborts the rest of the login sequence for that connection, leaving it in a bare command loop that replies "什么?" to everything instead of ever reaching the id prompt. This is the same class of driver-level WASM gap the project already documents (an IP-format-dependent code path breaking on a malformed/emptyquery_ip_number()under WASM), not a mudlib bug — the identical code path works perfectly natively (confirmed above, real Chinese-name registration completing end-to-end). Not patched, per the standing policy against fixing WASM-only driver gaps in the mudlib. Status: boots under WASM; login blocked by a query_ip_number()-under-WASM limitation (different trigger site than the already-documentedsscanf-ban-check shape, same root cause).
WASM-enablement pass (2026-07-23): loopback-allow + throttle bypass + admin seeding
Gates patched (loopback = 127.0.0.1, any 127.*, or an empty/malformed
non-dotted-quad string, which is what current WASM builds return):
adm/daemons/band.lpc—is_banned(),create_char_banned(),is_strict_banned()short-circuit return 0 for loopback;allow_multi_login()returns 1000 (effectively unlimited) for loopback.adm/daemons/logind.lpcencoding()— newlocal_connflag; the!ip_namedestruct and the "Non_number" character-scan destruct are skipped for loopback/malformed IPs (this was the WASM login blocker).adm/daemons/logind.lpc(~line 567) — the 40-second "刚退出就想进来" quick-reconnect throttle now exempts loopback (kickout punishment timer kept — game design).adm/daemons/ipd.lpcseek_ip_address()— returns "本地连接" for loopback/short IPs instead of crashing onexplode(ip,".")[1](this was the documented WASMArray index out of boundsblocker).adm/daemons/securityd.lpcmatch_wiz_site()— loopback always passes wizard site restriction.- No
uptime()startup gate exists in this lib (checked; only cosmetic uses in httpd/cmwhod).
Admin account: fluffos / Mud@2026 (SuperPassWord also Mud@2026),
Chinese name 浮浮, granted (admin) via /adm/etc/wizlist (file also
normalized from CRLF to LF; previously the CR was absorbed into the parsed
level string). Verified: registration via real flow, re-login, and
update /d/city/kezhan.lpc succeeds. Saves at data/login/f/fluffos.o +
data/user/f/fluffos.o (not gitignored). Fresh normal registration
re-verified end-to-end (test char removed); debug.log clean.
Fail-closed retrofit (2026-07-24)
The loopback carve-out above was originally written to ALSO treat any
empty/non-string/unparseable IP as trusted-local (a fail-open pattern,
written defensively against an older WASM query_ip_number() bug that is
now fixed upstream). Corrected to strict loopback only ("127.0.0.1",
"::1", or a "127." prefix) in band.lpc (×4), securityd.lpc's
match_wiz_site, ipd.lpc (now falls back to an "未知地区" placeholder
for unparseable input instead of "本地连接"), and logind.lpc's
local_conn flag and reconnect throttle. Re-verified the loopback path
still logs in, looks, and quits cleanly after tightening.
深度功能测试 / Deep functional test (2026-07-24, round two)
Native driver (build-debug), one continuous playthrough per the §10.7
methodology, following libs/bxsj/NOTES.md/libs/xiyouji/NOTES.md's
worked examples. Read doc/help/specials/newbie in full first — it named
the starting inn (南城客栈), the answer 拜师/apprentice/learn ...
from ... sect-join and skill-learning idiom, the fight-vs-kill
safety distinction, and a rough "who's weak enough to spar" heuristic
(judge by name: 小学童/小丫环/etc.). This lib shares the d/jjf
将军府-sect-entrance shape with xiyouji's already-documented §7.17 bug
(same lineage, noted in this file's own header), so that room got
specific attention — and did turn out to have a live crash, though a
different root cause than §7.17's (see below).
Test characters (all kept as playthrough evidence):
- id
qinfeng, Chinese name 秦风扬, passwordTest1234, male — the main playthrough character. State at end of session: apprenticed to 秦富 (Qin Fu, 将军府/General's-Mansion sect,将军府第四代弟子), learnedforce(内功心法, organic teacher path) andunarmed(扑击格斗之技, gained from a real fight), survived afightagainst alittle japNPC (took real damage, HP bar showed伤残/crippled, did not die), slept and woke cleanly in/d/jjf/guest_bedroom, quit cleanly at least twice (dropping its starting 粗布衣 each time, same item-drop-on-quit shapexiyouji's NOTES.md documents for this lineage), and was reconnected into successfully many times, including after real wall-clock gaps and after simulated unclean (RST) network drops. Saves:work/data/user/q/qinfeng.o,work/data/login/q/qinfeng.o, pluswork/data/zhangmen/zhangmen_qin_qiong.o(the sect-teacher NPC's own save record, updated by the successfulapprentice— concrete on-disk evidence the fixed sect-join path persists correctly end to end). - id
shenqing, Chinese name 沈清扬, passwordTest5678, female — a second fresh registration used to confirm the fixes work for the other gender branch and from a clean state. Reached 南城客栈,scorerendered correctly, quit cleanly. Saves:work/data/user/s/shenqing.o,work/data/login/s/shenqing.o. - id
cehsheng, Chinese name 程星辰, passwordTest9999, male — a third fresh registration used as the final post-.C-rename regression check (see bug 5 below). Reached 南城客栈,scorecorrect, quit cleanly. Saves:work/data/user/c/cehsheng.o,work/data/login/c/cehsheng.o.
What was tested and confirmed working
- Registration: three independent real Chinese names, both genders, full flow (
gbencoding choice → student age-gateno→new→ English id → Chinese name → password ×2 → SuperPassWord ×2 → email → webpage → ICQ → gender → gift-point wizard9/yconfirm), landing in南城客栈every time. - Exploration: read room
.lpcsource to plan routes (exits aren't always the ones the room description implies) —南城客栈→朱雀大街→十字街头→青龙大街×2 →answer 拜师→将军府→练武场(front_yard, sandbags/秦富) →练武场(front_yard2, logs/pits/秦叔宝's actual sect-entrance NPC) →正厅(main hall, 秦琼) →客房(guest_bedroom) →兵器架(jjf_bingqi) →玄武大街(xuanwu-n0/n1) →天监台. Room descriptions, exits, and day/night flavor text all correct throughout. - Sect join:
answer 拜师at the gate NPC (秦安) unlocks entry;apprentice qin fuinfront_yard(NOT the gate) succeeds ("秦富决定收你为弟子...恭喜您成为将军府的第四代弟子"), confirmed viascore's师承field. This is the exact room whose first-ever compile crashed pre-fix (bug 1 below) — re-verified post-fix across several fresh-driver-restart boots with zero recurrence.d/jjf/front_yard2.lpc'szhangmen-shaped NPC now shows its correct title (大唐天下兵马大元帅 朝廷兵马大元帅(Zhang men)) on the very first visit of a fresh boot, not the corrupted-stray-0shape §7.17 documents forxiyouji. - Skill learning (organic teacher path):
skills qin fulists the sect's 9 techniques;learn force from qin fusucceeds ("你听了秦富的指导,似乎有些心得...你的「内功心法」进步了!"), confirmed viaskills. - Combat: found no literal training-dummy
accept_fight()-mirror object actually placed in any live room (d/city/obj/muren.lpcexists but isn't referenced from any room'sobjectslist — dead content, not investigated further, out of scope); used/d/city/npc/japan2.lpcinstead (combat_exp = random(200),init()'s own auto-attack is commented out — passive, safe, explicitly room-no_fight-aware in its own dead code, confirms the author intended it as a low-stakes sparring target).fight japin玄武大街(xuanwu-n0, NOTno_fight) worked correctly: combat opened, both sides exchanged blows over several heartbeat ticks, character took real damage (气血bar degraded to伤残) and survived; fleeing by moving rooms mid-fight (perhelp combat's documentedfightsemantics) also worked cleanly.南城客栈(kezhan) is a deliberateno_fightsafe zone by design (confirmed in source,set("no_fight", 1)) — not a bug, matches the MOTD's own "本站对新手将提供适当的保护" newbie-protection claim. - Sleep/wake:
sleepin/d/jjf/guest_bedroom(if_bed+sleep_room) →disable_player()→wakeup1()call_out fires later →enable_player()called again on the SAME (already-living()) object — this is the exact reentrant-call shape bug 1 guards against, and re-verified LIVE that the fix does NOT block this legitimate path: woke up correctly ("你一觉醒来,只觉精力充沛"), andlook/score/iall worked immediately after (provingenable_player()'sdelete_temp("disabled")genuinely ran, not silently skipped). - Shop:
listat the inn's 店小二 renders the full price list correctly;buy jiudai from xiao ercorrectly rejects with "你的钱不够" — not fully verified live: a fresh character starts with zero gold, and no gold-earning path was pursued in the time budget, so an actual successful purchase was never completed. Stated explicitly rather than silently skipped, per §10.7 rule 6. - Death/respawn: not verified live — reaching lethal combat against a deliberately outmatched NPC was out of the time budget for this pass; the one real fight conducted (see above) was won safely. Stated explicitly per §10.7 rule 6.
quit: clean both times used, drops the starting 粗布衣 (matches this lineage's established item-drop-on-quit design perxiyouji's NOTES.md — not re-litigated here),debug.loggrepped immediately after eachquitand stayed clean (no new执行时段错误/Too deep recursion/error:lines) — the exact check the §7.16bxsjbug taught this project to never skip.- Unclean (net-dead) disconnect + reconnect, tested twice: once reconnecting within a couple seconds of an RST-forced socket close (
SO_LINGER+0, closer to a real network drop than a plainsocket.close()), once waiting ~35 real seconds first (past this lib's own internal 15-secondnet_dead()→do_net_dead()mark-as-dead delay, well inside its 600-secondNET_DEAD_TIMEOUT/user_dumpwindow). Both times:debug.logstayed completely clean through the disconnect, the wait, AND the reconnect, and the reconnect landed the character back in a fully valid, explorable room with all state (score/i/skills) intact — no void-room stranding, no crash. This lib structurally does not have the §7.20 void-parking bug class at all: readobj/user.lpc'snet_dead()/do_net_dead()/reconnect()— unlike the ES2/xiyouji-lineage shape §7.20 documents, this lib'snet_deadhandler nevermove()s the player anywhere (noVOID_OB/temporary holding room mechanism exists at all); it just disables the heart_beat and schedules a delayeduser_dump()while the player object stays exactly where it was, so there's no location to restore and nothing for a brokenreconnect()to fail to do. Confirmed->reconnect(IS actually called from the login flow (adm/daemons/logind.lpc:1083), unlike the "defined but never called" flavor §7.20 also warns about. Worth recording as a clean bill of health on this specific bug class, checked (not assumed) via both source read and live reproduction. - Reconnect after a clean
quit+ a real wall-clock gap (100 real seconds, not simulated): re-logged in asqinfeng, confirmed vialook/score/i/skillsthat location, sect membership, learned skills, and inventory (the 粗布衣, re-donned by then per its own logic) all persisted correctly. - Mid-wizard-reconnect (§7.21 shape) — NOT tested live: this lib's character-creation gift-point wizard (
0-3reroll /9+yconfirm) is short enough, and every registration in this pass was completed in one sitting before any disconnect test, that net-deading specifically mid-wizard was not attempted given the time budget. Stated explicitly as unverified rather than silently assumed safe.
Bug 1: enable_player() reentrancy crashes a sect-entrance NPC's first-ever preload compile — matches AGENTS.md §7.19, but the DOCUMENTED FIX ITSELF would have been wrong here
This matches the existing §7.19 class (enable_commands()/
enable_player() called again on an already-living() object from
inside that object's own init() chain re-invokes init() while the
original call is still on the stack) — not a new bug class — but
applying §7.19's literally-documented fix (if (living(this_object()))
return;) would have introduced a real regression on this lib, which is
worth recording as an addendum to that section.
- Symptom: reproduces on PRELOAD ALONE, no player connection needed —
/tmp/mhxy_boot.log(captured stdout of the very first boot attempt this pass, before any fix) shows, right after preload reaches/d/xueshan/npc/zhangmen.lpc:
``
Too deep recursion.
program: /feature/name.lpc, object: /d/xueshan/npc/zhangmen#114, file: /feature/name.lpc:14
``
Same first-visit/first-compile-only timing sensitivity §7.17/§7.19
document elsewhere in this catalog — the blamed file:line is whatever
happened to be executing when the call-depth limit tipped over, not a
fixed location.
- Root cause:
std/char.lpc'ssetup()(inherited by every character, NPC or player) unconditionally callsenable_player()(feature/command.lpc). Every one of this lib'sd/*/npc/zhangmen.lpcsect-entrance NPCs (9 copies, one per sect, same shape asxiyouji's documented family) callssetup()twice: once from its owncreate()(line 29, the legitimate call), and again from its owninit()(line 55,me->setup();, AFTERcreate_identity()/reset_me()/restore()/fully_recover()have already run) — a redundant call with no apparent purpose beyond "make sure everything's set up," but on this driver it re-invokesenable_commands()on an object the driver already knows isliving(), which re-triggers that object's owninit()while the originalinit()call is still on the stack — genuinely reentrant, repeating untilToo deep recursion.aborts it. - Fix, and why the naive
living()guard is WRONG on this lib specifically: guardedenable_player()itself (the shared choke point) with a dedicatednosave private int in_enable_player_now;reentrancy flag — set at entry, checked before doing anything, cleared on the one exit path. Deliberately did NOT useif (living(this_object())) return;, which is what §7.19 literally prescribes and what an earlier draft of this fix used, until a targeted regression test caught the problem:disable_player()(same file,feature/command.lpc) callsdisable_commands()immediately followed byenable_commands()again — its own comment explains why ("enable command again so this object would be marked living again... block command in alias.c instead of here"). That meansliving()is already true across every one of this lib's real disable/re-enable cycles:feature/damage.lpc's unconscious→revive(),cmds/std/sleep.lpc's sleep→wakeup1()/wakeup2(), and several disguise-item flows (leaf.lpc/baoyi.lpc/yi.lpc/clloth.lpc/jia.lpc, alldo_enable_player()command handlers). Aliving()-gated guard would have SILENTLY NO-OPED every one of those legitimate re-enables — in particular skippingdelete_temp("disabled"), which is what actually lets a player type commands again — while still blocking the one pathological case it was meant to catch. Caught this BEFORE shipping it by grepping everyenable_player(call site (29 hits across the lib) and specifically tracing the sleep/wake and unconscious/revive flows, then live-testing both end to end (see "What was tested" above) with the corrected reentrancy-flag version. - Verified: reproduced live pre-fix (see the crash log above, from the very first boot of this pass); post-fix, re-tested via three separate fresh
driverrestarts with zero recurrence (grep -a "recursion\|Too deep" log/debug.logempty every time), thefront_yard2sect-entrance room's NPC title renders correctly on first visit (not the corrupted-0shape), and the sleep/wake + unconscious-adjacentenable_player()call sites were confirmed still functional (see "What was tested"). Scope: the fix is at the sharedenable_player()choke point, so it protects all 9 of this lib'szhangmen-shaped sect-entrance NPCs (d/jjf,d/nanhai,d/sea,d/xueshan,d/death,d/lingtai,d/moon,d/qujing/wudidong,d/wusheng, plus several more perfind . -iname zhangmen*) regardless of individual verification — only thed/jjf(将军府) andd/xueshan(雪山, the one that happened to crash first during preload) instances were directly walked to/observed live. - File:line:
libs/mhxy/work/feature/command.lpc— newin_enable_player_nowdeclaration + guard aroundenable_player()(function starts at what was line 119, now offset by the added comment block). Crash site waslibs/mhxy/work/d/xueshan/npc/zhangmen.lpc(structurally identical tolibs/mhxy/work/d/jjf/npc/zhangmen.lpc:35-56, the copy actually walked to live).
Bug 2: std/room.lpc reset() reentrancy — same shape as AGENTS.md §7.17, applied proactively as defense in depth
std/room.lpc's setup() calls this_object()->reset() synchronously
as the last step of every room's create() (line ~210, now ~223), and
reset() only marks its NPC-population bookkeeping done on its very
last line (set_temp("objects", ob)) — the identical structural shape
§7.17 documents for xiyouji. Not independently reproduced as the
proximate cause of any crash THIS pass (bug 1's enable_player() guard
alone closed every reproduction attempted), but the underlying
reentrancy hazard is real and lib-wide (every room inherits
std/room.lpc), so applied the same nosave int resetting_now; guard
xiyouji's fix uses, at the top of reset() and cleared on both return
paths. Confirmed inert for the normal case: re-tested several
multi-NPC rooms (南城客栈/kezhan with 4 NPCs, 朱雀大街/zhuque-s1,
练武场/front_yard and front_yard2) after the fix and saw identical,
correct NPC population every time. File:line:
libs/mhxy/work/std/room.lpc:10-19 (declaration), :44-47 and :70-73
and :113 (guard entry/both exits).
Bug 3: absolute path in angle-bracket #include — matches AGENTS.md §6.1 exactly
d/obj/books-nonskill/book-qujing.lpc:4: #include </d/qujing/obstacle.h>
— an absolute path inside angle brackets never resolves on this driver
(the <> resolver doesn't special-case absolute names), so the file
failed to compile at all (Cannot #include /d/qujing/obstacle.h cascading
into Undefined variable 'obstacles'). This item is carried by
/d/city/npc/jieding.lpc (西行游客/疥顶小僧, a wandering-monk NPC placed
in 朱雀大街, one hop west of the starting inn — encountered on this
pass's very first exploration move), whose own create() does
carry_object("/d/obj/books-nonskill/book-qujing") — crashing with
*No program in object 'book-qujing'! the first time ANY player walks
west out of 南城客栈 on a fresh boot.
- Fix:
#include "/d/qujing/obstacle.h"(quoted). Swept the whole lib case-insensitively for the same shape (grep -rniE '#include\s*<\s*/') — this was the only instance. - Verified: pre-fix, reproduced live (
debug.logshowed the compile errors + the runtimeNo program in objectcrash, blamed/std/char/npc.lpc:14'scarry_object(), called fromjieding.lpc:60'screate(), called from the room'sreset()/make_inventory()chain — same "first-ever compile aborts the room's reset() partway" shape as bugs 1/2, just via a different mechanism: a genuinely broken dependency rather than reentrancy). Post-fix, re-walked南城客栈→西→朱雀大街on three separate fresh-boot sessions;疥顶小僧now appears correctly with no crash.
Bug 4: tell_room() 2-arg exclude defaults to raw int 0 — matches AGENTS.md §7.12 exactly
adm/simul_efun/message.lpc's tell_room(mixed ob, string str, object
*exclude) passes exclude straight into message("tell_room", str, ob,
exclude) — when called with only 2 arguments (the overwhelmingly common
case; grep shows dozens of call sites across the lib, including several
rooms' own init()-time welcome broadcasts), exclude is the driver
default 0, and this driver's message() efun requires
object/array for its 4th argument, rejecting a bare int.
- Symptom:
/d/city/chatroom.lpc'sinit()(line 48) callstell_room(environment(me), "...")with no 3rd argument — crashes with*Bad argument 4 to EFUN message() Expected: object, array, Got: int(0).on EVERY entry into the chat room (reproduced twice in one session: once for an NPC/wizard body already in the room, once for the player's own arrival), not first-visit-only like bugs 1-3. - Fix:
message("tell_room", str, ob, exclude || ({ }));— the documented §7.12 fix verbatim. - Verified: pre-fix, reproduced live twice (
debug.log, both hits traced tochatroom.lpc:48'stell_room()viacommand_hook()→go.lpc→move()/_move()→ the room'sinit()). Post-fix, re-entered聊天室(chatroom, reachablesouthfrom南城客栈) — clean welcome broadcast, no crash,debug.logstayed clean.
Bug 5: 302 uppercase .C files never renamed to .lpc — matches AGENTS.md §4.2 item 7, a notably large instance
Not previously flagged in this lib's own "What was fixed"/"Known
remaining issues" sections despite being exactly the documented
find work/ -name '*.C' check. find libs/mhxy/work -name '*.C' found
302 files across clone/armor/, clone/bq/, an entire side zone
(d/newjob/longzhu/, ~90 files: NPCs, weapons, armor, quest objects),
another entire zone (d/youxia/, ~50 files: rooms, NPCs, a BAGUA/
puzzle subdirectory), several daemon/class/youxia/* skill files (a
"游侠"/wanderer class's kungfu implementations), two wizards' personal
clone//wuqi/ staging directories (u/tianlin/, u/valen/ — mirror
copies of each other), and scattered individual files elsewhere. Since
this driver's extensionless load_object()/new() resolution tries
.lpc then .c and never a literal .C, every one of these was
permanently unloadable — orphaned content, not merely "unconverted"
(290 of the 302 were already valid UTF-8 from an earlier bulk pass that
evidently used a case-sensitive rename glob; only 12 — all under
u/{tianlin,valen}/clone/{HELL,LONGGONG,QIANG,MOON,SHUSHAN,JJF}.C —
were still raw GB18030 bytes, confirmed via a per-file UTF-8 decode
check rather than assumed from the .C extension alone).
- Live reproduction:
/u/tianlin/obj/goldarmor.C— a content- placement daemon (adm/daemons/baoshi.lpc'schoose_baosi()/random_place(), triggered from/d/qujing/wudidong/npc/luyue.lpc'screate(), itself triggered by ordinary zone preload) triedcarry_object("/u/tianlin/obj/goldarmor")and got*call_other() couldn't find object '/u/tianlin/obj/goldarmor'.— caught, preload continued, but the intended treasure/equipment was silently never placed. This is the shape most likely to recur unpredictably during real play: any zone whose content-placement or shop-stocking daemon references one of these 302 files by its correct extensionless path gets a silent no-op instead of the intended item/NPC/room. - Fix:
iconv -f GB18030 -t UTF-8(verified success, no lossy-drop warnings) on the 12 still-GBK files, then batch-renamed all 302.C→.lpc. Checked BOTH traps before renaming: no<same-basename>.lpc/.calready existing at any of the 302 paths (so no §4.2-item-5-style stale-backup-promotion risk), and no literal"...FOO.C"-style hardcoded string references anywhere in the lib (grep -rlE '"[^"]*\.C"'— zero hits) — every real reference to these files is extensionless, so the rename alone fixes resolution with no further reference-path edits needed. - Verified: pre-fix, reproduced live (see above). Post-fix, three separate fresh-driver-restart boots all show zero
goldarmor-related errors and zero new compile failures anywhere indebug.log(grep -a -c "执行时段错误"stayed at the same pre-existing baseline count across all three boots — see "Known remaining issues," below — meaning the 302-file rename introduced no NEW failures). A full fresh registration +look/score/quitwas re-run after the rename (charactercehsheng/程星辰) with a clean result. Not exhaustively content-tested: given the scale (302 files across zones this playthrough never visited —d/youxia/,d/newjob/longzhu/, the 游侠-class skill files), only the one live-reproduced instance (goldarmor) and the boot-clean/no-new-compile-error check were directly verified; the other 301 are fixed proactively by the same mechanical rename, consistent with this project's standing practice for large mechanical fixes, but a future pass throughd/youxia/ord/newjob/longzhu/specifically would be the way to verify content correctness (not just loadability) for those zones.
Confirmed NOT a bug (checked and ruled out)
- §7.20 void-parking class: structurally absent from this lib — see "What was tested" above.
obj/user.lpc'snet_dead()never moves the player anywhere;reconnect()(actually called fromadm/daemons/logind.lpc:1083, not merely defined-and-orphaned) only needs to clear flags and resume the heartbeat, since there's no location to restore in the first place. 南城客栈/天监台/醉星楼etc. rejectingfight:no_fightzones by explicit design (newbie-protection inn, a scholarly observatory, a royal pavilion) — verified via source (set("no_fight", 1)), not a bug.- Shop purchase rejecting a broke new character: correct, expected behavior (
scoreconfirms 0 savings) — see "not fully verified live" above for what this means for purchase-flow coverage specifically.
Known remaining issues (pre-existing, not fixed — out of scope for this pass)
Confirmed present in debug.log identically across every boot in this
pass (before AND after all the fixes above, i.e. unrelated to anything
touched here), all preload-time, all caught by the driver's own error
handler, none reachable from the login/registration/exploration path
this pass exercised:
/adm/daemons/emoted.lpc'srestore()—*restore_object(): Illegal mapping format while restoring emote.on its own shipped save data, atcreate()time during preload./adm/daemons/questd.lpc'sspread_quest()/init_dynamic_quest()—*Bad argument 1 to EFUN call_other()(passing0as a target), fired both once during preload and again from a livecron.lpc-driven re-trigger later in the same boot.- A handful of
*Too long evaluation. Execution aborted./*Can't catch eval cost too big error.traces from/adm/daemons/baoshi.lpc'srandom_place()/choose_baosi()and/adm/daemons/myupdated.lpc's batch-recompile daemon walking large zones during preload — same "routine mega-content preload noise" shape this file's own "Re-verification pass" section (above) already documented.
Given none of these are on the player-facing path this pass exercised
and all are caught, they're recorded here for completeness rather than
chased down — consistent with this project's established practice of
not exhaustively fixing every preload-time diagnostic on a lib this
large (11785 .lpc files).
Not verified live (explicit, per §10.7 rule 6)
- Shop purchase completing successfully — character never accumulated gold in the time budget; the rejection path (
list/buywith insufficient funds) WAS verified. Resolved in the 2026-08-20 round-four pass — see "深度功能测试第四轮" below (admin-granted money via the lib's ownclone, realbuy, price/receipt both verified). - Death and respawn — the one real fight conducted was won safely; deliberately seeking out a lethal fight was out of scope for the time budget. Resolved in the 2026-08-20 round-four pass — real death via
killagainst a genuinely lethal NPC, full ghost/death_stage/revive flow completed live, no bugs found (see below). - Net-dead disconnect specifically mid the gift-point creation wizard (the §7.21 shape) — every registration in this pass completed in one sitting before any disconnect test. Resolved in the 2026-08-20 round-four pass — both a graceful and a real RST-forced disconnect mid-wizard reconnected cleanly (see below).
- Content correctness of the other 301
.C→.lpcrenames beyond the one live-reproduced instance (goldarmor) — fixed proactively by mechanical rename, boot-clean confirmed, but not walked to in-game. - WASM re-verification against these specific fixes — this pass was native-only per the task's stated scope; the existing "WASM build test" section above (from an earlier pass) is unrelated to what was found/fixed here and was not re-run.
WASM 修复摘要(迁移自 meta.json 的 group_note)
梦幻西游基础版(青岛)。状态已从过时的 limited 修正——这份档案自己的 README 里从未记录过任何缺陷说明,本轮重新测试也没有发现:和手足档案 mhxyqd(012-1)流程相同——GB/BIG5 选择→未成年人关卡(否)→管理员 id+密码→首次天赋/礼物画面(9 然后 y)→干净地进入"南城客栈",quit 也干净("浮浮(Fluffos)离开游戏了")。
补充修复(来自对手足档案 mhxyqd 的深度测试)
mhxyqd(012-1,同一套 2002 年代码库的"青岛站"品牌分支)这轮的深度功能测试发现了两处这份档案(mhxy 本体)也逐字节共有的 bug:(1) adm/daemons/logind.lpc 的 get_name() 在接受玩家中文名字后有一行调试残留 printf("%O\n", ob);,会把原始物件引用(如 /obj/login#123)显示给每一个刚完成中文取名的新玩家——已删除,用真实驱动重新注册验证过(不再出现物件引用,直接进入密码设定)。(2) d/death/npc/{b,bgargoyle,wgargoyle}.lpc 的 death_stage() 都有 §7.68 那种把"角色永久离开"和"暂时不在场"混在一起的 if (!ob || !present(ob)) return; 写法,已按各文件自己的 5 秒重试间隔拆分成"暂时不在场则重试"。两处修复均直接照搬 mhxyqd 那轮已验证过的修法,本轮只做了格式化+编译+一次干净注册的快速复核,没有重新走完整的战斗/死亡流程(该流程已经在 mhxyqd 上完整验证过,两份档案这部分代码逐字节相同)。
更正(2026-08-05):§7.68 复活软锁"修复"已撤销
上面提到的"鬼魂离开/不在场时被永久放弃复活流程"曾被当作 AGENTS.md
§7.68 记录的一类 bug 修复(把单次判定改成每 5 秒重试)。经用户指出并
重新审视:这更可能是有意的游戏设计,不是 bug——大多数这类档案里
鬼魂根本无法自行移动,所以"不在场"要么从未真正发生,要么是"离开去
在阴间游荡,想回来时再走回这个房间、流程会通过 init() 重新从头开始"
这种有意为之的宽松机制,而不是需要强制追上玩家的错误。强行重试还可能
引入新问题:如果鬼魂之后又走回这个房间,旧的重试和 init() 重新触发的
新一轮流程可能同时运行,导致对话重叠错乱。已把这处改动撤销,恢复成
原始的 if (!ob || !present(ob)) return; 单次判定写法(bmxkx2001
除外——那份档案里这确实是一个真实存在、经过实际复现验证的 bug:鬼魂
本身完全无法移动,是另一个不相关的 NPC 强行把鬼魂拖走导致的)。详见
AGENTS.md §7.68 顶部的撤销说明。
§7.86 跨库扫描修复(留言板 post 崩溃)
BBS_BOARD、BULLETIN_BOARDinherit+ 多余replace_program()致命形状(AGENTS.md §7.86,post命令崩溃):全档案 47 处命中,已删除多余的replace_program(...)调用(保留inherit),逐文件保留原有行尾格式(CRLF/LF 按文件原样)。本次为跨库 §7.86 扫描修复(触发原因:该 bug 已在 6+ 个互不相关的血统家族独立确认,属于近乎普遍的拷贝粘贴模式),仅做编译检查(驱动干净启动、端口正常监听),未做完整 §10.7 深度游玩测试。
深度功能测试第三轮 / Deep functional test round three (2026-08-14, post driver-upgrade re-test)
Re-verification pass against the 2026-08-12 driver rebuild (upstream PRs #1343/#1344) per this project's round-two re-test campaign. This lib's last live pass was 2026-07-24 (the "round two" section above, before the rebuild), so this is a fresh boot-and-play confirmation against the current driver, not a repeat of that pass's full exploration.
Independently re-verified (grepped the actual code, not trusted from prose)
All five bugs from the 2026-07-24 pass, the two fixes borrowed from
mhxyqd, and the §7.68 revert are confirmed still present/correct:
feature/command.lpc:in_enable_player_nowreentrancy guard aroundenable_player()— present (declaration line 119, checked/set/cleared lines 150-191).std/room.lpc:resetting_nowreentrancy guard inreset()— present (declaration line 22, guard lines 45-108).d/obj/books-nonskill/book-qujing.lpc:4:#include "/d/qujing/obstacle.h"— still quoted, not angle-bracket.adm/simul_efun/message.lpc'stell_room():exclude || ({ })fix — present (line 56).find libs/mhxy/work -name '*.C'— zero results, the 302-file rename held.adm/daemons/logind.lpc'sget_name()— noprintf("%O\n", ob);debug leak; the function goes straight from the legal-name check toob->set("name", arg)and the password prompt, matching the mhxyqd-borrowed fix. (Two ORPHANED copies oflogind.lpcunderwww/cgi-bin/andwww/relative/DO still carry the oldprintf("%O\n", ob);line — confirmed via grep that nothing in the live tree references either path; this lib has no httpd wiring reaching them, so left alone as genuinely dead code, not a live bug.)d/death/npc/{b,bgargoyle,wgargoyle}.lpc'sdeath_stage()— all three still have the original single-checkif (!ob || !present(ob)) return;shape, no retry-call_outloop grafted back in. The §7.68 revert is intact.
New checklist items checked this pass (not covered by 2026-07-24's pass)
cmds/wiz/update.lpc§7.106: already has the guarded form (environment(me) && (obj = present(file, environment(me))) && interactive(obj)) — no fix needed here, presumably shipped this way originally (this lib doesn't show up as vulnerable in the corpus-wide §7.106 sweep record).adm/simul_efun/file.lpc— new §7.11-class fix applied.log_file()was a barewrite_file(LOG_DIR + file, text)with noassure_file()guard, despiteassure_file()being defined 4 lines below it in the same file (unused bylog_file()itself).log/is driver-recreated (gitignored), and several subdirectorieslog_file()targets don't exist on disk pre-boot — most notablylog/nosave/, referenced by ~30 call sites includingmaster.lpc's own crash logger (log_file("nosave/CRASHES", ...)), several admin commands (full/shutdown/purge/qiangpo/call), gift-item objects (cookie.lpc/giftbox.lpc/tang.lpc), andcmds/usr/quit.lpc's large-stat-gain audit log (gated behind high thresholds so not hit by ordinary play, but real for any long-lived character). Confirmed via driver source (fluffos/src/packages/core/file.cc'swrite_file()) that a missing parent directory makesfopen()fail and the efunerror()s — an uncaught throw, not a quiet return-0 — so this is a live crash risk, not cosmetic. Fixed with the project's standardassure_file(LOG_DIR + file);guard before thewrite_file()call, plus a one-line forward declaration (void assure_file(string file);) sinceassure_file()is defined textually afterlog_file()and this compiler needs one. Also fixedcat()'swrite(read_file(file))→write(read_file(file) || "")(minor, cosmetic-only —write(0)just prints a literal "0" to the caller rather than crashing, confirmed viaprint_svalue()'sT_NUMBERcase in the driver source — but a one-line fix matching this project's established convention for this file, seekxkj's round-two pass for the same pairing). Compile-verified via a liveupdate /adm/daemons/logind(which recompiles the whole simul_efun chain includingfile.lpc) — succeeded cleanly. Not live-triggered this pass (would need e.g. a realmaster.lpccrash or one of the gatedquit.lpcthresholds to prove the pre-fix throw live) — fixed proactively on the strength of the driver-source read and the extremely well-established §7.11 precedent (10+ prior lineages), same verification depth this project uses for other mechanical §7.11 instances.config.fluffos'smaximum evaluation cost: was400000— in the documented risky range (300000/700000 known to causeenter_world()/make_body()aborts on this project's debug driver build). Raised to5000000, this project's standard safe value. No eval-cost abort was actually observed pre-fix in this pass (boot and play were already clean), so this is a preventative fix per the standard checklist, not a reproduced-and-fixed live bug.log_error()(adm/obj/master.lpc) already has the standard severity gate (only broadcasts to the triggering player if one exists, skips broadcasting compiler warnings per the AGENTS.md §15w convention) — no fix needed.- Scanned
logind.lpcend to end for any other strayprintf("%O"/ raw debug leaks beyond the already-checkedget_name()— none found; every otherprintf/writecall in the file is legitimate player-facing banner/status text. file_owner()(§7.26, originally found and fixed ON this lib): re-confirmed the correct first-segment-capture version (adm/simul_efun/object.lpc) is the one actually wired intosimul_efun.lpc's#includechain; a second, still-buggy fixed-depth-3 copy exists atadm/simul_efun/oo.lpcbut is NOT#included anywhere — dead code, confirmed not a live risk.
现场验证 / Live verification
Native build-debug driver, launched from libs/mhxy per this file's
"How to run" section. Boot: completely clean — the entire
/tmp/mhxy_boot.log capture (1816 lines) contains nothing but routine
"Unknown #pragma, ignored" / "In file included from" preload noise;
zero eval-cost errors, zero new compile errors, and notably *cleaner*
than the 2026-07-24 pass's own boot (which logged non-fatal
emoted.lpc/questd.lpc/baoshi.lpc preload traces — those didn't
reproduce this run, consistent with them being incidental/order-
dependent preload noise rather than deterministic, not investigated
further since they're already documented as known-harmless).
work/log/debug.log stayed at 0 lines for the entire session —
before, during, and after every test step below.
Connected via scripts/tmux_mud.sh, logged in as fluffos/Mud@2026,
landed in 南城客栈 with 目前权限:(admin). Verified REAL write
access (not just the login banner) via update /adm/daemons/logind —
"重新编译 /adm/daemons/logind.lpc:成功!" — which also compile-verified
this pass's own file.lpc edit (loaded via the same simul_efun
recompile chain).
Targeted spot-checks of the three highest-value original crash triggers:
westfrom南城客栈to朱雀大街—疥顶小僧(the book-qujing NPC, bug 3's original crash site) present, no crash.southfrom南城客栈to聊天室(bug 4'stell_room()crash site) — clean welcome broadcast ("热烈欢迎,普通百姓 浮浮(fluffos)来到梦幻 西游聊天室!"), no crash.goto /d/jjf/front_yard2(bug 1's original crash site, the将军府/jjfsect-entrancezhangmenNPC) — correct title on load (大唐天下兵马大元帅 朝廷兵马大元帅(Zhang men)), not the corrupted shape; no reentrancy crash.
quit — clean, standard farewell banner, debug.log unchanged. Two
rapid reconnects (fluffos/Mud@2026 each time) — both landed
correctly in 南城客栈 with 目前权限:(admin) intact, debug.log
unchanged throughout.
进程与仓库卫生 / Process and repo hygiene
Driver killed by exact PID (kill 1633949, confirmed dead via ps),
never pkill -f. git status --short libs/mhxy/ post-test showed four
incidental save-timestamp-churn files from the login/test cycle
(data/login/f/fluffos.o, data/user/f/fluffos.o,
data/zhangmen/zhangmen_qin_qiong.o,
data/zhangmen/zhangmen_master_puti.o — mapping key re-serialization
order only, same content — plus u/tianlin/log, a duplicate append of
this boot's own compile-warning noise) — all reverted via git
checkout --. Only the two genuine fixes (config.fluffos,
adm/simul_efun/file.lpc) remain staged.
Net result
No new crash-class bugs found in this pass — the 2026-07-24 pass was
thorough enough that the driver rebuild alone introduced no
regressions. Two proactive standard-checklist fixes applied
(file.lpc's log_file()/cat() guards, config.fluffos's eval
cost) per this pass's standard checklist, neither live-reproduced as a
crash this session but both matching well-established bug classes
(§7.11, the eval-cost-abort risk) with real (if not this-session-
triggered) blast radius.
深度功能测试第四轮 / Round four (2026-08-20): the 3 explicitly-flagged §10.7-rule-6 gaps, resolved live
Targeted pass specifically closing the three "not verified live" items the
2026-07-24 pass named. Native build-debug driver, own raw-Python-socket
telnet client (not tmux_mud.sh), each response inspected before sending
the next command. work/log/debug.log stayed at 0 lines for the entire
session — before, during, and after every step below, including the
death sequence.
Gap 1: shop purchase — RESOLVED, completed live, correct
No in-game gold-earning path was chased (out of scope to hunt for a
starter quest reward under time pressure); instead followed the task's
sanctioned pattern: as admin (fluffos), clone /clone/money/silver 5
(the lib's own /clone/money/silver.lpc — clone.lpc has dedicated,
built-in handling for exactly this file plus gold/coin, so this is a
first-class supported admin action, not an exploit) then give 5 silver
to luchen to a fresh, ordinarily-registered test character (luchen/
陆晨, id luchen, password Test2026) standing in the same room
(南城客栈). Confirmed via i the money object actually landed
(五两银子). list at 店小二 showed 桂花酒袋(jiudai) :一两银子;
buy jiudai from xiao er succeeded ("你向店小二买下一个桂花酒袋。"),
and i afterward showed exactly the expected result: 五两银子 →
四两银子 (1 silver unit deducted, matching the listed price) and the
new 桂花酒袋(Jiudai) present in inventory. Both the price deduction and
the item receipt verified correct via before/after inventory snapshots,
not just the transaction message. feature/finance.lpc's can_afford()/
pay_money() (checked while tracing this) confirmed the earlier-observed
"你的钱不够" rejection path uses physical carried money objects
(gold_money/silver_money/coin_money presence), not the separate bank
balance attribute (deposit/withdraw in std/room/bank.lpc) — the
two economies are distinct in this lib, buy only cares about the former.
Gap 2: death/respawn — RESOLVED, completed live via real combat, no bugs found
Used the admin connection to scout (read room/NPC source, not live-teleport
the test character) for a genuinely lethal, reliably-reachable target
rather than the deliberately-weak japan2.lpc sparring dummy already
confirmed safe in the 2026-07-24 pass. Found d/jjf/npc/jiajiang.lpc
(家将, "jia jiang"/"jia"/"jiang", not the same file as the
already-documented d/city/npc/jiajiang.lpc 校尉 despite the identical
basename — a second, separate, much stronger NPC class): combat_exp
200000-250000, force 500, skills 70 across spear/dodge/parry/unarmed,
statically placed ×2 in d/jjf/keting.lpc (正厅, the general's own hall,
reached via the already-mapped route 南城客栈→west→朱雀大街→north→
十字街头→east→青龙大街(qinglong-e1)→east→青龙大街(qinglong-e2)→
south→将军府(gate, answer 拜师 required to unlock south per
gate.lpc's valid_leave())→south→练武场(front_yard)→south→
练武场(front_yard2)→south→正厅/keting). Walked there for real with
luchen (no teleport), then kill jia (not fight — cmds/std/kill.lpc
was checked first per the task's dtsl2-precedent question: its only
combat_exp gate, if (me->query("combat_exp") < 100000 && userp(obj))
return notify_fail(...), is guarded by userp(obj) and so does not
apply to an NPC target; kill worked immediately with no gate).
Real, unmodified combat played out over several heartbeat rounds with
escalating injury text (受伤不轻 → 气息粗重 → 受了相当重的伤 → 受伤过重
已经奄奄一息 → 已经陷入半昏迷状态 → "你的眼前一黑,接着什么也不知道
了" (unconcious()) → "你死了" (die(), confirming std/char.lpc's
heart_beat() mortal-wound check, eff_kee/eff_sen/eff_gin < 0, fired
for real, not just the kee/sen/gin < 0 unconscious branch). Moved
correctly to 阴阳界/DEATH_ROOM (d/death/gate.lpc) with 崔判官
(d/death/npc/pang.lpc) present; its death_stage() reentrancy-guarded
init (the §7.68-shape code already audited clean in this file's earlier
sections) ran its full 5-stage dialogue at the coded 5-second cadence
with no overlap or corruption, then reincarnate()'d the character into
荒郊小店/REVIVE_ROOM — a fully valid, populated room (店小二, a board,
a working exit). Reconnecting afterward confirmed persistent state:
score correctly shows 死亡记录:你在战斗中被杀害过一次, 气血 at a
recovering-but-not-full level (expected post-respawn regen, not a bug),
inventory empty (matches die()'s command("drop all") in
reincarnate() plus the self-made-fabao destruction loop — same
item-loss-on-death design this lineage already documents for quit).
quit afterward was clean.
Incidentally checked and ruled out as a bug: feature/damage.lpc's
die() calls DEATH_ROOM->start_death(this_object())
(DEATH_ROOM = /d/death/gate), but no start_death() function is
defined anywhere in this lib (grep -rn start_death across all
.lpc/.h finds only the two call sites, one live one in feature/back/
damage.lpc's unused backup copy) — this call always resolves to a
missing function. It is provably harmless: the actual ghost/death_stage
flow triggers independently, through the ordinary room-entry init() of
whatever npc/pang-shaped NPC the gate.lpc-family room happens to
carry (confirmed exactly this way above, live), not through
start_death() at all — and the live reproduction above proves a
call_other to this permanently-undefined function produces no
debug.log entry (FluffOS's call_other-to-missing-function behavior is a
silent no-op here, not a catchable/logged error). Per this project's
scope rule (only real crash/debug.log-error signatures count), this is
dead/vestigial code, not a bug — left untouched.
Gap 3: mid-wizard net-dead reconnect (§7.21 shape) — RESOLVED, clean on two separate live reproductions
First (incidental): an earlier registration script for luchen dropped
the connection right at the gift-wizard's opening menu (a plain,
non-forced TCP close). Reconnecting (luchen/Test2026) produced
"重新连线完毕。" and cleanly re-presented the exact same top-level wizard
menu — resumed, not stuck, not corrupted.
Then (deliberate, rigorous): registered a second fresh character
(hujie/胡杰, id hujie, password Test2026) through to the wizard,
sent 0 to start a stat-reroll, waited for the sub-prompt
("请输入体格的新取值[10-30]:" — deeper into the wizard state than the
top-level menu, mid-reroll with no answer given), then force-closed the
socket with SO_LINGER=0 (a real RST, not a graceful close, matching
xiyouji/this-file's own established net-dead-testing technique).
Reconnecting immediately afterward: "重新连线完毕。", and the wizard
discarded the orphaned reroll sub-state cleanly and re-presented the
top-level menu (not stuck waiting on the abandoned sub-prompt, not
duplicated, not corrupted). Completed the wizard normally (9/y),
score rendered a fully correct fresh character, quit was clean.
debug.log stayed empty through both reproductions. This lib's
character-creation wizard has no §7.21-shape bug — net-dead mid-wizard,
even via a genuine RST at the deepest (sub-prompt) point tested, resumes
safely.
Standard checklist re-confirmation pass (all previously fixed, spot-checked, no regressions)
- §7.90 (
config.fluffoseval cost):5000000— already fixed (2026-08-14 pass), confirmed still in place. - §7.100 (
replace_program(ROOM);): zero live hits. The onlygrepmatches left are insideu/Love/'s andu/linger/'s numberedworkroom.c.<timestamp>backup files (a room-builder tool's auto-saved revision history, not.lpc/.c-suffixed, never resolved by this driver's extensionlessload_object()) and one doc-directory prose mention (doc/build/room) — neither is live code. The 563-line original sweep (documented above) holds. - §7.111 (
file_name(error["object"])null-guard): present, both call sites inadm/obj/master.lpc(lines ~240, ~334) still guarded withundefinedp(error["object"]) || !error["object"]. - §7.112 (
death_stage()reentrancy guard): re-checked all 5 files with acall_out("death_stage", ...)site in this lib (d/death/npc/{b,bgargoyle,wgargoyle,pang}.lpcandu/tianlin/d/shaolin/npc/yu-zu2.lpc) — every one already has thequery_temp("death_stage_active")/set_temp(...)guard ininit(), matching the fix shape found on 3 other libs this session. No gap here. (pang.lpc's own guard was exercised live for real by the death test above, not just grepped.) - §7.79 (bare 2-arg
addn/addn_temp()): zero hits (grep -rn 'addn_temp(\|addn('with a check for a 3rd argument found none missing one).
Process and repo hygiene
Driver killed by exact PID (kill 800001, confirmed dead via ps),
never pkill -f. Post-test git status --short libs/mhxy showed the two
new test characters' saves (luchen, hujie — kept as playthrough
evidence, per this project's established convention) plus admin
(fluffos) login/user churn from repeated logins; three zhangmen_*.o
files (ao_guang, guanyin_pusa, qin_qiong — sects never touched this
pass beyond walking past qin_qiong's own NPC) and a duplicate
u/tianlin/log append were confirmed pure re-serialization/background-
daemon noise (byte-diffed: same content, reordered mapping keys plus a
mana/force_factor recompute artifact matching the exact shape already
documented in this file's 2026-08-14 pass) and reverted via git checkout
--.
§7.100 sweep fix (ROOM base-class redundant replace_program())
#define ROOM "/std/room": deleted 563 redundant, live, standalone
replace_program(ROOM); lines (kept inherit ROOM;) — 561 caught by
the scripted sweep, plus 2 hand-fixed instances baked into the two
copies of this lib's in-game room-building tool
(obj/roommaker.lpc, clone/misc/roommaker.lpc — near-identical,
differ only in one is_monitored set() call and encoding of two
traditional-vs-simplified characters). Both tools have the standard
two-template shape: the "make an empty room" heredoc was already
clean, only the "clone the room I'm standing in" command's
str += "\n\tsetup();\n\treplace_program(ROOM);\n}\n"; string-builder
carried the bug — fixed to drop the redundant call and keep
setup();. 8 pre-existing //-commented instances remain untouched,
confirmed harmless. Verified via a clean build-debug driver boot
(0 new compile errors, port 40016 listening, zero new "cannot
replace"/"cannot bind" debug.log lines); no full §10.7 gameplay
walkthrough this pass.
§7.30 uninitialized-mapping accessor sweep (2026-08-20)
Corpus-wide mechanical sweep of the feature/skill.lpc shared-lineage
bug (confirmed independently on xiakexing2017/jqxz2015/haiyang2
via round-four testing): 3 accessor(s) in this file returned a raw
never-initialized mapping instance variable (defaults to int 0,
not ([]), until first assigned), crashing any unguarded
keys()/sizeof()/indexing caller for a fresh/untrained character.
Fixed at the accessor level (mapp(x) ? x : ([])) per the documented
remedy. Verified via lpcc --batch static compile check only (not a
live boot) as part of a large mechanical sweep; not individually
functionally re-tested live on this lib.