info.html · 介绍 · play.html · 游玩 · llms.txt · 下载与本地运行 · ZIP · GitHub
笑傲江湖之重出江湖由作者 AKAI 打造,脱胎自"夕阳再现-江湖风云2-风云再起"引擎(属于"夕阳再现/XYZX"系列衍生分支,与本项目收录的多部同系列作品——如《侠客风云》《西阳再现疯狂版》等——师出同门,但游戏内容各自独立开发),是经典金庸《笑傲江湖》题材的江湖世界:新角色从南大街的客店起步,围绕"武庙""铁枪庙"等地展开门派与个人历练;除膂力、悟性、根骨、身法四项常规武侠属性外,还设有福缘、容貌两项隐藏天赋,会悄悄影响解谜结果与NPC对玩家的印象;连线时有一道隐藏的客户端版本号校验(必须先输入 `2060`),并设有"普通密码"与"管理密码"两套独立密码——archive 名称中的"服务端+客户端"其实指的是同一套游戏支持两种连线协议(普通 telnet 客户端和 TOMUD 菜单客户端),并不是额外附带了一个独立的客户端程序。
English
By author AKAI, this Smiling-Proud-Wanderer game grew out of the "Sunset Reappears — Jianghu Fengyun 2 — Storm Rising Again" engine lineage, a branch of the broader Sunset Reappears/XYZX family shared with several other archives in this collection, though its content was developed independently. New characters start at an inn on South Street and build their jianghu reputation around locations like the Wu Temple and Iron Spear Temple. Beyond the four familiar wuxia attributes, it tracks two hidden talents — fate and appearance — that quietly influence puzzle outcomes and how NPCs regard the player. Connecting requires a hidden client-version handshake (players must type "2060" first), and the game runs an unusual dual-password scheme: a normal login password plus a separate management PIN. The archive name's "server + client" actually refers to support for two connection protocols on the same game — plain telnet and a TOMUD menu client — not a bundled standalone client program.
README
内容亮点
- 修复过一处历史遗留 bug:原始存档的
include/command.h把巫师指令 搜索路径定义为空数组,导致任何被提升为巫师权限的账号连look/quit等最基本指令都会失效;现已指向与普通玩家相同的指令目录。 - 深度功能测试还修复了一处更严重的历史遗留 bug:
log_file()从未确保 目标目录存在,导致注册流程最后一步的日志写入必然崩溃,进而让每一个 新角色都卡在空白的>提示符——没有欢迎横幅、没有任何可用指令、也没 有存档,且屏幕和debug.log都不会显示任何错误。现已修复。
在线试玩
https://mudlibs.fluffos.info/xajhzcjh/
管理员账号 / Admin account
- ID:
fluffos - 密码 / Password:
Mud@2026 - 管理密码 / Management PIN:
FluffMgmt1—— 本 lib 特有的第二套密码 ("wizpwd"),与巫师权限无关,只是一个自助改密 PIN。 - 显示名 / Display name: 浮浮
- 权限 / Level:
(admin)—— 本 libsecuritydwiz_levels 中的最高级, 通过adm/etc/wizlist授予(fluffos (admin))。
警告:这是一个公开的默认密码,仅供本地/浏览器试玩。正式对外开服前
请务必修改此默认密码(以及管理密码 PIN)。
本地运行
cd libs/xajhzcjh
~/src/fluffos/build-debug/src/driver config.fluffos游戏端口:40070。
NOTES · 移植与修复记录
xajhzcjh — 「笑傲江湖」之「重出江湖」 (archive #76)
Archive: 笑傲江湖服务端+客户端.rar ("Laughing in the Wind, server + client
bundle"). Port: 40070. Status: done (boots clean, full registration
flow verified twice end-to-end including real post-login commands look
and score).
Triage: client-vs-mudlib determination
Despite the archive's name suggesting a bundled player client (following
the precedent of archive #24, TOMud_VC源代码.rar, which really was
client-only), this archive is genuine LPC mudlib source, no separate
client bundled at all:
- The entire archive is one directory,
mud4/, with a classic wuxia-mudlib layout:adm/{daemons,obj,simul_efun,etc},clone/,cmds/,d/(rooms/zones),feature/,inherit/,kungfu/(skills/classes),meskill/,quest/,topten/,data/,log/,doc/,include/— 12378 raw files, 11413 of them.c(LPC source). - No MFC/VC++/dialog/client-shaped files anywhere — searched for the archive-#24 precedent's markers (
MainFrm.cpp,DialogXxx.cpp,*Sock.cpp,.dsp/.dsw/.vcproj/.sln/.rc/resource.h/stdafx.*): zero hits. The only non-source binaries are two **prebuilt Windows MudOS *driver* executables** (mud4/mudos22.exe,mud4/"new mudos.exe") — i.e. the "服务端" (server) half of the archive's name refers to these bundled driver binaries, not to anything we need (we use our own FluffOS build). Both ignored per the established "ignore bundled drivers" precedent. - The "客户端" (client) half of the archive's name is explained by the bundled readme (
mud4/碧血残阳说明.txt, the author's own writeup): this mudlib supports two connection protocols on two different ports — a plain telnet/ZMUD port and a "TOMUD" menu-client protocol port (tomud连入端口:8888 / ZMUD连入端口:6666per the readme) — i.e. "client" here means "which of the two wire protocols you dial in on", not a bundled GUI program. Confirmed live:adm/obj/master.lpc'sconnect(int port)sets a cosmetic"tomud"temp flag whenport == TOMUD_PORT(#define TOMUD_PORT 9999); no separate client source exists anywhere to implement that protocol on the other end. - A handful of files carry non-LPC extensions from what look like editor artifacts (
.java× 15,.vns× 20 underkungfu/skill/,d/heimuya/, etc.) — inspected several; these are ordinary LPC/text content that happened to get renamed with an odd extension at some point in the archive's history (mud4/clone/misc/mailbox.javastarts with normal LPC header comments, not Java), not a real Java/VNS client component. Left as-is (not part of the.c→.lpcrename scope either way).
Conclusion: proceeded with the full standard conversion pipeline.
Lineage
Not related to any of the three existing "Laughing in the Wind" libs
(explicitly checked per task instructions, via md5sum/diff against
raw archives and directory-layout comparison):
nitan6(archive #22): NT/nitan/Lonely lineage,nitan/nitan/adm/ kernel/...layout. This archive usesadm/{daemons,obj,simul_efun}(noadm/kernel/at all) — structurally unrelated.xo/xo_final(archives #28/#29): TMI-2/ES2 lineage,mudlib/secure/{system,daemon}/xo_new/secure/...layout (asecure/tree). This archive has nosecure/directory anywhere — structurally unrelated.- Also cross-checked against
ylfyxa3(archive #68, also themed 笑傲江湖 within the 夕阳再现 family this archive turned out to belong to, see below): differentadm/simul_efun/chinese.cmd5 (961d77af...here vsc7c5c596...there), differentadm/obj/ master.cmd5, and a very different file count (12378 raw here vs 17380 there raw) — confirmed a distinct fork, not a duplicate.
This archive IS a member of the 夕阳再现 (Xiyangzaixian)/"XYZX" lineage
already established across archives #46 (xyzxfk), #47
(xyzxfy2), #48 (xyzx3), #55 (wmkj),
#59 (jhfy), #68 (ylfyxa3), and #71
(bixiecanyang) — confirmed via the bundled readme (碧血残阳说明.txt,
titled "关于笑傲江湖-重出江湖的说明", explicitly self-identifying its
base as "夕阳再现-江湖风云2-风云再起", credited to author "AKAI",
same author credited in bixiecanyang's own readme) and via md5sum:
adm/daemons/chinesed.lpc: byte-identical (fe293044de377c1fff169db903a6b2b3) tobixiecanyang,xyzxfk,xyzxfy2, andjhfy's copies.adm/simul_efun/chinese.lpc(theis_chinese()file): byte-identical (961d77af057bb93db320af05be5883fc) tobixiecanyang's copy specifically.adm/daemons/securityd.lpc: differs frombixiecanyang(own md570fc2c07...vs032452f5...) — this archive's own securityd is a much simpler ACL (valid_readunconditionally returns 1, noexclude_read/trusted_readtables at all) than bixiecanyang's/ fengyun2's shared custom ACL.adm/obj/master.lpcandadm/daemons/logind.lpc: both differ from every sibling (own content, own line counts) — same pattern as every other fork pair in this family: shared low-level engine utility files (chinesed,chinese.lpc), fully independent site-specific daemons/game content otherwise.config.bxcy(the raw config filename) is again present here too, matching the same filename-convention fingerprint already noted for bixiecanyang/dtsl2 — further (weak, config-template-only) evidence of the shared AKAI-lineage ancestry, not itself a content match. Content differs from bixiecanyang's ownconfig.bxcy(differentname/port/path fields, as expected for an independently-run site).
This archive's own in-game identity is 「笑傲江湖」之「重出江湖」
("Laughing in the Wind" — "Return to Jianghu"), a *different*, independent
game-content fork within the same shared 夕阳再现 engine family — not a
duplicate of any processed archive (12378 raw files here vs bixiecanyang's
~13580, ylfyxa3's ~17380, etc; distinct master.lpc/
logind.lpc/securityd.lpc content in every case).
Fixes applied
Ported/cross-checked against the 夕阳再现-family playbook (bixiecanyang/#71, xyzxfy2/#47) where lineage matches, plus fresh findings from this archive's own content:
1. AGENTS.md §15h (adm/simul_efun/chinese.lpc's is_chinese()): GBK
lead-byte range check (strlen(str)>=2 && str[0] > 160 && str[0] <
255) → CJK Unicode codepoint range check (strlen(str)>=1 &&
str[0] >= 0x4e00 && str[0] <= 0x9fff).
2. AGENTS.md §15h (adm/daemons/logind.lpc's check_legal_name()):
byte-count bound strlen(name) < 2 || > 10 → character-count bound
< 1 || > 5 (matches the message's own stated "1 到 5 个中文字"); the
sliding-window gate i%2==0 && !is_chinese(name[i..<0]) had its
i%2==0 && dropped so every character position is checked (same
reasoning as bixiecanyang: is_chinese() only inspects index 0 of
whatever's passed, so a full-length suffix slice is functionally a
single-character check either way).
3. AGENTS.md §15z (3 files: include/globals.h, adm/obj/master.lpc,
adm/obj/simul_efun.lpc): each carried an #ifndef
__SENSIBLE_MODIFIERS__ / #define nosave static / #define protected
static compatibility shim, and convert_lib.sh's blanket
static→nosave sed rewrote the shim's own lines to #define nosave
nosave / #define protected nosave (silently aliasing protected to
nosave). Neutralized the whole shim (replaced with a one-line
comment) in all 3 files. New nuance for the catalog: this
driver build's own predefine table (dumped at boot) DOES include
#define __SENSIBLE_MODIFIERS__ — meaning the #ifndef guard is
actually false here and the buggy branch is dead code at compile
time regardless. The textual sed-collision still happened (the sed
doesn't know about #ifdef state), so the fix was still applied as
free, harmless insurance, but it may not have been live either way on
this particular driver build/config. Worth checking __SENSIBLE_
MODIFIERS__'s presence in the predefine dump on future libs before
assuming §15z is *always* a live bug versus just a latent one.
4. AGENTS.md §3 counterexample (7 files): the same blanket sed hit
log_file("static/XXX", ...) string literals (a real on-disk log
subdirectory name), rewriting them to "nosave/XXX". Reverted all
occurrences back to "static/XXX" in: clone/misc/dan.lpc,
adm/simul_efun/override.lpc (×5), adm/daemons/securityd.lpc,
adm/obj/master.lpc (×5), cmds/std/give.lpc, cmds/std/suicide.lpc,
and adm/daemons/复件 securityd.lpc (see item 10 below).
5. AGENTS.md §14 (adm/obj/master.lpc's valid_override): upgraded
from the 2-arg signature to the documented 3-arg (file, name,
main_file) form, checking main_file == SIMUL_EFUN_OB || main_file ==
MASTER_OB in addition to the original file check — simul_efun.lpc
is a pure #include composer (pulls in object.lpc, message.lpc,
etc, several with efun:: overrides), so file alone never equals
SIMUL_EFUN_OB for those fragments. No live boot/registration failure
observed without this fix (consistent with the catalog's note this may
never surface on a real boot) but applied as free insurance.
6. AGENTS.md §15s (adm/simul_efun/message.lpc's tell_room()): the
dominant 2-arg call form (275+ of 332 call sites in this archive)
leaves varargs object *exclude at its default int 0, which then
flows straight into message("tell_room", str, ob, exclude) — this
driver's message() rejects a raw int 0 for its 4th
(void|object|object*) argument. Fixed at the shared root:
exclude || ({}). Also found and fixed the same shape in shout()
(a variant not previously seen written exactly this way): message(
"shout", str, users(), this_player()) — this_player() can itself be
0 outside a genuine player context, hitting the identical rejection;
fixed by wrapping in me ? ({ me }) : ({}).
7. New §15b-style gap (adm/simul_efun/message.lpc): two functions
called throughout the lib but never defined anywhere —
message_combatd(msg, me, you) (called from adm/daemons/itemd.lpc
and 2 kungfu/skill/ files) and message_sort(msg, me, you) (called
4× from adm/daemons/itemd.lpc). Both aliased to the already-defined
message_vision() (identical 3-arg shape), added right after it in the
same file (safe ordering, no §15aa risk since message_vision is
textually first).
8. §15ac-style bare macro (3 files: d/quanzhou/npc/tang3.lpc,
d/taishan/tang3.lpc, adm/daemons/network/netmail.lpc): bare
SAVE_EXTENSION (never defined anywhere in this lib) → this driver's
real autogenerated __SAVE_EXTENSION__ constant.
9. AGENTS.md §15ab (clone/user/login.lpc's receive_message()): the
pre-login connection object's copy was missing the !stringp(str)
guard that the post-login player body's copy (feature/message.lpc)
already has — added proactively as insurance (no live crash observed
here since the two files this pattern usually trips on, motd/
welcome, both exist with real content in this archive, but the gap
is real and cheap to close).
10. Orphaned backup file (adm/daemons/复件 securityd.lpc, Chinese for
"copy of securityd.c" — a stray backup with a different, older, and
genuinely broken shape than the real securityd.lpc, not referenced
by anything in the tree): renamed to
复件securityd.orphaned-backup so it can't be mistaken for a live
compilable object (same treatment as AGENTS.md §12's precedent).
11. AGENTS.md §15w (adm/obj/master.lpc's log_error()): broadcast
to the connected player was unconditional (if (this_player(1))
efun::write(...)) even for ordinary compile *warnings*, not just real
errors. Gated the broadcast on the message NOT containing
"warning:" (log-file write is unchanged/unconditional).
12. New content-gap fix, single shared root (d/city/obj/cloth.lpc,
file did not exist at all in the raw archive — d/city/obj/ only
shipped box/gourou/jitui/table/zhubang.lpc): 47 different NPC
files spread across at least a dozen different zones (city2,
wudujiao, tangmen, guanwai, village, mingjiao, quanzhou,
lingshedao, gumu, kungfu/class/{gumu,npc}, migong, etc.) all
hardcode the literal carry_object("/d/city/obj/cloth")->wear(); as
their standard starting-garment call (clearly one shared boilerplate
template copy-pasted verbatim into dozens of zone-specific NPC files,
never updated to each zone's own local obj/cloth.lpc the way most
other zones' NPCs correctly do), and since the target never existed,
carry_object(...) returned 0 and ->wear() on it crashed silently
during each NPC's own create() (the crash is swallowed with no
printed diagnostic — same silent-nested-compile-failure shape as
AGENTS.md §15d, just triggered by a genuinely-missing file instead of
an ACL denial). This was the single highest-impact lpcc-sweep fix:
restoring ONE file (copied verbatim from the byte-for-byte-identical
sibling template at d/city/npc/obj/cloth.lpc/d/village/npc/obj/
cloth.lpc/d/tangmen/obj/cloth.lpc — all three are the same
"basic starting cloth" boilerplate, confirmed by direct comparison
before reconstructing, not fabricated content) dropped the lpcc
sweep's failure count from 336 to 285 in one shot (see "lpcc sweep"
below for the exact before/after numbers).
13. 3 small genuine pre-existing typos found via the lpcc sweep:
- d/baituo/obj/bowl.lpc and d/baituo/npc/obj/bowl.lpc:
set_name("海口大碗", "bowl") — second arg is a bare string where
set_name() expects string* (the alias-list idiom used
everywhere else in this lib, e.g. set_name("布衣", ({ "cloth" }))).
Fixed to ({ "bowl" }).
- clone/book/lbook5.lpc and clone/book/pixie_book.lpc: each had a
literal duplicate int query_autoload() { return 1; } declaration
(copy-paste artifact) causing "Redeclaration of function". Removed
the redundant second copy in both.
- d/npc/m_weapon/weapon/m_bian.lpc: two void create() definitions
— the first is the complete, correct item setup (name/weight/
wield-messages/init_whip); the second is a short, clearly
incomplete leftover fragment (unit/no_get/no_drop/setup()
only). Removed the second (dead/incomplete) one, keeping the first.
14. 5-file iconv-eaten-newline fix (matches the documented Encoding
gotcha: iconv -c's invalid-byte recovery can eat the adjacent REAL
newline too, merging a @LONG...LONG text block's closing tag onto
the preceding text line): d/heimuya/tang.lpc, d/heimuya/npc/
tang.lpc, d/heimuya/shenggu.lpc, d/quanzhen_old/manglin1.lpc,
d/quanzhen_old/manglin2.lpc — all 5 showed error: End of file in
text block from a merged ...文本.LONG ); (or CRLF 。LONG\r\n)
line. Confirmed against the raw pre-conversion bytes in each case
(an invalid/truncated GBK byte immediately followed by a literal
newline) before inserting the newline back in at the exact point
indicated by the raw byte layout — not a guess. All 5 verified
compiling clean afterward via standalone lpcc.
Confirmed NOT needed (verified by reading source)
- §4 (lazy security-daemon
load_objectrecursion invalid_read/valid_write):master.lpc'svalid_writeonlyfind_object(SECURITY_D)(returns0if absent, never lazily loads it);valid_readdoes the same, defaulting to1(allow) if absent. Noload_object()call anywhere in either apply. - §7 (
get_root_uid/get_bb_uid): both present and correct inmaster.lpc(return ROOT_UID;/return BACKBONE_UID;). - §15l (
destruct(SIMUL_EFUN_OB)in master'screate()):create()is a one-linewrite("master: 成功加载.\n");— no destruct/reload dance present. - §15n (custom
securityd.lpcACL denying "(player)"-status reads, blocking mid-connection lazy compiles): this lib'ssecurityd.lpc'svalid_readunconditionallyreturn 1;— no ACL table exists at all to deny anything. Confirmed further by zero "Read access denied" indebug.logacross two full interactive sessions. - §8c (
this_player()-override footgun invalid_read/valid_write): greppedsecurityd.lpcfor theif (this_player()) user = this_player();shape — not present. - §15u (dormant "phone-home license check" self-destruct function): grepped
securityd.lpc/master.lpcforchecking_status/mass deletion/shutdown()-gated-on-opaque-check shapes — none found. - §8d/§15o (
get_include_path()/ local<header.h>-next-to-its-user angle-bracket includes):convert_lib.sh's automatic local-include-to- quotes pass converted 22 such includes to quoted form during conversion; a follow-up scripted check confirmed zero remaining case-sensitivity mismatches between any#includetarget and its actual on-disk filename. Nomaster.lpc get_include_path()addition needed. - Nitan-family simul_efun-dbase architecture bug (§15): not present.
adm/obj/simul_efun.lpcis a pure#includecomposer;feature/ dbase.lpcimplements real localset/query/deletemethods directly (correct inherit-based architecture, not the bare-simul_efun pattern). - §8e (
tail()missing-efun bug): notail(call anywhere in the lib. - §8f (
TYPE * name1, name2;array-modifier-doesn't-propagate bug): spot-checked ~15 of the 42 grep hits for this shape across the lib — every one is an intentional array+scalar declaration (e.g.object *enemy, ob;whereobis later assigned a single element and used as a scalar throughout), the correct/intended idiom in this lineage, not the Dead-Souls-specific "both should be arrays" bug. No fix applied. - §15p (DNS/intermud daemon preload hang):
adm/etc/preloadis entirely empty in this archive (just blank/CRLF lines) — nothing preloads at all in this lib (confirmed live: the boot log goes straight from "Loading master file" to "Accepting telnet connections", no preload activity logged).network/dns_master.lpcexists on disk but is never referenced fromlogind.lpc's connection path — grepped forDNS_MASTER/dns_master/gb_big5/Mud_name(inlogind.lpc, zero hits. Nothing to exclude. - §15x (hardcoded
MUD_PORTmismatch silently rejecting every connection):master.lpchas#define TOMUD_PORT 9999, but — exactly like bixiecanyang's finding — it's only used to set a cosmetic"tomud"temp flag, never to reject a connection. Confirmed no rejection via two successful end-to-end interactive tests on port 40070 (≠ 9999). - §15q-shaped hidden gate — but here it IS live, unlike bixiecanyang: see "Registration flow" below — this archive's version of the gate is NOT conditioned on the
TOMUD_PORT/"tomud"flag the way bixiecanyang's was (structurally unreachable there); hereget_versionis the unconditional FIRST callback on every connection, so the literal"2060"handshake must always be sent first. Confirmed by readinglogind.lpc'slogon()directly (no gatingifaround theinput_to("get_version", ...)call) and by the live transcript (the gate fired on both test runs).
Registration flow (read from logind.lpc's actual input_to chain)
logon() → get_version (unconditional; the prompt reads "请输入您
的英文名字:" — textually indistinguishable from a normal id prompt, but
the real check is arg[0..3] != "2060"; sending anything else prints an
"警告!本游戏必须使用TOMUD客户端..." alert and disconnects — a live
instance of AGENTS.md §15q) → English id (get_id; "new" branches to
registration) → GetNewId (english id, must not be "new"/"quit",
must be unused) → confirm_id (y/n) → get_name (Chinese name,
1-5 characters; typing a name directly skips the get_resp y/n loop
entirely — that loop only fires for the empty-input → random_name()
path) → new_wizpwd (an "admin password", ≥5 chars) → confirm_
wizpwd → new_password (the real login password, ≥5 chars, must
differ from the admin password) → confirm_password →
select_gift (attribute roll, 0-4; 0 = system-random via get_gift's
y/n accept loop) → get_email ([email protected] format required) →
get_gender (m/f) → enter_world().
banned_name list: 你/你的/我/我的/自己/屁/他/他的/她/她的/它/它的/鬼王/
风云/流氓/爸/妈/祖先/祖宗/爷/奶/毛泽东/邓小平/江泽民/【/】/马克思/恩格斯/
列宁/抄/手淫/老百姓 — checked before testing; neither "秦风" nor "林风"
match any entry.
Interactive test #1 — full registration + post-login commands, real name "秦风"
Single continuous mudclient.py session, in order:
2060→ passes the client-version gate, reaches the id prompt.new→ enters the registration sub-flow.qinfeng→ accepted as the new english id, "...您确定吗(y/n)?" prompt.y→ confirms, shows the "give yourself a name" banner.秦风(real Chinese name) → accepted silently on the first try, no rejection, straight to "请设定您的管理密码:" — confirms the §15h fix works end-to-end.- (a stray extra
yin my script landed on the admin-password prompt instead of a nonexistentget_respconfirmation — rejected for being too short, exactly asnew_wizpwd's own length check should, thenadmin12345/admin12345succeeded for wizpwd+confirm,player12345/player12345for the real password+confirm — incidental but useful confirmation that the length-check rejection path also works correctly) 0→ system-random gift roll (膂力20/悟性20/根骨23/身法17).y→ accepts the rolled gift.[email protected]→ accepted as email.m→ male gender.- Character actually entered the game world, landing at
/d/quanzhou/tieqiang(铁枪庙/"Iron Spear Temple", one of the 4 configuredstart_rooms), saw real NPCs (乌鸦×4/"crows") and room content render correctly.〖有间客栈〗channel broadcast "听说又来了 一位叫做秦风的少年侠士" with the correct real name embedded. look→ re-displayed the exact same room correctly (confirmed by the identical room-description block appearing a second time in the transcript, immediately following the entry banner/system alert).quit→ dropped the starting "布衣" garment and disconnected gracefully with "欢迎下次再来!" ("welcome back next time").
Zero real error:/"Read access denied"/"Bad argument"/"Too deep
recursion" lines anywhere in debug.log for this session — only the same
benign Unknown #pragma, ignored / Unused local variable compile
*warnings* seen throughout every other lib in this family.
Interactive test #2 (after ALL fixes above, fresh driver restart) — real name "林风", female, incl. score
Per AGENTS.md's own diagnosis-technique note ("LPC objects don't recompile
just because their source file changed on disk; you must restart the
driver process"), the driver was killed and rebooted fresh after every
fix in this NOTES.md was applied (several touched
adm/simul_efun/message.lpc, a file every room/NPC's heartbeat/emote
path depends on) before this second, independent verification run:
2060→new→linfeng→y→林风(real Chinese name) → accepted silently, straight to wizpwd prompt (no stray extra input this time) →wizpass12/wizpass12→realpass34/realpass34→0→y(gift roll: 膂力29/悟性22/根骨15/身法14) →[email protected]→f(female).- Character entered the game world at
/d/city/wumiao(武庙/"Yue Fei Temple"), with the gender-correct starting garment ("粉红绸衫"/pink silk garment, not the male "布衣") and gender-correct in-game description ("你是一位十四岁的女性人类..."). look→ re-displayed the room correctly (room description block repeated a second time in the transcript).score→ a full, correctly-rendered character sheet: age/gender/ birth-time flavor text, all 4 attributes (膂力/悟性/根骨/身法) matching the rolled values, 精/气 (essence/qi) bars, combat attack/defense power, food/water bars, kill count, 潜能 (potential)/实战经验 (combat experience) — confirms the post-login command-dispatch pipeline works for more than justlook(a second, entirely differentcmds/command file), satisfying AGENTS.md §15ae's standing policy with a stronger signal than a single command would.quit→ dropped the "粉红绸衫" garment and disconnected gracefully.
Zero real error:/"denied"/"crash"/"undefined"/"bad argument" lines in
debug.log for this second, post-fix session either (grepped explicitly,
excluding the harmless config-table dump lines that happen to contain the
word "error"/"crash" in key names like mudlib error handler/trap
crashes).
lpcc sweep
Ran 3 times (before content-gap fix / after the d/city/obj/cloth.lpc
content-gap fix / after all remaining typo fixes), memory monitored
throughout (well within budget — 11413 files, never dropped below ~17GB
free on this 23GB host, nowhere near the §6b mega-lib danger zone):
| Pass | Pass | Fail | Total | Pass rate | |---|---|---|---|---| | 1 (pre-fix) | 11076 | 336 | 11412 | 97.06% | | 2 (after cloth.lpc fix) | 11128 | 285 | 11413 | 97.50% | | 3 (final, after typo fixes) | 11138 | 275 | 11413 | 97.59% |
Triage of the failures (per AGENTS.md §6b's "categorize before fixing" guidance):
- ~211 of the final 275 failures are a "blank" shape (
Fail to load object X.with zero further diagnostic text) — spot-checked ~6 of these across different zone clusters (d/migong/lev7/dong99,/kungfu/class/ xueshan/jiamu,d/migong/lev7/dong82) by re-running them standalone via barelpcc: every one compiled clean in isolation, confirming this is the documented §6b/§15d-shaped false-positive category (a file that's fine on its own but shows as failed when it's one of 11000+ objects compiled into a single shared-VM batch session — some state/ordering interaction across the giant batch, not a per-file bug). Verified this isn't purely "batch size" by re-running just the 256 originally-blank files as their OWN smaller batch: most (240/256) still failed even at 1/45th the batch size, ruling out a simple size/table-capacity threshold — the real common thread turned out to be the missing-content cascade below, not batch size per se. - The single highest-leverage real cause, found and fixed: 47 files'
carry_object("/d/city/obj/cloth")->wear()referencing a file that genuinely didn't exist in the raw archive at all (see fix #12 above) — this alone explains the bulk of the "blank" shape's drop from 256 to 211 files between sweep passes 1 and 2/3 (a missing target makescarry_object()return 0, and->wear()on that crashes silently during the referencing NPC's owncreate(), exactly matching the "no visible diagnostic" symptom). - The 74→(post-fix)~64 failures with real diagnostic text were triaged by error-message category (per §6b/§8g): fixed all the genuinely cheap, real, non-network-daemon ones (2× Redeclaration, 2× Bad-type set_name, 5× iconv-eaten-newline, the message_combatd/ message_sort gaps, the 3× SAVE_EXTENSION macro, the m_bian duplicate create()); confirmed the
is_root-undefined-function cluster (5×) is dead code inside the never-#includedadm/simul_efun/override.lpc(see below); confirmed theCannot #include {uid,config,daemons, mailer}.hcluster (12×) and theUndefined function {member_group, data_netmail_file, mud_name, file_exists}cluster (6×) are entirely insideadm/daemons/network/*intermud/DNS daemon files, never preloaded (preload is empty) and never referenced fromlogind.lpc's live connection path — out of scope, matches the project's established "don't chase unreached network daemons" precedent. The remaining scattered "Undefined variable"/syntax-error singletons (mostly insidefeature/vendor_sale.lpc, see below, and a handful of one-offkungfu/skill//d/-zone files not on any preload/registration path) are noted here as known, low-impact gaps rather than hand-fixed one at a time, consistent with the project's "prioritize breadth over exhausting every last content bug" policy. feature/vendor_sale.lpc(a shop/vendor-NPC feature file,#included by/inherited intokungfu/class/npc/xiaoer.lpc— 2 files affected): genuinely, severely mangled in the raw, pre-conversion archive itself (confirmed viadiffagainst the raw.c— byte-identical, not something our pipeline introduced) — roughly the back third of the file (pay_back/do_deposit/do_setprice) is missing semicolons and closing parens on nearly every line, looks like a botched find/replace or half-finished edit from the original 1999-era author (file header says "modify by ronger 99/02"). Per AGENTS.md's guidance on genuinely broken pre-existing content of this scale (as opposed to a single-line typo), left unfixed and documented here rather than guessing at the intended reconstruction of a decades-old half-edited shop-payment function — a real, pre-existing archive content gap, not a driver-compat bug.adm/simul_efun/override.lpc/user.lpc/util.lpc: containefun::overrides (snoop,shutdown,destruct, etc.) and callis_root()(undefined), but none of these three files are#included byadm/obj/simul_efun.lpcor anything else in the tree (confirmed via grep) —simul_efun.lpcimplements its own inlinesnoop/shutdown/destructoverrides directly instead. These 3 files are dead/orphaned content from an earlier engine revision; their lpcc-sweep failures are pure noise, not live bugs.
Re-verification pass (2026-07-23)
Clean re-boot confirmed (zero fatal errors, empty etc/preload boots in
well under 5 seconds). Ran the full registration + look/score/quit
flow once more in a single continuous connection (id qinchuan, real
Chinese name 秦川, male): 2060 client-version gate → new → id →
y confirm → Chinese name accepted → admin password (2x) → real
password (2x) → gift roll 0/y → email → gender m → entered the
world at 客店/"the inn", saw real NPC (店小二/innkeeper) and board
content, look re-rendered the room correctly, score produced the
full character sheet, quit disconnected cleanly ("欢迎下次再来!"). Zero
runtime errors in debug.log. No code changes needed — clean
re-confirmation of the original pass's findings.
Config notes
config.fluffos adapted from the raw config.cfg (name "夕阳再现", the
generic engine name — the live banner shows the game's real identity,
「笑傲江湖」之「重出江湖」). Dropped obsolete keys per driver warnings:
address server ip, address server port, reserved size, binary
directory, swap file. Port set to 40070; mudlib directory points
at this lib's work/; log directory is the usual /log (sibling of
config.fluffos, driver always launched via cd into this directory
first, per AGENTS.md §6).
Encoding
convert_lib.sh reported 29 lossy conversions (invalid bytes dropped) out
of 12378 files — all but 5 (see fix #14 above) turned out to be genuinely
harmless (either non-code data/save files, or code positions where the
dropped byte didn't touch anything load-bearing). No stragglers found by
the standard post-conversion file -b sweep beyond one false positive
(d/emei/shenshuige.lpc, a normal, fully-valid UTF-8 room file that file
misclassifies as "data" for unrelated heuristic reasons — confirmed by a
full Python UTF-8 decode, not a real encoding problem).
Driver rebuild / formatter / WASM pass (2026-07-23)
- LPC formatter run over all
work/*.lpc: 11,413 total, 11,324 written, 35 already-idempotent, 54 refused (self-check errors, expected on messy legacy code). One formatter regression found and fixed (same bug class as found live-breaking a sibling lib this pass):clone/misc/board.lpc'sshort()hadreturn ::name(1) + "(" + capitalize(::query("id")) + ")";mangled intocapitalize (: : query("id")\n)\n+ ")"— the formatter corrupts the::methodname(...)parent-call scope operator when immediately followed by(. Fixed by hand-restoring the original single-line form. (A second, unrelated: :match ind/migong/12gong/renma.lpcturned out to be ASCII-art map content inside a string/comment block, not code — left untouched.) - Native retest against the freshly-rebuilt driver: clean boot, zero fatal/syntax errors. Full registration flow (client-version gate
2060→new→ id → confirm → real Chinese name → admin password ×2 → real password ×2 → gift roll → email → gender) plus post-login commands re-verified in one continuous connection (idqinchuanc, real Chinese name秦川岭, genderm): entered the game world (this run landed at 北疆小镇/a Xinjiang-themed town rather than the 客店/inn from the prior pass's run — expected variance from the gift/race roll, not a bug),lookshowed real room + NPC content, the character sheet displayed correctly,quitdisconnected cleanly with "欢迎下次再来!". Zero runtime errors indebug.log. - WASM test: boots clean (only the expected non-fatal preload warnings). Found a genuine, reproducible WASM-harness/mudlib timing gotcha, not a mudlib bug:
adm/daemons/logind.lpc'slogon()hasif (uptime() < 10) { write("游戏服务器正在启动过程中,请稍等10秒后再 连线。\n"); destruct(ob); return; }— a deliberate 10-second post-boot grace period, present in the original archive, that natively is a non-issue (the real-world overhead of spawning the driver process,ssport-checking, and starting a Python client naturally exceeds 10 seconds by the time a real connection attempt lands). Underwasm_client.js,fluffos_connect()is called synchronously immediately afterfluffos_boot()returns, with no equivalent real-world gap — so every WASM test attempt hits this gate deterministically and the connection is destructed before the English-name prompt is ever reached. Confirmed this isn't recoverable by waiting longer via--send/--idleafter connecting (theuptime()check runs once, atlogon()time, which is effectively t≈0 in the WASM harness's clock) — the harness would need to delay thefluffos_connect()call itself by 10+ simulated seconds, which its current CLI surface doesn't expose. Not patched — modifying the shared harness is out of this pass's scope, and the mudlib's own 10-second gate is intentional, pre-existing design, not a bug. Documenting as a known WASM-testing limitation distinct from thequery_ip_number()one.
WASM-enablement pass (2026-07-24)
Standard four-change pass (AGENTS.md §1.3b/§1.3e/§1.5). Gates patched:
1. Loopback always allowed — adm/daemons/band.lpc: added an
is_local_site(site) helper (fail-closed, see retrofit note below)
and short-circuited:
- is_banned() (called from logind.lpc's logon() ban check) →
local always returns 0 (not banned);
- vaild_allow_address() (the account's own allow_ip allowlist
check, logind.lpc) → local always returns 1 (allowed), regardless
of whatever allow_ip list the account has configured.
2. Uptime startup gate — adm/daemons/logind.lpc's logon() had
if (uptime() < 10) { ...destruct(ob)... } (documented as a known,
pre-existing, non-blocking-natively design gate in the "Driver
rebuild / WASM pass" section above). Now only applies to non-loopback
connections: if (!is_local && uptime() < 10) { ... }.
3. Anti-flood throttles exempt loopback — logind.lpc's logon():
the per-IP concurrent-connection cap (ban_cnt > 8) now skips local
connections; get_id()'s per-IP concurrent-player cap (ip_cnt > 8)
is now also skipped for local connections (wiz_level(arg) < 2 &&
!BAN_D->is_local_site(...)).
4. Admin account seeded — id fluffos, pw Mud@2026, name 浮浮,
registered via the real flow (2060 client-version gate → new → id
→ y confirm → Chinese name → admin/"management" password →
confirm → real password → confirm → gift 0/y → email → gender
m). Granted (admin) via adm/etc/wizlist (fluffos (admin)).
- This lib's registration flow has an unusual double-password
step: besides the real login password, it also asks for a
wizpwd ("管理密码"/"management password") — despite the name,
reading logind.lpc's get_passwd()/reset_wizpwd() confirms
this is NOT related to wizard/admin status at all — it's a
self-service password-reset PIN (typing it at the normal password
prompt triggers "you typed the management password, please reset
your normal password"). Set to FluffMgmt1 (≥5 chars, must differ
from the real password) — document this as a secondary recovery
PIN, distinct from the Mud@2026 login password, since a future
agent re-seeding this account needs both.
- Genuine pre-existing bug found while verifying admin access:
include/command.h defines ADM_PATH/WIZ_PATH/IMM_PATH (and
the other unused historical rank macros BOS_PATH/ARC_PATH/
ANG_PATH/APR_PATH/GEN_PATH) as ({}) — an EMPTY command
search path — confirmed identical in the raw, unconverted archive
(not a conversion artifact). feature/command.lpc's
enable_player() calls set_path(ADM_PATH) for any account whose
wizhood() is "(admin)", so promoting fluffos via wizlist (the
documented, standard admin-grant mechanism) left the account with
ZERO working commands — not just wizard commands, but ordinary
ones too (look, quit, everything), since
commandd.lpc's find_command() searches exactly the directories
in path and an empty list matches nothing. No wizard-only command
files exist anywhere in this lib to legitimately populate these
macros with, so fixed by aliasing all of them to the same
directories as PLR_PATH (/cmds/std/, /cmds/usr/,
/cmds/skill/) — promoted accounts keep normal command access
instead of being silently locked out of the game entirely. This is
outside the standard four-item WASM-enablement scope but was
necessary to satisfy §1.5's "verify a wizard command actually
works" step at all.
Save files (untracked, NOT gitignored — orchestrator must git add):
work/data/login/f/fluffos.o(login save: password + wizpwd)work/data/user/f/fluffos.o(player body save)
Fail-closed loopback retrofit (2026-07-24)
Security correction, applied together with the initial patch above (this lib was patched fresh in this same pass, so it was written fail-closed from the start rather than needing a later retrofit):
int is_local_site(string site) {
if (!stringp(site)) return 0;
if (site == "127.0.0.1" || site == "::1") return 1;
if (strlen(site) >= 4 && site[0..3] == "127.") return 1;
return 0;
}An unparseable/empty IP is treated as remote/untrusted, not loopback — deliberately, since the original code already rejected missing/malformed IPs outright and there is no longer a WASM driver bug to work around.
Retest (2026-07-24)
Both done against a fresh driver restart (to pick up the command.h
fix, which is compile-time):
- Fresh normal registration: id
gatechk/gatetestchar(two runs, one before and one after the command.h fix — command.h only affects wizard-level accounts, so ordinary(player)registration was unaffected either way), real Chinese name (秦岭/王小江), reaches the world at a real room (北疆小镇),look/scorerender correctly,quitdisconnects cleanly with "欢迎下次再来!". Test char saves removed after verification. - fluffos login + wizard command: before the
command.hfix, a logged-in fluffos session showed "(admin)" in the banner but every subsequent command (includinglook) silently failed with ambient NPC chatter as the only output (ROOT CAUSE: the emptyADM_PATHbug above, not a login/gate problem — the account WAS correctly admin, it just couldn't run anything). After the fix: fluffos login →lookcorrectly re-renders the current room →quitdisconnects cleanly. Zero new runtime errors indebug.log(only the same benignUnknown #pragma/Unused local variablecompile warnings seen on every boot of this lib).
WASM 修复摘要(迁移自 meta.json 的 group_note)
"夕阳再现"衍生引擎上的一款独立游戏。状态已从过时的 limited 修正——这份档案自己的 README 里从未记录过任何缺陷说明,本轮重新测试也没有发现:这个版本需要 Tomud 客户端版本握手(第一行字面回答"2060",和本项目其它地方已经记录过的家族共同模式一致)——实测确认:2060→id→密码→"★ 您目前权限:(admin)",quit 干净。
§7.86 跨库扫描修复(留言板 post 崩溃)
BULLETIN_BOARDinherit+ 多余replace_program()致命形状(AGENTS.md §7.86,post命令崩溃):全档案 98 处命中,已删除多余的replace_program(...)调用(保留inherit),逐文件保留原有行尾格式(CRLF/LF 按文件原样)。本次为跨库 §7.86 扫描修复(触发原因:该 bug 已在 6+ 个互不相关的血统家族独立确认,属于近乎普遍的拷贝粘贴模式),仅做编译检查(驱动干净启动、端口正常监听),未做完整 §10.7 深度游玩测试。
深度功能测试 / Deep functional test (AGENTS.md §10.7)
Status: done. One real programming bug found and fixed (registration- breaking, every single new character); everything else — combat, organic skill/sect acquisition, quit/reconnect persistence — verified live and clean.
Environment setup gap (not a code bug, noted for the record)
This session's fresh checkout had no log/ directory at all (gitignored,
libs/*/log/ + libs/*/work/log/), so the FIRST boot attempt crashed
before the connection handler ever printed a prompt: *Wrong permissions
for opening file /log/debug.log for append. "No such file or directory",
followed by Error in mudlib error handler (the driver's own error
reporting couldn't even write *itself* because the directory was missing).
Fixed by mkdir -p log work/log before booting — this project's two
distinct log roots for this lib: the driver's own debug.log
(log directory config key, resolves against the launch CWD == lib root,
confirmed via ls libs/xajhzcjh/log/) vs. mudlib-level write_file()/
log_file() calls using the LPC-virtual /log/ path (resolves against
work/, confirmed via libs/xajhzcjh/work/log/dbgtrace appearing there
during live instrumentation) — two genuinely separate roots for two
genuinely separate log mechanisms, not a typo. Both are the standard,
already-documented (§7.44) "runtime dir doesn't exist in a fresh
checkout" setup step, not something to fix in code.
Bug found and fixed: log_file() never calls assure_file() — breaks EVERY new registration (AGENTS.md §7.11, new confirmed sibling instance)
Symptom, 100% reproducible across 5+ independent registration attempts
in this session: a brand-new character completes the ENTIRE registration
ritual (client-version gate → id → Chinese name → wizpwd → password →
gift → email → gender) with every prompt rendering correctly, then lands
on a bare > prompt with zero world-entry banner (no MOTD, no "你连
线进入这个世界" line, no ★ 您目前权限), zero working commands
(look/score/i all return the driver's generic default fail
message, "什么?", because enable_player() never ran), and zero
save file ever written to work/data/{login,user}/<letter>/<id>.o. No
error appears anywhere — not on the player's screen, not in debug.log.
This exactly matches AGENTS.md §7.11's already-documented xajhxo
sibling-instance shape (same TMI-2/夕阳再现-adjacent family pattern, same
get_gender() call site) — this is now a second confirmed instance in
the same 夕阳再现/XYZX lineage (libs/xyzxfy2 and libs/ylfyxa3 were
ALSO independently found and fixed with the identical shape in their own
deep-test passes — adm/simul_efun/file.lpc's log_file()/assure_file()
pair is a shared low-level utility copy-pasted across this whole family,
so check it FIRST on any future 夕阳再现-lineage dive rather than
rediscovering this from scratch).
Root cause: adm/daemons/logind.lpc's get_gender() — the LAST step
of the registration input_to() chain, executed right after the gender
prompt, immediately before init_new_player()/enter_world() — calls
log_file("login/newid.log", sprintf(...)) to record the new account in
a per-lib registration log. adm/simul_efun/file.lpc's log_file() was a
bare write_file(LOG_DIR + file, text) with no directory-existence guard
at all. On a fresh work/ tree, work/log/login/ has never been created
(nothing in this archive's own boot path creates it), so this
write_file() throws *Wrong permissions for opening file
/log/login/newid.log for append. "No such file or directory" — and
since nothing in get_gender() catches it, the uncaught error aborts the
rest of that function, meaning CHANNEL_D->do_channel(...),
init_new_player(user), and — critically — enter_world(ob, user) never
run. enter_world() is where user->setup() (which calls
enable_player(), wiring up every player command) and user->save()/
ob->save() live, so skipping it silently strands the new character with
no commands, no save, and no visible sign anything went wrong.
Confirmed via live catch()-wrapped instrumentation (temporarily added
then reverted, not part of the shipped fix) that this exact call is the
one throwing: err=*Wrong permissions for opening file
/log/login/newid.log for append. "No such file or directory", and that
wrapping it (or fixing the shared root) lets enter_world() run to
completion with the full banner, working commands, and a real save file.
Fix (adm/simul_efun/file.lpc, matching this lineage's established
assure_file()-before-write_file() convention exactly, same shape as
xyzxfy2/ylfyxa3's own fixes): added assure_file(LOG_DIR + file);
as the first line of log_file(), plus a one-line forward declaration
(void assure_file(string file); before log_file()'s own definition)
since assure_file() is textually defined further down in the same file
and this driver's compiler doesn't resolve forward references without an
explicit prototype (same convention logind.lpc itself already uses
elsewhere). This is the shared-root-cause fix (AGENTS.md §6.4): it covers
every log_file() call site in the tree, not just get_gender()'s,
including any future subdirectory nobody has thought to pre-seed yet.
Formatter: ran format-corpus.mjs on the touched file — 0 written
(already idempotent with the fix applied), 0 errors. Checked the 3 §9
blind-spot greps on this file specifically: clean (no : : split, no
\ n corruption).
Registration + state verification (multiple independent live sessions, post-fix)
Raw-socket Python test client (scripts/mudclient.py-equivalent, written
ad hoc this session — tmux/telnet kept dying mid-session in this
particular container for unrelated reasons, see below) driving one
continuous connection each time:
秦岚(idquicka) — full registration → world entry at 武庙 (wumiao), banner/MOTD/permission line all render,look/score/iall work. Save file confirmed on disk. (Used for the root-cause instrumentation pass; re-verified clean again as the final post-fix smoke test with a fresh boot.)文剑(idwenjianc) — registration → world entry at 武庙 →look/score/i→ walked to 北大街,fight scavenger(收破烂的): correctly invoked the safe-sparaccept_fight()path (human NPC,can_speakset) but the scavenger declined in-character ("小兄弟 饶命!小的这就离开!" / "看起来收破烂的并不想跟你较量。") — a real, clean exercise of the mechanism with a negative outcome, not a bug (see combat mechanism notes below). Continued to 丽春院 (an age-gated room, see content-observation note below) →apprentice kongkongfailed because kongkong was never reached.score/i→quitclean.林牧(idlinmuc) — registration → world entry at 铁枪庙 (tieqiang, one of the 4start_rooms) →fight wuya(a 乌鸦/crow): this is a beast-race NPC, not human, so it has nocan_speakandfight.lpcsilently routes it through the REALkill_ob()branch instead of the safe spar (see below) — character took a few points of real combat damage (survived fine, "气" bar stayed full) before moving away broke off the fight.apprentice limochou(a nearby quanzhou-local NPC copy, noattempt_apprenticeoverride) got the correct default-reject dispatch (你想拜谁为师?, meaningpresent()didn't even find her by that name — a harmless test-script naming miss, not a bug).score/i→quitclean.杨飞(idyangfei, passwordplaypass456) — the complete end-to-end run: registration → world entry at 北疆小镇 (beijiang) →look/score/i→ walked east to 巴依家院 →fight bayi(a human NPC,attitude: heroism): accepted ("巴依说道:既然小兄弟赐教, 老头子只好奉陪。"), a real multi-round sparring exchange followed ("你挥拳攻击巴依的后心...但是巴依已有准备"/"巴依对准你的腰间用力挥出 一拳...你受了几处伤,不过似乎并不碍事" — flavor text matching the documented "只会消耗体力,不会真的受伤" non-lethal design) →look/scoreafter combat → walked to 天山山路 (near 灵鹫宫, ~5 hops from beijiang) →apprentice shihou(matched 狮吼子/"Shihou zi", a 星宿派/Xingxiu-sect NPC with an unconditionalattempt_apprentice()accept) succeeded completely: "狮吼子说道:好吧,我就收下你了。" → "你跪了下来向狮吼子恭恭敬敬地磕了四个响头,叫道:「师父!」" → "恭喜您成为星宿派的第三代弟子。" — confirmed viascore: title changed from 布衣平民 to 【武林人物】星宿派第三代弟子. →score/i→quitclean ("你丢下一件布衣" / "欢迎下次再来!").
- Reconnect after a real ~1-hour wall-clock gap (this session's own
root-cause investigation + NOTES.md drafting time, not a sleep):
logged back in with yangfei/playpass456 → landed back at the
exact saved room (天山山路) → score confirmed full state
persistence: title still 星宿派第三代弟子, "你的师父是狮吼子。"
(master field persisted), all 4 attributes unchanged (19/22/18/21) →
quit clean again. No quit-retention lockout or grace-period logic
exists in cmds/usr/quit.lpc for new accounts (confirmed by reading
it: unconditional me->save(); destruct(me);, no deletion path) —
didn't need the "kill the raw connection instead" fallback.
log/debug.log grepped after every one of the above sessions for real
error:/denied/crash/undefined/bad argument lines (excluding the
benign Unknown #pragma/Unused local variable compile warnings and the
literal string "mudlib error handler" in a config dump key): zero real
errors in the entire final (post-fix) test corpus.
Combat mechanism (read from cmds/std/fight.lpc, then live-verified both branches)
fight <target> is this lib's dedicated safe-sparring command — its own
help text says so explicitly ("这种形式的战斗纯粹是点到为止,因此只会
消耗体力,不会真的受伤"/"purely a courtesy bout, only costs stamina, no
real injury"), distinct from kill (real, lethal) and hit. Critical
nuance this lib's own source reveals, worth reading before picking a test
target in ANY sibling of this lineage: fight.lpc's main() branches
on obj->query("can_speak") — if the target can't speak, the "polite
challenge" flow is skipped ENTIRELY and it falls straight into
me->fight_ob(obj); obj->kill_ob(me);, i.e. a real, lethal fight,
even though the player typed fight, not kill. can_speak is set to 1
only by adm/daemons/race/human.lpc's setup_human() — so it's
effectively "is this NPC human" — every non-human race (beasts, etc.) is
UNSAFE to fight despite the command's name and help text. Confirmed
live on both sides: fight wuya (race 野兽/beast, no can_speak) →
real kill_ob() combat, took actual damage. fight bayi (default race,
human, can_speak set) → real accept_fight()-mediated safe spar,
non-lethal flavor text only. Lesson for future dives in this lineage:
"a clearly-safe humanoid NPC" isn't just stylistic advice here — picking
an animal NPC for the "safe" combat test would have been actively unsafe
on this exact codebase.
Default accept_fight() (inherit/char/npc.lpc) requires the target NOT
be already fighting, above 90% jing/qi, and NOT have attitude: friendly
(friendly NPCs always decline — matches the scavenger/维吾尔族妇女
rejections seen live). heroism/aggressive/killer/unset attitudes all
accept by default. No dedicated "training dummy" NPC was actually reached
live this pass (the d/*/npc/mu-ren.lpc "练功木人" with no_die: 1 seen
during source review would have been an even stronger choice, but bayi
already gave a clean, complete, accepted spar).
Skill/sect acquisition — organic path (live, succeeded) and admin shortcut (confirmed absent)
Organic path: apprentice <target> (aliased bai, cmds/skill/
apprentice.lpc) → for an NPC target with a working attempt_apprentice()
override, an unconditional acceptor recruits immediately in one command
(see 狮吼子/Shihou-zi run above — full success, title + master field both
persisted through a reconnect). Most class-master NPCs
(kungfu/class/<sect>/*.lpc) gate acceptance on stats/gender/karma (read
several: kungfu/class/gaibang/hong.lpc wants str>=20 && con>=25,
.../liang.lpc wants str>=25, .../zuo-qu.lpc wants male, etc.) — but
a handful (kungfu/class/xingxiu/{azi,shihou,tianlang,zhaixing}.lpc, at
least) accept unconditionally. Default attempt_apprentice()
(inherit/char/npc.lpc) always politely declines for any NPC without an
override (verified live: apprentice tuobo-seng/apprentice limochou
against non-master NPCs both got the correct in-character decline/
not-found response, no crash).
Admin shortcut: confirmed absent. This lib ships no cmds/adm/ or
cmds/wiz/ directory at all (ls cmds/ → only skill/, std/,
usr/) — matches the already-documented include/command.h finding
(§1.5 admin-seeding pass, this same NOTES.md above) that this archive
never shipped any wizard-only command files. There is no in-game
admin command anywhere in this lib to directly grant a skill or sect
membership to a player — the organic apprentice/learn/study/
practice commands are the only path, for admins and players alike.
发现但判定为既有设计、未改动的现象 (observations, not bugs)
- 丽春院 (brothel room) blocks entry for a 14-year-old character with "小朋友不要到那种地方去!!" ("kid, don't go to that kind of place!!"). Every fresh character is born age 14 (
adm/daemons/race/human.lpc:if (undefinedp(my["age"])) my["age"] = 14;), so this room — and its resident NPC 孔空儿/kongkong (an otherwise-unconditional gaibang recruiter) — is unreachable by any brand-new character until they age up in-game. Sensible, deliberate content gating, not a bug; just meant picking a different apprentice target for this pass's live test. 收破烂的/scavenger declining afightchallenge and fleeing ("小兄弟饶命!") is intentional per-NPC characterization (a coward/thief archetype), not the safe-spar mechanism malfunctioning — the sameaccept_fight()call correctly ran and correctly returned a decline;attitudejust wasn't set to something that accepts by default for this particular NPC (or it has its own override not investigated further, out of scope once the mechanism itself was already confirmed working elsewhere).- Wuya (crow) escalating a typed
fightinto a realkill_ob()fight is fully explained byfight.lpc's owncan_speakbranch (documented above under "Combat mechanism") — read as intentional design (animals don't have a "point to stop" courtesy fight the way humans do in this lineage's combat model), not a bug, though it IS a genuine safety trap for a careless player (or a careless test pass) expectingfightto always mean "safe" against any target regardless of species.
WASM 未验证说明
Not re-verified under WASM this pass (native-only, per this project's
current WASM build blocker). Confirm via:
curl -sS "$HTTPS_PROXY/__agentproxy/status" — emsdk's
storage.googleapis.com dependency is denied by the proxy, unchanged
from every other lib checked this session.
深度功能测试(2026-08-13,round two,新驱动重测)
针对升级后的驱动(quest_times/win_times %-operator 修复 + Warning/
warning 大小写驱动兼容回退)做的第二轮 §10.7 重测。
环境笔记:build/src/driver 在本次会话的宿主 CPU 上崩溃(非本 lib 问题)
scripts//AGENTS.md 惯用的 /home/sunyc/src/fluffos/build/src/driver
本次会话启动即崩溃:Illegal instruction 于
evthread_use_pthreads——反汇编确认该函数被编译成使用 AVX 指令
(vmovq/vpinsrq/vinsertf128),而本次会话实际落地的宿主 CPU 是
Intel(R) Xeon(R) CPU L5520(Nehalem,2009 年,/proc/cpuinfo
flags 里最高只到 sse4_2,完全没有 AVX)——一个构建/宿主 CPU 不匹配
的环境问题,与 xajhzcjh 自身代码无关。改用同仓库另一份构建
/home/sunyc/src/fluffos/build-debug/src/driver(未启用相同的
AVX 代码生成路径)成功干净启动、监听 40070、完成本轮全部测试。记录此
坑供后续同一宿主上的 session 参考:如果 build/src/driver 启动即
"Illegal instruction",先试 build-debug/src/driver,不要误判为
lib 本身的问题。
发现并修复的 PROGRAMMING bug
1. adm/daemons/logind.lpc 里两处遗留的 printf("%O\n", ob); 调试
残留(AGENTS.md §7.34 的形状,与 xajh4gkb round two 独立确认的同一
位置形状一致):分别在确认中文名字后进入密码设置的两条并行分支
——get_resp()(接受随机产生的名字)第 532 行、get_name()(手动
输入名字被接受)第 565 行——每次注册确认名字后都会把 ob 的
file_name(如 /clone/user/login#0)原样打印给玩家。Live 实测
已复现:用测试号 testqqchen 走完整注册流程,屏幕上在"请设定您
的管理密码"提示前出现了裸的 /clone/user/login#0。两处均删除该行,
只保留紧邻的 ob->set("name", ...)。round one 的 NOTES 完全没有提
到这两行,是本轮新发现(round one 覆盖了这个文件的其它 bug 类,唯
独漏了这个)。修复后用第二个测试号 verqqchen(女性分支)重新走完
整注册流程确认:不再出现任何裸路径泄漏,正常进入游戏世界,男女分
支各自的起始服装(布衣 vs 粉红绸衫)都正确。
§7.34 log_error() / §7.11 log_file():round one 已修复,本轮确认仍在位
adm/obj/master.lpc's log_error() 仍有大小写不敏感的
strsrch(message, "arning:") == -1 判断;adm/simul_efun/file.lpc's
log_file() 仍在 write_file() 前调用 assure_file(LOG_DIR + file)
(含正确的前向声明)。两处均未见回归。
§5/dbase.lpc 密码守卫检查:不适用
feature/dbase.lpc 的 set(prop, data) 是纯粹的无守卫赋值(读取整份
文件确认),没有任何 wizhood()/password 相关的特殊分支——跟
tybxjh/wlhd 那个 bug 形状完全不同,这个 lib 没有对应问题。
管理员播种验证:wizlist 条目确有对应存档,本轮做了真正的断线重连
adm/etc/wizlist 里 fluffos (admin) 这条 round one 就已写入,
data/login/f/fluffos.o、data/user/f/fluffos.o 也确实存在(不像本
轮重测系列里其他几个 lib 那样"wizlist 里看起来对但从未真正注册过")。
本轮用 fluffos/Mud@2026 走了一次登陆(2060 → id → 密码),入世
后横幅确认 ★ 您目前权限:(admin),look/east/west/score 全部
正常。强制验证步骤:quit 断线后用一个全新的 tmux 会话重新连接,
2060 → fluffos → Mud@2026 完成一次真正的断线-密码-重连,密码验
证通过,管理员权限保持 (admin),落回原来存档的房间(武庙)——不是
只看世界进入和权限横幅就下结论。存档文件的 last_on/combat_exp 字
段随之更新(score 命令触发的正常游玩状态变化),已随本次提交一并
纳入。
移动/驱动兼容性检查
east→west 往返移动、score 多次未触发任何"Too long evaluation"
崩溃或其他异常,debug.log 全程(262 行,逐行读过)只有一贯的
Unknown #pragma/Unused local variable 编译期警告,与 round one 记
录的基线一致,零真实 error/denied/crash/undefined。
quest_times/win_times %-operator 修复:抽查确认在位
d/city2/npc/refereew.lpc 现有 to_int(query("win_times")) % 5,是
corpus-wide 2026-08-12 sweep(commit c571a53629f)已经打过补丁的写
法,无需额外改动。
未在本轮测试
拜师门派、商店购物、完整战斗到死亡/复活循环——round one 已用多个测试
号做过完整覆盖(安全切磋 vs 真实战斗的 can_speak 分支、组织化拜师
成功案例、跨重连状态持久化),本轮认为不需要重复;本轮重点是驱动升级
后的回归检查 + 正常游玩中顺手发现的 bug(本次即发现了新的 §7.34 实
例)。
AGENTS.md §7.100 修复(2026-08-19,批次三)
ROOM 基类冗余 replace_program(ROOM); 自崩溃地雷(详见 AGENTS.md
§7.100):4239 处命中。自带建房工具 clone/misc/roommaker.lpc 的
字符串拼接模板同样修复。
git diff --stat:4238 files changed, 1 insertion(+), 4239 deletions(-),
与预期精确吻合。
验证:build-debug 驱动真实冷启动,端口 40070 正常监听。既有管理
员账号 fluffos/Mud@2026(经本 lib 要求的 "2060" 客户端版本握手)
登录,您目前权限:(admin) 确认,武庙→北大街→北门多房间走访无
误,quit 干净退出,全程无新增 "cannot replace"/"cannot bind" 日
志行。
§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): 4 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.