Technical reference for working on InfiniteLoop, a branch of AscNet: client/protocol targets, per-feature implementation notes, running the server directly or through the Steam/PC bridge, testing, and repository rules. Players should start with the README.
This is research/dev infrastructure, not an official service. It expects a local client, a local AscNet process, and a local MongoDB database.
The current server data/config target is 4.8, not a claim of complete 4.8 gameplay compatibility:
| Area | Value |
|---|---|
| Client package | com.kurogame.pc.punishing.grayraven.en |
| Application version | 4.8.0 |
| Document version | 4.8.12 |
| Launch module version | 4.8.12 |
| Steam/PC channel | 205 |
| Game server TCP port | 2335 by default |
| SDK/HTTP URL used by the runner | http://127.0.0.1:8080 by default |
Resources/Configs/version_config.json includes the 4.9.0/4.9.1 entries for every region (EN, TW, KR, JP, CN; see the 4.9 launch/update contract below) and retains the authoritative 4.8.0 -> 4.8.12 and older tuples. The native launcher's binary allowlist targets client 4.9.1 (and still accepts 4.8.0), EN, TW, KR, JP and CN (launcher 1.0.32, patch 0.6.0; CN: see cn-sdk-support.md).
One instance serves every region: the package in the config request picks the Packages entry (document/launch version, hashes and its Region block of CDNs, channel, server-list label and config rows) in version_config.json, and each TCP session reports its own document version from the handshake. Notices are per package; gameplay tables stay the shared EN-derived set for all regions except the per-region overlay below. KR and JP config tuples come from their live config.tab; KR/JP native hooks are statically checked only (see AscNet.Launcher/docs/client-download.md) until a KR/JP client run.
Gameplay tables are the shared EN-derived set, but a TW client resolves ids against its own tables (the TW 4.9.1 Task.tab has 12,799 rows to EN's 13,873: 1,552 EN-only, 478 TW-only; MailCollectionBoxActivity 319 vs 280). Ids the client lacks log a full Lua stack trace each (XTaskConfig.GetTaskCfgById, XMailModel.GetActivityFavoriteMailData), ~44× per id from the dorm red-point checks, which froze a TW client for 20 s at login past the server's 10 s idle drop (Session.ClientLoop), so the client reconnected and lost its pending RPCs (loading spinner forever). Region identity and tables:
- Identity: the TCP login carries no package. Each regional package's
ServerListStr/ChannelServerListStrgate is/api/Login/Login-<region>(ConfigController.GateRegionRows, TW/KR/JP; CN always hadLogin-cn); the gate remembers the region by the player's game token (ClientRegions),LoginRequestpersists it asPlayer.ClientRegion(null = EN; kept for reconnects, which have no gate request). - Overlay:
Resources/regions/<region>/table/share/...holds the region's own rows for exactly the id-deciding tables (Taskids,MailCollectionBoxActivity,MailCollectionBoxFavoriteMail), projected onto the server columns byScripts/import_region_tables.py(provenance:manifest.jsonregionTables).TableReaderV2.Parse<T>(region)reads the overlay when present, else the shared table. Source:Scripts/fetch_region_tables.py --region tw --out <dir>builds a tables-only stub install from Kuro's CDN (packageInPkgIndex+ sha1-pinned document index +matrixmanifest, ~1,870 table bundles, ~240 MB, every file sha1-verified), thenscan_client_upgrade.py --extract --install <dir>/install --output ../PGR_DATA/<region>-4.9/bytes. - Task pushes:
Session.SendPushdrops task ids the region'sTask.tab∪BigWorldTask.tablacks fromNotifyTask/NotifyTaskData(ClientRegionTables); EN reads no overlay and is unchanged. Collection-box login ids and favourite-mail claims use the region's own activity/mail rows (the TW favourite-mail ids that differ from EN, e.g. activity 50007 is EN-only). - Login stall and reconnect (EN, low-end clients):
NotifyTaskDatais the only full task list at login (a second fullNotifyTaskused to follow it, byte-identical, and forced the client to materialize its lazy task model and fireEVENT_TASK_SYNCred-point checks).TaskModule.BuildLoginTasksalso omits rows the client rebuilds itself:XTaskManager.InitTaskDatafills everyTask.tabrow absent from the list as Active/0 except Daily(2)/Weekly(3)/InfestorWeekly(22) (a level-4 account: 3,126 rows / 254 KB -> 259 rows / 21 KB). A reconnect keeps the client's task model, soReconnectRequestonly reseeds the session's delta baselines (TaskModule.SeedTaskSnapshot) and re-pushes nothing.ReconnectResponse.RequestNois the highest clientPacket.Nothe server received (Session.LastClientPacketNo, kept per player across sessions); the client'sCS.XNetwork.ReCall(RequestNo)drops cached requests numbered up to it and resends the rest. It used to echo the server push sequence (LastMsgSeqNo), which made the client discard its unanswered RPCs (infinite loading); the echo remains only when the server never saw a numbered client packet.--login-stall-onlypins this. - Pay and monthly passes (issue #52):
share/pay/Pay(all four regions; CNPay6…Pay648areShowUIType 0withMoneyCard= CNY, TW/KR/JP likewise; the EN client alone hidesShowUIType != 1, soCompleteLocalRechargeaccepts any row of a region's own Pay table but onlyShowUIType 1rows of the shared one),share/pay/AccumulatedPayReward(CN only: KR/JPMoneyis in another unit) andclient/purchase/PurchasePackageYKUiConfighave overlays. A client resolves monthly-pass packages by its own region's ids (EN 83028/90291/90292/90032, CN 10000/201/202, TW 10000/80326/80327, KR 83028/86314/86315, JP 83028/84345/84346);XUiPurchaseYKList:OnRefreshindexesGetPurchasePackageYKUiConfig(id).SortWeightand aborts on an unknown id before any card orBtnBuyhandler exists, so the pass tap sent no request.client_purchases.jsonentries may carryRegions(allow-list; absent = every region, null client region =en); the CN passes 10000/201/202 areRegions: ["cn"], the EN passes["en","tw","kr","jp"]. TW/KR/JP still need their own pass entries. - Not region-safe yet: every other shared table still differs per region (e.g. TW
Item2,899 vs 2,968 rows,Reward21,007 vs 23,561,Condition12,060 vs 12,298,TaskTimeLimit754 vs 789,Stage,Gacha/Lotto,SignIn); same-id rows also differ (taskCondition,Equip*,Fashion). Region diffs:--region-tables-onlypins the login/claim contract. - Study catalog (4.9.1):
Resources/Configs/study_compatibility_4.9.1.json(Practice/Teaching stages, robots, enhance skills;CurrentClientStudyTables) is generated byScripts/generate_study_compatibility.pyfrom the EN 4.9 tables (../PGR_DATA/en-4.9/bytes, manifest sha1-checked). CN, KR and JP 4.9 produce the same catalog apart from localizedName/Description/StarDesc/DescDetailtext the client never takes from the server; TW 4.9'sStagelacks 39 rows (e.g. 30017000, 30180410) and the generator rejects it, so one shared file serves every region. Robots deploy the first skill of each skill group (XRobot:GenarateRobotSkillList), so a switch group's alternate (Leia 143328) is never deployed beside its main skill. - Robot CUBs:
Robot.RobotPartnerIdselects ashare/robot/RobotPartnerrow (Scripts/import_robot_partner_4_9.py);FightModule.BuildRobotPartnersends it as the robot's fightPartner(XRobot:InitPartner: Id = RobotPartner row, main skill picked by the robot character's element, authored passives worn). Without it the Adaptation Fitting and teaching-stage CUBs never spawn.
The 4.9 launch Lua (launch/xlaunchupdate/*) keys updates on SVN-style ids, not x.y.z document versions. XLaunchUpdateManager._IsSkipUpdate and XModuleUpdateInfo._IsSkipUpdate (launch + matrix) skip the whole download pipeline (no Client2Cdn.json, LastBuildVersion.json, …/Release/<svn>/{matrix,launch}/index, patch info or AB downloads) when DocumentVersion == LaunchModuleVersion == CS.XInfo.Version; CheckAppUpdate additionally needs ApplicationVersion == CS.XInfo.Version. The client requests config.tab with its XInfo.Version (4.9.0 for the 4.9.1 install; 4.9.1 is the package/launcher version) under cdn key clEoudH0zUSDQsQa, so version_config.json carries identical 4.9.0 and 4.9.1 entries whose three versions equal the entry key. Every other EN row is the live Kuro config.tab byte for byte (AscNet.Test/Fixtures/Region/en49.tab), including the authoritative IndexSha1 7be18b2e…/LaunchIndexSha1 b069d45a… (equal to the sha1 of the CDN's 1739029 matrix/launch index) and the new LeastVersionFile/LeastLaunchVersion/PatchedList/UseNewDownloader rows; only AscNet-owned rows (pay callbacks, server lists) and DocumentVersion/LaunchModuleVersion (retail 4.9.9, which would make the client download from Kuro's CDN) differ. On its own the skip shortcut would run only the install's resource/ package (build 1739029 minus 44 audio/video files and Build/InjectFix/Assembly-CSharp.patch.bytes); the restored document/ tree described next supplies them. KR/JP/CN 4.9 rows are the 4.8 live rows with only the three version rows swapped (no live 4.9 key known); TW and other packages use the generated current-client config.
Skip mode still uses document/: XModuleUpdateStateInitLocalIndex loads document/{matrix,launch}/index when its sha1 equals the served IndexSha1/LaunchIndexSha1 (EN 50ea2113…/c6f5818d…, build 1746920), and XModuleUpdateStateInitResData then maps every file the package index (resource/matrix/InPkgIndex, resource/launch/index) does not hold with the same sha1 to document/<tree>/<file>. Nothing is downloaded in skip mode (DownloadAb/ClearFiles/DownloadPatch are gated by HasUpdated()), so a missing document file is a load failure. Scripts/restore_document_patch.py --install <game dir> --backup <dir> rebuilds that tree for build 1746920 from Kuro's CDN (2,406 matrix files 3.76 GB + 3 launch files, every file sha1-checked, indexes written last; --dry-run only reports). It is idempotent and resumable; re-run it if the game deletes document/matrix/launch (XLaunchUpdateManager:MajorVersionCheck wipes both when the PlayerPrefs key MajorVersion is empty). The launcher restores it from the documentPatch pins in supported-client.json (always the newest pinned build, so a player on the previous build only downloads the delta): Verify & Repair/install/update do, and so do Set up and Play automatically before their other work (index check only when current; on cancel, failure or no network they continue with an Activity notice that Verify & Repair will fix the files). Retail moved to build 1746920 (EN; TW 1746911, KR 1746907, JP 1746890, CN 1747049): version_config.json serves that build's IndexSha1/LaunchIndexSha1 and its live LeastVersionFile/PatchedList rows, but keeps DocumentVersion/LaunchModuleVersion equal to the client version (Kuro's 4.9.9/4.9.10 would start the retail updater). A client whose document/ index does not hash to the served sha1 (not yet repaired) loads an empty document index in skip mode (XModuleUpdateStateInitLocalIndex; SetUpdateStatue is a no-op when skipping) and runs on the package files only; it does not download or delete anything (the 1746920 launch Lua also disables MajorVersionCheck).
Notices: Resources/Configs/Notices/<version> is matched against the exact version in the request URL (no fallback), so a 4.9.0 request needs Notices/4.9.0. That set (Login/Game/ScrollText/ScrollPic/SecondMenu JSON, 11 ScrollPic images) is Kuro's live EN 4.9.0 notice config, the same documented source as the older sets; HTML pages are generated from titles. Kuro serves no PopUpPicNotice.json for 4.9.0 (404), so the server answers null as for 4.8. The 4.9 notice Lua (XNoticeManager, XUiLoginNotice, ...) is identical to 4.8 apart from line endings, so the schema is unchanged. These fixtures are time-bound captures (maintenance banners, rate-up windows) and must be refreshed per release.
InfiniteLoop free notice: AscNet.Common/Util/FreeNotice.cs is the single compiled-in source of the five-language "InfiniteLoop is free / official source" text (tw/kr/jp/cn are machine-translated, native check pending). It is not read from config: the undeletable mail ascnet-disclaimer is upserted by id at every login (MailModule.EnsureFreeNoticeMails), the home marquee carries it, and ConfigController replaces LoginNotice/ScrollTextNotice and prepends a GameNotice entry (ids infiniteloop-free-*, HTML infiniteloop-free-<region>.html) for every version, by package region. A session whose peer address is not loopback (Session.IsHosted) also gets the infiniteloop-hosted-warning mail (unread at every login) and a second marquee line. Limits: a proxy/tunnel on the same machine looks like loopback, and an operator who rebuilds the server can remove all of it. Selector: --free-notice-only.
Regional 4.9 (TW/KR/JP/CN): the CDN key is XBuildConfig.CDNKey in each region's launcher package. It is serialized in PGR_Data/resources.assets right after the package id and the 4.9.0/4.9.1 versions; Scripts-free derivation: take downloads.<region>.baseUrl + PGR_Data/resources.assets from AscNet.Launcher/supported-client.json on the region's launcher CDN, find XBuildConfig, read the 16-char string after Release. Keys: EN clEoudH0zUSDQsQa, TW KaWGXt8A8wm5iqm5, KR vxUrzyBXEyY1L5T8, JP u6ubWH4wy50y8LDz, CN (com.kurogame.haru.kuro) tAWC541FSRl5WHwq. The client's config URL is <prod CDN from resources.assets>/client/config/<key>/<package>/4.9.0/standalone/config.tab. version_config.json 4.9.0/4.9.1 Packages hold each region's live rows (Fixtures/Region/{tw,kr,jp,cn}49.tab); the index sha1s equal the sha1 of the CDN's matrix/launch index of that region's least build (TW 1739062, KR 1739050, JP 1739043, CN 1738992). AscNet owns only the Document/LaunchModule versions (set to the entry key for the skip shortcut; live is 4.9.8/4.9.9), pay callbacks and login lists. Notices are per region: Notices/4.9.0/<package>/ (own JSON + client/notice/pic) wins over Notices/4.9.0/ (EN) for that package. Test: ValidateRegions49.
- Added current-client config generation for the PC package
com.kurogame.pc.punishing.grayraven.en. - Added Steam/PC channel handling with channel
205. - Added current-client CDN and server-list payloads for the config endpoints.
- Added Kuro SDK compatibility endpoints under
/sdkcom/v2/..., including:- email/password login
- Steam third-party login
- auto login
- real-name login/check
- access token
- OAuth code generation
- Steam/PC third-login mark/browser helpers
- player config/system config payloads
- Added gate-login fallback via
ASCNET_GATE_FALLBACK_USERNAME, so Steam/KRSDK handoff can map an unknown external user id to a local AscNet account. - Added current notice fixtures and endpoint compatibility checks for the current client.
- Added
run_steam.py, a local runner that starts AscNet, optionally starts MongoDB, starts mitmproxy, performs SDK/config smoke checks, creates or verifies a local AscNet account, and launches the client command with proxy environment variables. - Added
proxy.pyrouting for current PC/Steam HTTP traffic:sdkapi.kurogame-service.comsdkapi.kurogame-service.xyzprod-encdn-*.kurogame.net- local wildcard
/api/,/prod/, and/sdkcom/requests
- Added redacted proxy flow logging to
.runtime/proxy-flows.log. - Added KRSDK cache repair/seeding helpers for local Steam bridge experiments.
- Added
launch-pgr-ascnet.shas a macOS/CrossOver launch example. Its paths are workstation-specific; adjust them before reuse.
Installed, SHA-verified client tables and Lua are the source for this update. Resources/table/manifest.json records per-table provenance and preserves earlier local-policy projections. This update adds no capture-backed runtime data.
- Kurumi Tokisaki and Adelyde: Anabasis acquisition, normal progression, exhibition rewards, and training-item handling; training maximizes authored level/grade/eligible normal skills, not evolution or Leap.
- Zafkiel and Kelpie CUB data, five weapons, Pesanteur memories, new coatings/portraits, and authored Harmony II upgrades. Memory resonance discounts now follow the two configured suits rather than the previous single-suit assumption.
- Signature memories in the 6★ Memory Shop (406): 4.8 Pesanteur (suit 1665) and 4.9 Mousme (suit 1666, Leia) had no goods, so neither set could be obtained anywhere (no draw, reward or other shop references them; the client's Set screen
ScreenGroup2 already lists both). Their twelve pieces are AscNet local policy (no retail extract exists): the same 150 6★ Memory Shard price, per-site priority and sequential ids as every earlier suit, stored inResources/Configs/client_shops.json. Regression:--version49-memory-shop-only. - Observer effects use
CharacterObsTransformcareer/element rules, including Overlinker. Stage general-skill bans follow the authored stage flag. - Standard 4.8 draw catalogs, Crucible milestone claims, Date A Live acquired-copy task progression, and selected-lottery state. Unsupported collab currencies are not guessed.
- Free-ticket rewards persist as serial ticket stock, not inventory items. Every paid or free draw freezes its rolled outcome, pity/history and debit plan in one durable write, then grants once through per-document reward receipts; login resumes frozen draws, and a retry cannot charge, grant or advance progress twice. Non-Fate collab banners spend the paid ticket family and combine earned tickets in the same cost plan; the Fate banner remains closed (below).
- Updated notices, event calendars, multi-round sign-ins, the Farwatch File Passport season, and 487 Study stages, including new frame trials and Celica practice.
- Chapter 43 (Anchored in Faith), its LifeTree/exhibition dependencies, Wrathful Monsoon boss trials, and Kurumi/Adelyde teaching trials, guides, affection tasks, trust gifts, and dorm interactions.
- Festival and coating-trial progress is rebuilt from persisted stage clears rather than fixed login payloads. Teaching treasure claims recover partially persisted rewards at login, including after the event closes.
- Coating self-choice gachas
50–53use authored rewards, costs, limits, milestones, and calendar51001. Selection changes preserve each pool's progress; frozen draw/exchange intents recover without charging or granting twice. Scene rewards persist ownership and notify the client. - Music playlist reordering uses the original client's reversed wire/display order and persists across login.
- Pain Cage intensive-battle feature-group mappings and fight events now match the authoritative EN tables.
- Envelope invitation/open/bind/story mutations, task notifications, first-day grant, accumulated per-business-day catch-up and earned-but-unclaimed task reissue; server-local Team Recommendation boards with persisted, server-evaluated target progress.
- FangKuai v2 Start/Sync/Settle state, scoring operands, rewards, and tasks; chapter calendars
50802–50804inherit the authored parent window. The client owns board generation; snapshot checks do not prove native move history. - Equipment mutations push every affected slot in one
NotifyEquipDataListbefore the response. Taking a weapon off, or moving one to another character that does not hand back the weapon it displaces, is rejected; login normalization gives a weaponless owned character its authored default weapon and frees incompatible wearables.
Distributed sources do not carry every retail rule. These surfaces state their local policy explicitly:
| Surface | AscNet policy (not retail parity) / remaining gap |
|---|---|
| Guild Boss scoring | Provisional retail-observed score: Base 140000, damage floor(TotalDamage / 30), and HP floor(HpLeftPer * 100) on a 10000 maximum; partial-HP rounding and universal retail applicability remain unverified. |
Collab draws 5612, 381, 7068 |
AscNet policy (not retail): open at the 4.8 maintenance end, 2026-09-24 05:00 UTC (1790226000), instead of retail 2026-09-29 10:00 UTC (1790676000); end unchanged. Groups 37/38 (Kurumi and her closed Fate pair), 39 (collab weapon 381), and 40 (collab CUB 7068) carry Tag 5 from client DrawTabs Id 5 (Collab / Kurumi Tokisaki Pool). The client sorts that tab by Order descending, so group 39 uses Order 2: frame group 37 (4002), then the weapon, then CUB group 40 (1). Their priorities stay 22000, 510, and 8100. Season weapon 383 and CUB 7071 stay on tags 1 and 7 with Order 1. Login pushes NotifyDateALiveDraw with DateALiveActivity draws that are currently open ({1:[5612]} in window, empty otherwise). Paid ticket family 50017–50019 and earned family 50021–50023 fund a single combined cost plan, and the banner presents the paid family's primary item. |
Collab Fate 5613 |
Pity is published only as an inclusive 80–100 range and the threshold weights are not distributed, so this banner fails closed: not advertised, no draw infos served, requests rejected. The threshold law is still missing and no substitute distribution is invented. |
| Circuit Calculus / Punishaar | All 19 requests implemented over the authored activity tables: shop blocks map onto remedy/shop groups, stock and level rules, empty starting deck, per-save persisted RNG, and earned-gold accounting (sale refunds excluded). The client Lua simulates the battle; finish-fight results are consistency-checked, not battle proof. |
| Overclock Simulation / Transfinite Tower | Its six requests are implemented: chapter/floor progression, energy accounting with rollback refunds, MVP, and a server-local rank board whose rank rewards (including ChatBoard unlocks) are delivered through durable receipts resumed at login. |
| Wreck-It Huhu / FangKuai | Chapter calendars 50802–50804 inherit the authored parent window (permanent when the parent has none); authored PreStageId progression still gates entry. |
| Team Recommendation | "Global" standings are this server's persisted accounts, not a retail leaderboard: eligible authored base formations (all three members owned inside the quality-star window, each with one table-valid weapon, six awareness sites and at most one partner) rank by quality-star, then level, then lowest UID. Snapshots expose template IDs only. |
| Envelope Enter | Every authored business day from the schedule start through today accrues one daily ticket grant under its own receipt; the first-ever entry day pays the authored first-day reward instead, and earned-but-unclaimed daily tasks are reissued under their period claim key. |
Cosmic Wonders 50302 / self-choice lottery 49501 |
The 4.8 client contains Cosmic Wonders data, but no authoritative 4.8 event window: 50302 is not scheduled and its calendar remains closed. The separate 3.7 self-choice lottery 49501 retains its user-approved unbounded window because its client UI requires a positive end time. |
Simulated Battlefield 50402 / 50403 |
Availability follows the 4.8 activity start after the 2026-09-24 05:00 UTC update through the explicitly dated shop expiry on 2026-11-05 05:00 UTC. Applying those same bounds to task calendar 50403 is an AscNet scheduling policy, supported by the paired-ID precedent in 4.7, not a claim of an independently recovered retail task end date. |
| Theatre6 / Nirvatia | Default buff 10 authors starting-skill family 22, whose composition is not shipped. AscNet policy (not retail parity) resolves it through authored Theatre6BuildTag 31 "Dreamlure": the lowest-id level-1, in-pool Nirvatia skill carrying that tag. Characters without such skills still reject. Character-specific mission counters and the authored skill-level-up trigger are implemented. |
Lightning and Thunder / The Meandering Three (CerberusGame) |
Authoritative activity, chapter, story-line, point, challenge and communication tables supply the content and unlock references. Missing retail calendar/progression rules use explicitly labelled AscNet policy; permanent availability is not an automatic clear, route choice or reward grant. Shops 4008/4009 remain closed because their catalogs are absent; guide reward totals are not replacement catalogs. See the mode notes below and Docs/closed.md. |
Operation Guardians (MaintainerAction, functional 1302) |
Authoritative MaintainerActionConfig/Level/Event tables, FunctionalOpen 1302, Stage/Reward tables and client CodeText supply content, limits, stages, rewards and errors. The node pool for NodePoolId is not shipped, so board generation, node composition and card draws are AscNet policy (seeded from the persisted per-player weekly seed); TimeId 123 has no calendar and is permanently available; only the owner appears on the board; mentor nodes are inert. See the section below and Docs/closed.md. |
The table decoder verified 16,113 typed tables; 4,461 ancillary raw assets remain undecoded, outside the imported gameplay dependencies.
Focused verification on 2026-09-24: the --non-fate-policy-only compatibility harness passed against a private MongoDB. Ten PacketCodec scenarios completed 154 transactions without collector failures; eight bounded replays through the installed 4.8 client's original Lua passed 1,178 checks. The separate banner/equipment regression scenario completed 15 transactions and 50 client-consumer checks. Fixtures used synthetic accounts only, and dated scenarios injected the handler/scenario clock rather than rewriting production calendars. This is not a full-mode native playthrough: engine adapters, declared out-of-scope login pushes and synthetic skill-merge inputs remain explicit proof boundaries; native combat, rendered UI and movie playback are unverified. Throwaway collectors and private database files were removed after verification; the permanent compatibility harness remains in AscNet.Test.
This branch adds or fixes current-client server behavior for:
NotifyLoginshape and current-client login data.- Completed scheduled sign-ins stay marked claimed across login and daily reset; recurring daily sign-ins still advance normally.
- Dorm commission board replacements notify the client; stale dispatch indexes trigger a board resync without partial acceptance.
- Dorm commission system upgrades retain the current level until the saved start time plus the table-defined duration has elapsed. Relogs and restarts cannot finish them early; reconciliation completes each upgrade once and recovers previously stuck AscNet upgrades without restarting their timer or charging again.
- Ultima Awakening checks claimed Exhibition milestones for the relevant construct. Eligible skills still require an unlock request, and learned skills survive character reloads.
- Character login normalization reuses skill-upgrade, condition, and skill-level indexes within one roster pass; skill eligibility is still evaluated per character against current player state.
- Observer activation derives from the deployed team, learned observation skills, and authored career/element transformations. Ordinary, guild and roguelike pre-fight builders share this logic; cached mode battle payloads retain the effects, and the base Observer career remains unchanged.
- Current-client notice payloads.
- Stage bookmark compatibility.
- Board mutual push compatibility.
- Mainline 2 exhibition chapter compatibility.
- Mainline treasure rewards using current
Treasure.tsvandChapter.tsvcontracts. - Story course rewards.
- Lucia: Lotus's hidden interlude uses table-derived replay flags and persisted objective events, with an immediate hidden-stage notification and relog recovery. Old clear records do not prove objective completion; replay episode 6 after updating. Clearing the episode without its hidden objective does not unlock episode 7.
- Boss single login payload shape.
- Pain Cage consumes one Attempt per normal stage's first weekly clear, manual or Auto Clear; replays consume none. Current-week clears do not unlock Auto Clear until weekly rollover archives their records; prior archived eligibility remains unchanged until then. Weekly rollover resets completion flags, and ambiguous legacy clears are also reset. Codex clears update scores and first-clear task progress without marking weekly stages complete. Type 25001 achievements track each table-defined section's cumulative normal
Scoreor its isolated Trial/Bestiary score total; earned progress is retained across lower replays and Reset Challenge. - Guide table compatibility for current guide TSVs.
- Player cost-time upload.
- Player point upload.
- PR2 quality compatibility.
- Character progression persistence.
- Fashion suit rewards (
FashionGetSuitRewardRequest) require every character fashion listed in the authoritativeFashionSuit.tsvand grant the configured reward. Login restores completed claims only after both reward-document saves succeed; interrupted saves can be retried without duplicate grants. - Character/frame experience rollover and commandant-level caps.
- Fight settlement commandant EXP and character/card EXP.
- Current-client first-clear fields such as
FirstTeamExpandFirstCardExp. - Mission snapshots refresh after authenticated requests; supported character, equipment, draw, shop, stage, and client-event progress uses current task tables, persisted state, and committed actions. Overlapping task catalogs emit one update per task ID. Historical cumulative events are not fabricated.
- Group 1
MemberTargetdraws use an explicitly local, non-retail policy where retail configuration is unavailable:- The numeric
DrawProbShowprofile mixes a 0.5% base S row with a 1.9% aggregate S-with-pity row. This local interpretation excludes the aggregate row, rolls the published 0.5% S chance exactly, then selects among the published non-S figures as relative weights: combined A/B characters 13.95, shards 22.11, memories 28.39, overclock materials 14.42, EXP materials 4.81, and cogs 14.42 (sum 98.1). This handling of the mixed profile is not a claim that those figures are exact unconditional retail probabilities; the values are loaded from the table rather than copied into server logic. - Because no authoritative A/B rank split or member weights are available, the base A/B result is selected uniformly from the visible eligible full-character pool, with the selected target included once; the pool composition therefore determines each rank's chance. Conditional on an A result,
DrawAimProbabilityselects the target (normally 80%, or a row-specific 100%); a miss is uniform among other eligible A members. B and S members are uniform within their ranks. Preview goods, up goods, and minimum character quality remain authoritative, so a selected A target is never promoted to an S award. - S is rolled first. Otherwise, nine draws since the last A-or-S force A on the tenth draw; 59 draws since the last S force S on the sixtieth and take precedence. Every A or S resets the ten-draw counter, while only S resets the sixty-draw counter. Both counters are shared across group 1 targets, survive target switches, advance sequentially within batches, and are persisted.
- Existing group 1 history is replayed chronologically when it is complete or contains a known S anchor, recognizing character results and conversion-result ranks; migrated progress is capped at nine draws since A-or-S and 59 since S. If history is absent or inadequate, migration preserves the old visible S remainder from the prior pity counter modulo 60 and initializes A progress at zero. These counters remain separate from existing total-draw counters, and other draw groups retain their existing behavior.
- Calibration is also an explicitly local, permanent one-use entitlement per player, not a reconstructed retail campaign: authoritative
DrawAdjustActivitycampaign rows are unavailable. Its presentation uses the latest validDrawActivityTargetShowrow, stays open without calendar bounds, and derives selectable S characters from the existing eligible group 1 pools. Selecting or clearing a target (0means choose later) persists without changing pity. The next raw group 1 S result, whether random or guaranteed, becomes the selected S and consumes the entitlement before duplicate conversion; non-S results, other groups, and S results without a selection do not consume it. Batches resolve sequentially. Selection and consumption survive relog and never reset with time or presentation-table versions. Legacy players start unused because the old server never implemented or recorded calibration; existing draw history does not fabricate consumption. - The calibration banner remains visible and browsable before its introduction, but selecting a new nonzero S target requires completing the authored calibration guide.
DrawCalibrationGuidelinks the draw group to its guide using the installedGuideDataUiNewDrawMain/PanelBanner/<group>/PanelSwitchSfocus paths. This local tutorial-before-use rule prevents spending the only check before the later tutorial needs its banner; it does not auto-complete or bypass the guide. Choosing later (0) and retrying the same selection remain allowed.
- The numeric
- CUB archive stories derive unlocks from owned partners and their progression, persist newly unlocked entries, and synchronize after committed changes and login.
- Norman sweep (
SweepStrongholdStageRequest) resolves the configured group and its stages, handles already-paid partial clears, and shares normal-clear progression and reward settlement. - Legacy Stronghold quick clear (
BfrtOneKeyPassGroupRequest) validates the formation and computes battle power from character progression, equipment, skills, and authoritative tables instead of the uncomputed persistedAbilityfield. Attribute tables preserve original Q32.32 values as hexadecimal strings for client-compatible rounding. - F.O.S. course battle results, exam scoring, rewards, and saved state have compatibility coverage. Lesson result saving remains explicitly blocked because the authoritative lesson-clear rule is missing; no inferred lesson completion or mission credit is awarded.
- Arcade Anima (
CharacterTower, FunctionalOpen 10436) implements its seven mode requests from the ENshare/fuben/charactertowertables: chapter reward, stage reward and star-treasure claims, relation fight-event and story activations, story-card video markers, and one-time trigger-condition acknowledgements. Stage and chapter rewards are manual claims (settlement never grants a first clear); each payout carries a stable per-player receipt, so a retried claim pays once even when the mode save is retried after a partial failure. Relation tiers activate against the authoredFinishNumsthresholds and freeze the conditions that are true at activation;Stage.Stagesstays the only pass/star authority. Tower availability uses unbounded windows derived fromTower.OpenTimeId; the authored promotional chapter windows (20402,34301) and their activity chapter list are not reconstructed, so those chapters remain gated by their authored open conditions.
Mission coverage is not complete: Basic Research category 27000, extended character/fashion task filters, and standard client-event subsystem eligibility still need authoritative rules. Unsupported predicates do not receive guessed completion credit.
The legacy power calculation follows the supplied tables, where PartnerAbilityConvert is zero. A nonzero future coefficient is rejected explicitly until partner power calculation is implemented; it is not silently omitted.
Cerberus content comes from the authored share/fuben/cerberusgame tables, with client role/boss/config data supplying presentation and trial-roster references. Story lines link their ordered points; point types, prerequisite points, conditions, stage references, challenge prerequisites and authored robots remain the source of content, rather than captured response snapshots.
- Availability and progression policy: where a current retail calendar or proprietary server progression rule is unavailable, availability and state transitions are explicitly AscNet policy, not recovered retail behavior. Permanent availability does not bypass functional-open, chapter/line/point conditions, trial-roster restrictions or earned stage progression. A story acknowledgement is not evidence of a combat win; battle clears and first-clear rewards belong to the shared validated stage flow. The implementation's local choices must not be read as a retail parity claim.
- Calendar scope:
ActivityScheduleServicepreserves official schedule windows first; only missing Cerberus windows receive the local permanent-mode policy, ending at the existing positiveUnboundedEnd(3000-01-01) for client countdown compatibility. Current authored activity/chapter references use901and49501; reachable chapter, story-line and point time conditions are included. Unreferenced historical clocks such as18142and23001are not opened merely because a Cerberus-named condition exists. - Local state transitions: select the highest authored activity ID with a positive
TimeIdwhose schedule is open; historical rows without a calendar are excluded because the client requires a valid time reference. Progress in shared authored chapters is retained across activity changes;IsClearDatadoes not trigger an invented retail recycle/reset window. Story points require the sharedEnterStorypass before acknowledgement, communications can be acknowledged directly after their gates, and combat points cannot be passed by the acknowledgement request. Chapter/line/point prerequisites, Commandant-level conditions, stage clears and route choices remain enforced. - Branch-result policy: predecoded installed 4.8 behavior graphs expose route values
1/2throughCustomData[playerId].Dict[3]. Projecting a validated winning choice into the persistedStageParamslist consumed by the client is explicitly AscNet policy, not an observed retail-server projection. This source inspection is not a fresh raw-bundle decode/hash or native-combat proof. - Settlement recovery and retry: durable reward receipts and BSON recovery finish an interrupted reward/progression mutation before the next pre-fight. Exact settlement retries use the latest retained SHA-256 receipt; an older, evicted settlement is rejected rather than replayed. This bounded latest-receipt policy does not promise indefinite settlement replay.
- Shared tasks: current support selects authored stage-clear predicates (
15201) referring to Cerberus stages whoseTaskTimeLimit.TimeIdmatches an authored mode activity/chapter window. Task120713(group757, calendar49501) uses persisted stage clears and mission counters; it is a mainline/rerun event task, not a Cerberus task panel. Historical tasks120198,120529and120135retain their unrelated historical windows and are not reopened. In particular,120135/ condition12439asks for acquisition of50Special "Honey Cakes" (97007), not a story acknowledgement or a stage clear; this change adds no generic item-acquisition predicate. - Event-page tasks (
TaskModule.EventTasks.cs): a Type-11 task of an openTaskTimeLimitgroup (any group whoseTimeIdis open; the 4.9 "A Comet's Afterglow" page is group791, Simulated Battlefield's serum bar group790) that no dedicated mode owns (Cerberus, Transfinite Tower, Punishaar, FangKuai, Reform, Dreamhouse Tycoon, Envelope) is listed at login/sync and claimed throughFinishTask. Conditions:15201 [N, stageIds...]counts committed stage clears (TaskModule.RecordStageClear, so fights, sweeps and boss/tower settles all feed it);15223 [N, stageId]counts Serum committed in Simulated Battlefield (RepeatChallengeModule.AddSerumSpentProgress, sweep and auto-fight);123002 [N, minStar, activityId]is derived from the saved PacMan2 records (first passes of that activity's stages, also read by Passport tasks). Counters start when the window opens in the player's counters; earlier clears are not credited retroactively, except123002, which is recomputed from persisted PacMan2 state. A manual Simulated Battlefield battle does not deduct Serum (generic fights never do), so it adds clears but no serum; sweeps do both.123001(Pac-Man v1 "Bytebite Invasion") has no server module and is not evaluated. - Thunderbolt Manual and shops: guide activity
10007uses event cause180001, references shops4008/4009, and displays targets of750Event Construct R&D Tickets,2000Trade Vouchers and one Punk Dynamo coating. These are guide accounting targets, not a direct payout. Neither shop has a catalog inResources/Configs/client_shops.json; both stay closed rather than inventing goods, prices or limits. The existing mode tokens97007and97008remain separate inventory balances; seeDocs/items.mdandDocs/closed.md. - Exercised coverage: the final test-project build completed with no errors and seven existing BigWorld warnings. The focused Cerberus harness passed original EN login/stage Lua consumers, both route choices, failure after a real reward grant with BSON recovery on the next pre-fight, exact latest-receipt retry and rejection of an evicted older receipt. Neighbor checks
notify-login,login-account,pre-fight-position,fight-settle-achievementandfight-settle-retreatpassed. SDK/TCP startup readiness passed and the owned smoke server stopped cleanly. The full harness did not pass: after correcting its database-prefix isolation guard, it stopped at an unrelatedNullReferenceExceptioninProgram.BossSingle.cs:2577(resetResponse.Code). Rendered client flow and native combat remain unverified.
Run the focused compatibility harness (requires Lua; set ASCNET_LUA to its executable and, if needed, ASCNET_CERBERUS_AGENCY to the original EN XCerberusGameAgency.lua):
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --cerberus-game-compat-onlyClient UiFubenMaintaineraction, opened by OnOpenMaintainerAction (functional 1302, gated by its authored level/story condition). MaintainerActionModule serves MaintainerActionPlayCardRequest, MaintainerActionNodeEventRequest and MaintainerActionRecordRequest, pushes NotifyMaintainerActionData at login (persisted board) and weekly reset, NotifyMaintainerActionDailyReset at daily reset, NotifyMaintainerActionFightWin after a won board fight, and never needs NotifyMaintainerActionNodeChange (every node change rides a MaintainerActionNodeEventResponse). Fights use the generic PreFight/FightSettle pipeline; the mode only authorises the stage (must be the stage of the fight node the player stands on) and resolves the node on a win.
- Authoritative: table limits (
MaxDailyActionCount,MaxFightWinCount,MaxBoxCount,MaxWarehouseFinishCount,NodeCount,MaxCardNumber,MaxHandCardCount),Levelstage lists (highestLevelnot above the commandant level) andBoxRewardIds, event rows (names/texts), stage drops, client CodeText20103001-20103017. - AscNet policy (not retail parity): weekly board generation (3-4 fight nodes, 1 simulated fight, 2-3 boxes, an optional warehouse, one each of sensing/card change/direction change/action point, one forward and one back relocation that never land on each other, 3-4 hidden "Unknown Area" nodes, remainder empty road), card draws, the +1/+2 action grants of events
8/12/13(only13states its amount), the once-per-day start-node bonus, the warehouse reward (the level'sBoxRewardIdsentry), and permanent availability forTimeId123. Boards derive from a persisted seed and draw counter, so relog, BSON reload and retries reproduce them. - Resets: daily (
TaskModuledaily period) clears used/extra actions and the start bonus; weekly clears fight/box/warehouse counters, records and position and builds a new board and hand. Rollovers are applied at login and before every request. - Retry safety: the accepted node event of a landing is stored and replayed verbatim; rewards use
ApplyRewardsOnceAndPersistclaim keys scoped to config/week/landing; a duplicate fight settlement cannot recount a win. - Inert / closed: mentor nodes (events
16-19, node type13, mails61002/61003) are never generated because the mentor system is absent; other players, cross-check requests and shared records are not simulated.
Run the focused compatibility harness (requires Lua; set ASCNET_LUA and, if needed, ASCNET_PGR_EN_ROOT to the EN PGR_Data/en directory):
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --maintainer-action-compat-onlyOriginal Theatre uses its own persistent adventure, chapter/node offers, event steps, node shops, recruitment, single/multi-team formations, skill choices, keepsakes, power favor, decorations, endings and shared tasks. Its 17 mode requests own the unprefixed Theatre protocol; the unused Bianca copies of the two multi-team requests have been removed. Login restores the real mode snapshot and pending durable outcomes. Combat routes remain separate from Cursed Waves, Matrix and ordinary stages.
The 28 imported original-Theatre tables contain 2,067 authored rows. They supply content IDs, weights, numeric parameters and references, not captured response payloads. Generation, probability and economics described below are explicitly local rules where the proprietary server formula is unavailable; they are not claims of retail server equivalence.
- Nodes and fights: visit authored chapter node rows in ascending ID order; fixed
Type/Parampairs remain fixed offers, and their authored stage references may cross chapters. Random rows offer positive reward categories, capped by authoredMaxRandomwhen present. Their weighted-without-replacement ordering usesbase reward weight + max(0, expected - current) * TheatreFactor[1..4]; absent level weight is zero. Random stage candidates remain chapter-scoped and use their authored weights and skill bounds. Node randomness is seeded by the unchecked integer expression(RunId * 397) XOR node-row ID, and the resulting offers are persisted. Chapter groups advance sequentially without inventing cross-group transitions. - Events: locally choose the lowest authored step-row ID for an event's initial step, then persist authored transitions and one-based option indices. Reward items use exact configured counts; option kind 1 consumes its configured items, while kind 2 only checks ownership. Event pass-record leaves are locally represented as
true, matching the client's observed truthy-membership check. Revisiting an event step within the same slot is rejected. Battles and movies use the exact authored stage ID and story token; absent local-reward/keepsake/decoration-option data is not invented. - Node shops: deterministically sample without replacement from the four reward types using authored
TheatreNodeShopweights. Stock ismin(MaxCount, InitCount + ShopItemCountBonus)and insufficient positive-weight candidates reject generation. Skill/level counts are one; currency counts are authoredDecorationCount/FavorCount. Prices arefloor(authored base price * ShopPriceMultiplier)and persist with the offers. The seed is uncheckedRunId XOR (RunId >> 32) XOR (SlotId * 397) XOR (shop ID * 31). - Availability: no original-Theatre activity clock is invented. Only the user-approved decoration-release clocks
803,804and805are permanently unbounded (0/0), derived from the condition closure of decorations20003,20004and20005by both the runtime calendar and offline generator. Wasteland/Kingdom I/Kingdom II still require chapter clears8/14/20, the preceding decoration at level 1 and their authored cost of 5 Inspiration (96102). Decorations are never auto-granted; promotion24is not auto-unlocked and other clocks retain their policies. - Starting and recruitment: availability checks functional-open
10420conditions and authored difficulty/SP-mode gates; only earned keepsakes can be selected. Locally choose the highest eligible chapter-group ID within the requested mode. The initial free offer and each refresh select one unrecruited role uniformly from each authored pool (no pool-member weights are supplied). Freeze source-valid roles, complete role-level robot mappings and owned-character IDs when the run starts. Recruitment allowance issum(chapter RecruitCount through the current chapter) + RecruitBonus * chapter count - recruited roles; refreshes consume a used-count allowance capped byRecruitRefreshCount + RefreshBonus. Reopen usage starts at zero. Login never creates a run or rerolls offers; the last run is retained only where final presentation needs it. - Run currency: an accepted new adventure journals removal of all positive leftover Marg (
96101) before its once-per-runInitialCoinBonus. This local run-boundary reset does not count as task spending and prevents banking startup bonuses across start/abandon cycles. Rejected starts, reconnects and resumes do not reset currency. - Team ownership: own-character use requires earned permission, ownership frozen at run start, recruitment of the matching role and the current character's power meeting
UseOwnCharacterFa(currently1000, enforced here as a local rule). Permission becomes available monotonically within the run once the displayed trial roster's mean battle power reaches that threshold; displayed power is the current authoredRoleAttr.FightAbilityplus the current skills'FightAbilitysum, re-evaluated on recruitment, level changes and skill selection. Trial characters use actual authored levels5/20/40/60/80, not level indices, with exact level-to-robot mappings; level changes remap saved teams. Single-team index is0, multi-team indices are1..StageCount, and captain/first-fighter positions must be occupied. Duplicate characters are rejected across owned/trial representations. - Skills: locally select one weighted power, then offer up to three distinct eligible skills from that power. Use the rule row at
min(PassNodeCount + 1, last row ID). A power's weight ismax(1, PowerBasicWeight + Factor5 * (PowerExpect[power] - owned skills for that power) + matching equipped-keepsake PowerFactor). Within that power, candidate weight ismax(1, SkillBasicWeight + SkillWeight + Factor6 * (LvExpect[position] - owned core level)); additional skills omit the positional term. Initial core quality is at least 1 and uses the highest active type-3 favor parameter; upgrades add1 + highest active type-4 favor parameter, capped by authored maximum quality. Replacing another power starts at initial quality. Favor type 2 unlocks authored favor-gated additional skills. Existing choices and shop previews stay frozen; skipping a purchased preview does not make it purchasable again. - Settlement and progression economics: locally compute each of the five settlement-factor contributions as
floor(count * coefficient), then checked-sum them; an absent fifth coefficient contributes zero and a run with no node has zero score. Difficulty scales pending currency, not score. Decoration Inspiration/Cadenza multipliers apply once when a node award is earned; settlement grantsfloor(accumulated pending amount * Difficulty.RewardFactor)once for Inspiration (96102) and Cadenza (96103) through run-fenced receipts, then clears the pending counters. Choose the highest-priority ending whose authored default/run-event/run-chapter conditions pass. Because no serverPassTypeis supplied, abandonment uses only achievements actually earned in that run. Power favor uses the current row's cost to buy the next level; a separate claim activates reward types 2/3/4, grants type 1, or unlocks type 5. - Keepsakes and native effects: keepsake
FightCountthresholds are consumed per completed node, subtracting the threshold on level-up and stopping at the maximum. Authored skill, difficulty and decoration fight events are passed to native combat; display-only stat substitutes are not used. Original stage graphs own their spawns. Empty monster-level lists retain the native authored fallback rather than inventing level 20 or 100. - Restart and native revival: whole-fight restart and tracking of used reopen lives are implemented. Native paid revival is not available: all 88 authored
Stagerows and 80LevelControlrows lack a reboot profile, so there is no authored original-TheatreRebootIdsource. The currently issued reboot values are0/0; the native normal-death gate therefore suppresses theRebootRPC. Enabling native paid revival requires the missing authoritative reboot profile, not an invented price or allowance. - Shared progression: chapter, event-step, decoration-level and ending conditions read original-Theatre state, including archive CG unlocks. Original task claims use the mode journal and existing reward receipts; a batch reports foreign task IDs as unprocessed rather than mixing journal ownership. Existing Matrix/Cursed Waves task recovery and epoch handling remain separate. The existing authorized regular/rare shop catalogs (
1193/1194) are retained, including product IDs, rewards, prices and limits; their original conditions are checked before purchase, with no invented catalog. - Shared shop and guide receipts: the existing regular/rare products use original-Theatre durable purchase receipts for costs, rewards, monotonic purchase limits and shared spend/purchase task counters. The local guide attribution is regular shop → event cause
92004, rare shop →92008; original task claims use92004and settlement uses92008. These are explicit local producer assignments, not reconstructed retail server event routing. The guide still applies its authored item filters. Original tasks comprise 3 daily claims with period-scoped receipts and 41 permanent claims; a pending shared-shop purchase must finish through its matching retry or reconnect before mission-period resets. - Recovery: persisted offers, skill choices, role levels, teams, completed multi-stage indices and native attempts survive reconnects. Multi-stage progress uses indices even when stage IDs repeat. Pending mutations retain cost/reward receipts and run fencing; unrelated requests cannot spend an old balance or replay an old successful mutation. Reconnect reconstructs state rather than blindly re-sending additive node or skill notifications.
Verification covers server behavior, encrypted TCP/Mongo normal and SP adventures, and headless replay of the actual EN Lua source. Rendered gameplay, native combat and movie playback have not been exercised.
Derived from Matrix uses its own persisted activity, teams and recruitment energy, difficulty unlocks, paired quantum chapters, weighted map offers, event choices, shops, items, equipment boxes, suit workshops, chained fights, reward claims, endings, battle pass, talents, character mastery and shared tasks. Its 25 mode requests use the same inventory reward receipts as ordinary gameplay; shared pre-fight, settlement, revive, restart and leave routes retain the other modes' routing. Login restores the complete mode snapshot and pending ending presentation instead of an empty startup notification. New adventures require the authored functional-open conditions (Commandant level 70).
The 62 imported EN Theatre3 tables supply IDs, numeric operands, weights and foreign keys. Captures are comparison evidence, not runtime payloads. This is a documented local rules implementation, not a claim of retail server equivalence: proprietary server-only effect semantics and the original calendar are unavailable.
- Calendar: every positive
Theatre3Activity.TimeIdis permanently available with start and end0(unbounded), using the same calendar representation as Cursed Waves. The server calendar service and offline schedule generator derive the ID from that table; neither copies a captured timestamp. This explicit local availability policy overrides dated calendar rows for this mode. - Offer generation: sample only eligible authored pools with their weights. Repeated encounter offers are allowed where the authored slot multiplicity requires them; run-level encounter exhaustion still applies. If eligible content cannot fill the requested slot count within its authored bounds, cap the count rather than inventing encounters or bypassing unlock conditions. Newly foreground equipment choices reconcile entries invalidated by an earlier award without charging a refresh or replacing still-valid choices.
- Effects and stacking: item instances and independent effect sources stack additively; price factors multiply; competing revive prices choose the minimum. Quantum
CoverIdreplaces the covered effect, suit thresholds count distinct pieces, character-ending effects apply to their role, purchased talents persist, and event effect groups last for the rest of the run. All imported items omitExpireTime, so they last for the run. The emptyEnergyUnusedtable grants no unused-energy bonus. - Run currency: a successfully accepted new adventure clears leftover positive innercoin (
96189) through the reward journal before startup grants. This local reset does not count as spending for tasks and does not consume battle-pass or talent currency. Resuming, relogging and rejected attempts to replace an active adventure do not clear the balance. - Quantum battles: interpret each authored
QubitValueentry aschannel|thresholdand choose the highest threshold satisfied by the persisted A/B values before the fight. Its same-indexQubitMonsterGroupreplacesMonsterGroupId[GroupOrder - 1];GroupOrderis one-based. If no threshold is satisfied, keep the base group. A validated win adds the same-index authored equipment-box, item-box and gold-group rewards, resolving their weighted group references. Lower tiers are not accumulated, and the threshold itself does not grant a quantum-value delta. - Native combat parameters and extra waves: supply neutral
Theater3AtkFactorandTheater3HpFactorvalues of10000, matching the native fixed-point denominators; authored difficulty fight events still apply. InterpretFightStageTemplate.ExtraWaveRatelocally as a basis-point chance out of10000. Persist the selected weighted extra-wave row and use nativeTheater3ExtraWaveTimeand its one-based group index for spawning. Extra-wave bonuses require the validated native resultStringToIntRecord["Theater3ExtraWaveWin"] == 1. - Restart and revive: use
Theatre3Rebootselected byDifficulty.RebootId. Restart costsFubenRestartCost; revive costsRebootCostunless an active system effect overrides it. Both consume the sameMaxRebootCountallowance under the local policy. A persisted request-ID/seed receipt prevents duplicate restart payment. - Recovery: offers, step ancestry, purchases, claims, combat attempts and effect-trigger identities are persisted. Inventory grants use durable receipts. A recovered ending is paired with a projected login snapshot so additive destiny and successful-clear updates are not applied twice; there is no invented client settlement-acknowledgement request.
The local system-effect interpretation below follows numeric operands and referenced tables, not stale descriptive percentages. p1, p2, etc. mean successive Params entries:
| Effect type | Explicit local rule |
|---|---|
| 3 | Add p1 / 100 to the gold multiplier. |
| 4 | Grant currency p1, amount p2, per completed node. |
| 5 | Add p1 discounted shop slots. |
| 8 | Open item box p2 once per run when chapter p1 is reached. |
| 12 | Grant currency p1, amount p2, once per source activation. |
| 13 | Multiply shop prices by p1. |
| 16 | Add p1 capacity to every equipment slot. |
| 17 | Track clears for equipment p1, with channel p2 identifying HP, attack or pet growth; apply the referenced equipment group's native leveled fight events at the recorded clear count, without invented attribute IDs. |
| 18 / 19 | Track ordinary-fight / boss-fight clears for suit p1 after acquisition. |
| 20 | For equipment p1, grant the referenced gold row p2's count multiplied by recorded clears. |
| 21 | Open item box p1 on each winning clear. |
| 22 | Add p1 recruitment energy. |
| 23 | Override revive price with p1, choosing the minimum active override. |
| 25 | Open equipment box p1, p2 times. |
| 26 | Treat p1 as the branch-switch enable/disable flag. |
| 27 / 35 | Switch to the opposite line; defer while a node is selected. These two types intentionally share this local interpretation. |
| 28 | Add a uniformly selected inclusive p2..p3 amount to quantum channel p1, capped by the configured maximum. |
| 29 | Add p2 workshop uses for workshop type p1. |
| 30 | Independently roll item chance p1 and coin-loss chance p2 in basis points. Select items from weighted item group p3; select inclusive coin loss p4..p5, capped by balance. Repeated 12345 values in p6/p7 are explicitly treated as reserved sentinels, not economic operands. |
| 32 | Add p2 to quantum channel p1 per clear. |
| 33 | Add p1 free refreshes to each equipment box. |
| 34 | Multiply paid equipment-box refresh prices by 1 - p1. |
Trigger and source identities are recorded before grants to prevent retry duplication and recursive grant cycles. Battle effects use authored native fight events and leveled events; currency changes use inventory receipts and mode capacity/energy/quantum notifications carry absolute values.
Awakening Tundra persists exploration, event chains, recruitment/teams, item/talent choices, shops, tech, battle-pass progression and rewards. Generated maps, offered choices and authorized encounters survive relog; durable receipts prevent duplicate rewards.
Pending endings include the finalized adventure snapshot and replay on login without regranting rewards. Starting the next adventure clears the pending ending; closing the client UI has no server acknowledgement RPC.
Box grids carry authored box-row IDs; opening resolves the row's drop rather than treating a drop ID as a display ID. Login repairs legacy box identities in the active run, rollback snapshots and pending ending without granting rewards. Battle rooms can save a valid recruited team after encounter allocation, but not after PreFight authorizes the battle.
Fight grids expose authored fight-group row IDs and basis-point HP (10000 = 100%); server encounter buckets and frozen whole-percent HP remain internal. Login repairs unambiguous legacy grid identities and HP together, once, without changing clear state or frozen battle payloads. Talent notifications replace the client's entire colour collection, so they include all three tracks; resource notifications remain per-colour deltas.
Login preserves an unresolved authorized battle for reconnect. Explicit map continuation (Theatre4EnterRequest) instead abandons that battle through the retreat path: one HP loss, no battle rewards, and durable retry protection. A locate-only room costs no HP. If the loss ends the run, the activity snapshot clears the client's active adventure before the entry response while retaining the pending ending.
Native settlement LeftTime is a signed countdown and may be negative on untimed stages. Theatre, Theatre3 and Theatre4 preserve that value within the response's signed 32-bit range; report identity, frame, damage, roster and authored time-limit checks still apply.
Authoritative client tables supply content, operands, conditions and rewards. Maintainer-authorized AscNet rules fill missing server generation, effect composition, economy/progression and scaling; this is not a claim of retail gameplay parity. AscNet.GameServer/Handlers/Theatre4Module.*.cs documents these local rules:
- Map generation: the authored
Block/BlockGrid/BlockGroup/BlockRelation/MapGridtables are absent, so the traversable floor share, content distribution, hidden-region reveal, boss placement and route/difficulty selection areAscNet Theatre4 local policy, deterministic from the persisted per-run RNG. Colours, route lists and gates stay authored where present. - Effects: persisted effect instances use authored numeric operands. Authored descriptions inform explicitly labelled local handler rules; production does not parse descriptions to execute effects. Numeric operands take precedence over inconsistent translated text.
- Economy/progression: offer sampling, stock caps and box opening have no authored server algorithm and are local policy; in-run assets, ticket grants, battle-pass EXP/claims, permanent atlas/task/achievement predicates and tech unlock follow authored tables plus the shared counter ledger.
- Daily development: each colour uses the native
round(effective multiplier × effective resources × ColorExtra)tally, including fractionalColorExtra. AscNet policy credits that amount to the colour's development points, credits Military spending points for red, and adds the three amounts to cumulative area score (Prosperity). Earned resource multipliers remain separate from point-derived talent levels; daily-resource rates remain until an explicit debit. Temporary tally bonuses do not permanently stack on resource multipliers or replay at run end. Battle reward cards still require selection. The next day uses the corrected tally; missed historical credits are not reconstructed from current rates. - Battle scaling: encounters use authored fight/mold/monster rows. Native stage parameters include difficulty, the current chapter's authored HP factor, and an action factor from
Theatre4ActionFactor. AscNet policy counts each successful grid exploration as one action, selects the highest authoredActionTimesnot exceedingmax(1, ExploreCount), and retains the last factor beyond the curve. Missing factors are errors, not neutral fallbacks. This counter selection is local policy, not a claim of retail scaling parity. - Availability: permanent activity windows derive from authored
Theatre4Activity.TimeIdrows. Functional-open, difficulty prerequisites and costs remain enforced; permanent availability does not grant progression. - Native limits/proof: the harness drives real registered handlers over the loopback session and asserts durable BSON state and real pushes. Original EN Lua construction, shop controls, colour-cache replacement and fight-grid identity/HP consumers have been replayed with bounded handler output. Recovered installed behavior-node input gates are checked against emitted stage parameters. These checks do not prove native combat, rendering or movie playback, and do not constitute a completed original-Lua full-run replay.
Run the focused server compatibility harness:
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --theatre4-compat-onlyGodfall implements separate persisted PvE and PvP adventures, mode switching and login recovery. PvE includes storyline branches/backtracking, chapters, events, clues/deduction and rewards; PvP includes persisted-player build matching with explicitly labelled authored NPC fallback, ranks, normal completion and overtime. Both modes support run shops, bags/equipment/runes, boxes, EXP/relic choices, commissions, effects, DLC world 200 entry/settlement, retries and durable task/reward receipts.
First entry follows the authored PvE tutorial. The client exposes the two-mode selector after that tutorial is complete; the shared skill-choice screen is not evidence that the player entered PvP. Skill choices use flat item records, unlike priced shop goods. Existing wrapped skill choices are migrated when saved state is loaded, preserving the active run and pending rewards.
Authoritative client tables supply content, operands, conditions and rewards. User-approved LOCAL policies fill missing proprietary server rules; this is not a claim of retail server equivalence. The corresponding comments in AscNet.GameServer/Handlers/Theatre5Module.*.cs define these boundaries:
- Generation/economy: add satisfied condition weights to base item weights, treat positive
ExpectedNumas an ownership/offer cap, and sample distinct goods/relic choices. PvE chapter-level order selects non-PvP shop tiers and the authored PvP income/skill curve; this shared-economy mapping is local. Unweighted event successors are uniform; backtracking selects the nearest prior branch in the same storyline without erasing completed history. Run/round encounter rotation and saved choices prevent retry rerolls. - Commissions/effects: one commission per adventure with three distinct offers; visible missions and condition kinds have equal weight. Missing mission-group composition uses round-based difficulty tiers, with groups
1003/1004two tiers higher. Trigger/aggregation and zero-based effect operand decoding are local; relic subscription timing is transcribed from authored item descriptions, not parsed at runtime. Authored numeric operands take precedence over inconsistent translated text. - PvP: local matchmaking uses authored cup/defeat targets and rank-reduction rules, preferring matching persisted human builds before authored robots. The local rating ledger uses Elo expected score on a 400-point scale with authored
W/Koperands, final rounding, completion/overtime bonuses and rank-floor protection. These compositions are not recovered retail formulas. - Permanent availability: only Godfall calendars
34,35and46401are user-approved permanent windows.ActivityScheduleServiceand the calendar generator use start0and an exclusive end of3000-01-01 UTC: a positive end is required by the PvP client, while year9999crashes its Windowsos.dateconversion. This representation stays within the Windows 64-bit CRT range with timezone margin; it is not a recovered retail date. Functional-open10491, storyline/chapter conditions, character access, costs and task prerequisites remain enforced; permanent calendars do not grant progression or open other seasons. - Nameplates: the shared
Character.Nameplates.cspolicy uses authored EXP thresholds in group quality order; new/expired awards start at the awarded tier and extra copies supply EXP. Timed awards refresh from the durable grant clock without shortening an active expiry; expired records reset tier, EXP and acquisition time. These timer/EXP compositions are explicitly user-approved local rules. - Blocked reward shops: authoritative goods catalogs for
1444,1445,1446,1449,1455,1457,1465and1467are missing. Their ownership references do not supply goods, prices, rewards or limits. These catalogs remain a blocked prerequisite; unavailable shops reject access/purchase rather than invent products. In-run generated shops are separate. - Native limits/proof: settlement checks source-format invariants and frozen attempt identity, not a server combat simulation; the five battle-check
*Limit=1operands have no recovered composition. The native result exposes no draw outcome (simultaneous deaths resolve as a loss), and deduction reports correctness rather than an answer ID. Synthetic transport/BSON checks and headless EN Lua replay do not prove rendered UI, movie playback or native combat. - Native attributes: expectations use the installed client's 148 attribute IDs and are rebuilt from the frozen entry response, frozen effects and authoritative tables; older saved derived snapshots are ignored. Conversion matches the shipped xLua integer boundary: fractional values become
0, rather than being truncated. Incoming reports still require exact keys and values. Native-DLL numeric probes and handler regressions cover conversion, saved-attempt recovery and rejection of altered attributes; they do not prove native combat.
Run the focused server compatibility harness:
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --theatre5-compat-onlyShrouded Requiem implements persisted story and gameplay runs, task/choice rooms, shops, skill placement/merging/overflow, relics, effects, archives and progression. Phantom Clash uses saved archive lineups, player defences and authored robots, with seasonal ranks and rewards. Theatre6 owns DLC worlds 201 and 202; Godfall retains its separate routing.
Authoritative client tables supply content, operands, conditions and rewards. User-approved AscNet policies fill missing server-only data and algorithms; these are not recovered retail server rules or a claim of retail balance parity. Captures are evidence, never runtime payload sources.
- Rooms/offers: follow authored floor/room order and choice lines. Local selection combines authored weights with reward-type bias; task draws reduce weights for repeated material demands, and refreshes choose among eligible replacements. Persisted run RNG freezes offers, rewards, shops and encounters. Optional extra floors remain unentered until acceptance; replay eligibility follows the cleared base difficulty even when the replay selects an alternate stage.
- Skill/relic pools:
Theatre6SkillPool.tsvandTheatre6AttrPackPool.tsvare explicitly AscNet policy, not retail imports. Candidates come from compatible authored catalog entries; skills start at level 1, and relics at their acquisition cap are excluded. Named skill pools use their advertised quality; mixed pools use per-candidate quality weights50:30:15:4:1, multiplied by configured level/tag weights. The battle pool advertised as “Universal Stat Relic” is restricted to authored universal stat-only relics (qualities 1–3, weights50:30:15); effect relics remain available through other eligible pools. - Effects/scoring: local trigger, duration and aggregation rules fill the missing retail resolver. Effects change persisted run state or project authored native magic IDs; combat is not simulated server-side. Build score includes equipped skills, base skills in empty active slots, relics and attributes. Settlement composes authored score gates, score-per-unit operands, caps and additive rewards; earned growth currency also advances permanent talent progression.
- Phantom Clash: matchmaking freezes offers from complete saved defences and authored robots within an expanded score window. Robot/human and below/above weights compose locally. Interpreting
Theatre6PvpRankFight.MinScoreas a ladder-score tier is explicitly local policy. Rating uses a 400-point Elo expectation with authored attack/defence coefficients, bonuses, rounding and rank-band clamps. Promotion attempts are free. Two opening losses end a match; two opening wins still require round three. Abandonment and expiry count as losses. - Persistence/retries: durable mutation intents precede rewards and successful responses. Session/epoch receipts replay committed answers; retired transport attempts reject instead of executing again. Frozen battle attempts prevent retry rerolls. Human defence results use a committed attacker outbox and per-attacker defender watermark; late old-season results are acknowledged without changing the new season's rating. Settled runs remain until archive save/discard acknowledgement.
- Availability/tasks/shops: base PvE is permanent behind its authored level gate; Phantom Clash remains seasonal with its separate progression gate. Missing timed mission calendars derive from authored reward-token lifetimes. Local reward shops pair shop/mission tabs by priority, sell authored preview bundles once per account without resets, and price each at an equal integer share of the group's currency budget (minimum one). Claims and purchases use Theatre6's durable mutation path.
- Native boundary: settlement checks frozen attempt identity, producer-copied actor/world fields, nonnegative simulation time, nonfuture authorization timestamps and combat-record invariants. Native
FinishTimeadvances withTimeScale, not wall-clock time; no upper duration bound is enforced because the report carries no speed history and no authoritative Theatre6 speed maximum has been recovered. Synthetic battle reports, encrypted TCP/Mongo checks and headless replay of original Lua do not establish native combat, rendered UI or movie-playback correctness. Installed client assets remain unchanged.
Run the focused server compatibility harness:
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --theatre6-compat-onlyCircuit Connect implements the current SameColorGame match-three mode with its own persisted activity, boards, runs, records and shared tasks. The client is a renderer of server-ordered actions, so board generation, matching and cascades, props, summons, boss skills, role skills and passives, score settlement and completion are owned by the server. The eight mode requests (SameColorGameEnterStage, SwapItem, UseItem, CancelUseItem, GiveUp, PauseResume, CountDown, OpenRank) and the NotifySameColorGameData/NotifySameColorGameUpdate pushes follow the recovered client contract; login no longer sends the former empty data stub.
- Authority vs policy: mode content comes from the authored
Resources/table/share/samecolorgametables (activity, attribute factor, ball, boss, boss grade, boss skill, buff, combo, passive skill, role, score, skill, skill group). Board initialization/refill randomness, effect resolution order, score accumulation and completion boundaries, and mode availability are explicitly AscNet policy where no proprietary server algorithm exists; they are not recovered retail server rules or a parity claim. Captures are behavioural oracles only. - Records and login:
NotifySameColorGameDatacarries the selected activity and each boss's best score, best combo and last used role for the player. Records survive relog; no mid-board run is resumed because the client has no resume request. - Tasks: the 21 authored tasks (
90970-90990, groups404/405, TimeId907) publish at login and in shared task syncs. Boss-grade condition69005reports the achieved grade (S publishes11, which is also its authored target) and cumulative condition69002reports the accumulated total score against each row's authoredResult. Claims useFinishTaskRequest/FinishMultiTaskRequestwith activity-scoped claim keys, existing reward receipts and checked claim markers, so a retry after a partial save never pays twice, claimed state survives relog, and no Circuit task is reset by the daily or weekly mission rollover. - Availability: every positive
SameColorGameActivity.TimerId(907for the current row) is permanently available with start and end0, derived byActivityScheduleServicefrom the authored activity table. This is the same permanent-mode representation as the other local mode policies; no other schedule entry changes. - Guide and shop: Circuit claims feed the existing guide activity
10012(source group3002, item50005target350) and push the guide update. Shop1291opens through the sharedGetShopInfoRequest/BuyRequestpath using an AscNet local-policy catalog inResources/Configs/client_shops.json(not a retail extract): authored per-mission reward quantities priced in Signal Diffusers, plus a local-policy exchange (6 × Serum Bundle Beta (M) → 50 Signal Diffusers, limit 8) because the current activity's tasks grant the former and never the latter; the exchange pays half the catalog's own90031rate so the pair cannot be arbitraged. Purchase counts persist through the shared shop path, and noshop_base_infos.jsonentry is required because the mode panel readsGetShopInfo/GetShopGoodsListonly.
Run the focused server compatibility harness:
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --same-color-game-compat-onlyAscNet.GameServer/Handlers/BigWorld/BigWorldModule*.cs owns world enter/leave, instance levels, the engine save channel (DlcWorldSaveData, DlcWorldSceneObjectData, DlcSceneObjectStateSet, DlcWorldEnterSucceed, BigWorldCurNpcPosUpdate), scene-object collection, box counts, teleporters, guide/fov/custom-param/red-point/map-pin state and the StatusSync XRpc channel. Nothing is replayed from captures; the retail oracles live in AscNet.Test/Fixtures/BigWorld for tests only.
- Scene objects:
Resources/table/share/statussyncfight/level/sceneconfig/LevelSceneObject.tsvis extracted from the installed client's level scene config (Scripts/import_bigworld_scene_objects_4_7.py): place ids (from 1; the lounge's interaction anchors 1-8 are below 1000),CollectableComponent(reward id, POI/course group) andTeleporterComponent. Collecting a collectable grants itsBigWorldRewardonce, updates the level box count and the course explore POI. The same importer writesLevelSpot.tsv(XTableLevelSpotNewposition/rotation per group). - Dormitory (Commandant's Lounge, 4003):
BigWorldDormitory.csis the server half ofXGameplayDormitory. Enter snapshot andSgDormSaveAndApplyLayoutRequest(applied or re-saved preset) replicate the photo wall, photos, album photos, adorns, frame wall and frame goods of the player's applied layouts asXSceneObjects (children of the gameplay actor) at theDormitoryConfigspots;Dormitory*.tsvmapSgDormFurniture.SceneObjIdto scene object bases. Quest 2002's "View Photo Wall" target (scene object 1) is theConfigGroup_5001anchor whose interaction completes 2002054 throughOnInteract. Wall-plane placement, place id 0 and the parent uuid are AscNet policy (no retail lounge capture). - Interactions:
RpcPlayerInteractRequestresolves the target (scene object or level NPC) and itsLevelInteractOption.tsvrow (same importer;Configholds the option'sCompleteActionList). Order: collect push,RpcNpcInteractStartNotify, [XRpcTeleportResetOnGroundRequestwhen the list teleports, then the list viaBigWorldLevelActions.Run],RpcNpcInteractFinishNotifyafter the client finishes the list, thenBigWorldQuestRuntime.OnInteract. Unknown actor/option/level or a launcher that is not the player's NPC returns code 4. - Policies: a world's levels are the
Levelrows sharing its default level'sSectorNameprefix; the entrance red point stays on until the world is entered; an offline engine reports a collected object asActive = false. - 4.9 refresh:
Scripts/import_bigworld_tables_4_7.py,import_bigworld_scene_objects_4_7.pyandimport_scene_colliders_4_8.pytake--version 4.8|4.9(default 4.9; the installed client is the source, the flag picks the corpus listing/JSON fallback). Bundles resolve document layer first (4.9 patchesnpcandfashionthere). Tables tracked inResources/table/manifest.jsonare left toimport_tables_4_9.py; a table with neither a decodable binary nor corpus JSON keeps the committed TSV. Re-running at 4.9 left scene objects, NPCs, spots, pins, interact options,FightConfig,LevelActionExecModeandSceneColliderunchanged; quests,SceneObjectBase,LevelNpcBase,SgDroneGameStageObjectandBigWorldMessageStepgained 4.9 default-filled cells/columns. - Engine mode (temporary experiment switch):
ASCNET_BIGWORLD_ENGINE=online-min(default) sendsWorldData.Online = truewith a generatedRepFight(installed-client 11-key layout,InitialQuestsfrom persisted quests) and a minimalRepLevel(player controller, team-NPC replicates, server controller) and answersLoadCompleteRequestwith a generated XRpc bootstrap.ASCNET_BIGWORLD_ENGINE=offlinesendsOnline = falsewith noFightData/LevelData(client-hosted engine). Any other value fails the enter. SetASCNET_DUMP_BIGWORLD=1to dump BigWorld requests/responses/pushes to.runtime/bigworld-packet-dumps.
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --big-world-core-onlyMain-line chapter 13 (EN "Fake Ascension", CN 终焉福音, ChapterMain 1013) is not a stage list: its sub-chapters (FALLING EDEN / ABANDON TIDES / SHADOW WITHIN / XENO-DARKNESS) are the four TRPGTargetLink chains, shown with the regular (normal) page's stage progress and the exploration page's target progress. CN and EN share every TRPG id (only text differs), so no region overlay is involved. Before this fix login sent a hardcoded empty NotifyTRPGData, so the chapter showed 0% after every restart and nothing the client asked the TRPG layer to save was kept (every other TRPG*Request was answered 20000001).
- State:
Player.Trpg(Player.Trpg.cs): selected target chain, finished targets, claimed rewards, finished functions, opened memoirs, page mode. Regular-mode stage passes are not duplicated: login'sStageListis theTRPGSecondMainStagestages passed in the stage document. - Sync: a won fight (
FightModule, afterBfrtModule.Settle) finishes the targetsTRPGSyncStagelists for the stage plus finish-stage (TRPGTarget.Type3) targets naming it, and pushesNotifyTRPGSyncInfo. Login re-appliesTRPGSyncStageover already passed stages, so progress cleared before this fix is restored.TRPGFunctionFinishRequestfinishes function-type (7) targets (NotifyTRPGTargetFinish). - Requests:
TRPGChangePageStatusRequest,TRPGSelectTargetLinkRequest,TRPGFunctionFinishRequest(NeedSave 0 / repeat / unknown rejected with the retail20104xxxcodes ofCodeText; function reward claimed once),TRPGRewardRequest(either of the twoTRPGReward.Conditions: finished target10119or passed stage10105),TRPGOpenMemoirRequest(spends the unlock item once). Condition10119is also evaluated for the CG archive. - Investigators, talents, items, examines (
TRPGModule.Items/Investigators/Examine.cs): an investigator (TRPGRole) is owned once itsUnlockTargettarget is finished; per-role talents and day-long buffs live inPlayer.Trpg.Roles, the check in progress inTrpg.Examine, passed checks inTrpg.ExaminesPassed.TRPGActivateTalentRequest/TRPGResetTalentRequest(cost itemTRPGRoleTalent, points =TRPGLevel.TalentPointof the level minus spent),TRPGUseItemRequest(TRPGItemeffect 1 clear / 2 add buff; buffs last until the daily reset),TRPGExamineRequest/CharacterRequest/CharacterResetRequest/ChangeRoundRequest/ResultRequest(endurance, item and reset costs, rounds,NeedValue, weighted punishments, maze card gate viaTrpgMaze.CheckExamineCard),NotifyTRPGCharacterData,NotifyTRPGBaseInfo, loginCharacters/BaseInfo/ItemCapacityAdd. Exploration exp is the cumulative count of item 61002 (level/in-level exp derive fromTRPGLevel; the reward path pushesNotifyTRPGBaseInfofromRewardApplicationResult.SendPushes); endurance refills to configTrpgMaxEnduranceper daily reset period (lazily, at login/use). Items are ordinary inventory items;TrpgItems.Grantstops atTRPGItem.Capacity+ talent carry bonus (TRPGBuffType 10).TRPGModule.FinishTargetsis the one way targets finish: it adds derived targets, passes the regular-mode stagesTRPGSyncTargetlists (reverse sync,NotifyTRPGSyncInfo+NotifyStageData), unlocks investigators and persists. Function hand-in (TRPGFunctionType 3) spends its item and finishes the Type 5 targets; Type 5 functions need the passed examine (20104013). - AscNet rules (no published law): roll = uniform in [1, attribute] (attribute = init + talent/buff adds, clamped 1..10, client
TRPGRoleAttribute.MaxValue), a "max roll" talent (TRPGBuffType 4) raises the floor by its second param, item bonus added to the roll;TRPGBuffType 5 talents skip a failure punishment with their percent chance; gain-investigator / gain-item targets (TRPGTargetTypes 2/4) finish when the investigator is owned / the item was obtained (theTRPGFunctionGroupconditions 609001 → target 300001 rely on it); oneTRPGUseItemRequestuse per call, re-adding an active buff or clearing nothing is refused (20104038); a new check replaces an unfinished one. Talent buff effects on real combat (TRPGBuffType 1) are not applied. - Tables:
Scripts/import_trpg_4_9.pyprojects the structural columns of the EN 4.9TRPGTargetLink,TRPGTarget,TRPGReward,TRPGMemoirStory,TRPGSyncStage,TRPGSyncTarget,TRPGRole,TRPGRoleTalent,TRPGRoleTalentGroup(merged fromroletalentgroup/1..4),TRPGLevel,TRPGItem,TRPGBuff,examine/*andsecondmain/TRPGSecondMainStagetables (decoded from the raw.tab; the sync tables have no JSON sidecar). - Still open: talent combat buffs (
TRPGBuffType 1 fight buffs) are not injected into fights; the examine punishment "fight" (TRPGExaminePunishType 1) is client-driven and its stage settle is not specially handled;NotifyTRPGDailyResetDatais never pushed (endurance, buffs and shop limits refresh at the next login or use, not at the reset boundary of a running session); the20104013examine-function check has no table row to exercise it (noTRPGFunctionof Type 5 exists in 4.9 EN). Maze, shop, world boss, function-group/third-area order checks and the reverse sync are implemented.
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --trpg-only- Shop and world boss (
TRPGModule.Shop.cs,TRPGModule.Boss.cs, statePlayer.TrpgShopBoss, tablesTRPGShop,TRPGShopItem,boss/TRPGBoss,boss/TRPGBossPhasesReward):TRPGShopBuyItemRequestbuys aTRPGShopItemof aTRPGShop; it checks the shop/item/count (20104053/54/56), the shop's and item'sCondition(10105stage passed,10119target finished →20104069), the daily limit (ShopItemCount− bought + talent bonus, the client'sGetShopItemCanBuyCount), the price (ceil(ConsumeCount × DisCount/100), the client'sGetShopItemConsumeCount, →20012004) and the carry limit (TrpgItems.MaxCount→20012005), then spends and grants atomically with one reward claim key per purchase.ResetType1 counts reset at the daily reset period,ResetType0 never. The Expert Negotiator / Logistics Support talents (TRPGBuffType 8/9, read as[shop id or 0 = all shops, value], AscNet reading of the bare numbers) setDisCount/AddBuyCountin the loginShopInfosand inNotifyTRPGShopExtraDataafter a talent change.TRPGBossDetailRequest,TRPGBossPhasesRewardRequest(20104062/63/64/65, remaining HP ≤ phase percent, once per phase) and the boss fight hook (FightModule: pre-fight gate20104062/67, settle gate andTRPGBossFightResult;TRPGBossFightResultisFightTimeandBossDamageforUiTRPGWinWorldBoss) run onTRPGBoss1: stage 30200299,ChallengeCount1 attempt per daily reset, a win addsTotalDamage(bounded by the DPS rows like the guild boss) to the boss's lost HP and pushesNotifyTRPGClientBossData; losses and forced exits keep the attempt. AscNet policy (missing-retail, not retail parity): the client tables ship no boss HP (TRPGBossHpConfig/HpControlare absent), so the pool is per player withTRPGModule.BossTotalHp= 10,000,000, and the boss window (TimeId77) has no calendar row, soActivityScheduleService.MissingCalendar49opens it unbounded. The window-end mail (FinishMailId) is not sent because the window never ends. The per-day challenge count of an already running session refreshes at the next login or fight.
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --trpg-shop-boss-only- Maze (
TRPGModule.Maze.cs,Player.Trpg.Maze.cs, tablesTRPGMaze,TRPGMazeLayer,TRPGMazeCard,TRPGMazeMap(one TSV merged frommazemap/*.tab,GroupId= map id,Id= node id),TRPGSecondArea,TRPGThirdArea,TRPGFunctionGroup):TRPGEnterMazeRequestopens a maze whoseTRPGSecondArea.Conditionholds (20104069) and returns itsMazeInfo(cards finished for good per layer + record-group cards); the sameMazeInfosride onNotifyTRPGData. The client moves itself after a card result (XTRPGMazeNode/LayerMoveNext/MoveTo), so the server keeps an in-memory run (Player.TrpgMazeRun, reset at every enter like the client's) that mirrors that arithmetic and validates every selection: no maze20104022, layer not in the maze20104023, not the current layer20104026, node missing20104028, not the current node20104027, index missing20104029, outside the selectable window20104031, Block card20104034. Card types (XTRPGMazeCard.OnResult): Pass/Story/Reward succeed at once (Reward grantsParam[1]; TRPG items throughTrpgItems.Grant), Fight/FightWin/Examine answerSuccess=falseand wait: a won stage named by the card (TrpgMaze.OnStageWon, hooked afterTRPGModule.OnStageClearedinFightSettle) or a successful examine (TrpgMaze.OnExamineFinished) pushesNotifyTRPGMazeSelectCardResult; Skip moves to its layer/node/card; Over ends the visit.TRPGMazeQuickChallengeRequestneeds exploration level >= the fight card'sParam[1](20104033) and pays its quick reward id;TRPGMazeGiveUpChallengeRequestskips a pending fight for nothing; both need that card to be the pending Fight (20104032). Cards withDisposeablepersist inPlayer.TrpgMaze.FinishedCards(finished cards pass without paying again, record-group cards pushNotifyMazeRecordCardId);SingleDisposeablecards last one visit. A board card named by aTRPGTarget.Type1 target finishes it (TRPGModule.FinishTargets).TrpgMaze.CheckExamineCardgives the examine requests20104071/72;TrpgMaze.RestartCurrentLayermirrors the client's local layer restart after a go-to-origin punishment.TRPGModule.CheckFunctionOrderadds the function-group/third-area rules toTRPGFunctionFinishRequest: group or its third area closed20104002, an earlier saved function of the group unfinished20104010. AscNet rules where the tables/Lua define none (labelled in code): the random-card roll is proportional to the publishedParamweights (a talent buff type 6[cardType, extra]adds weight to outcomes of that type; a type 7[9, rewardId]buff adds a reward for a cleared fight card), re-selecting a pending random card keeps its rolled outcome, random outcomes are one-off effects (only the board card's own flags are recorded), card targets ignore chain prerequisites, a function listed by no group (e.g. 110011) is unconstrained so20104009is never raised, and the fourthParamof fight cards (a fight-win card id) is not interpreted because neither the Lua nor the tables say what it does. The earlier group rule20104010cannot fire with the 4.9 tables (no group lists a saved function after another saved one) but is kept because the client's group logic is sequential.
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --trpg-maze-onlyThe current client needs gender selection to update both persisted player state and the live in-session player cache.
This branch adds:
PlayerData.GenderPlayerData.ChangeGenderTimeChangePlayerGenderRequestChangePlayerGenderResponseNotifyPlayerGenderChangePlayerGenderRequestHandler
Behavior:
- accepts current-client gender values
1..3 - rejects invalid values with
20002020/PlayerGenderCfgNotExist - returns
20002021/PlayerGenderIsSameonly after setup has completed - treats
Gender <= 0orChangeGenderTime <= 0as incomplete first setup - grants first-setup
Inventory.FreeGem x50 - sends
NotifyItemDataListfor the 50 Black Card reward - includes
RewardGoodsListin the response - sends
NotifyPlayerGenderbefore the success response so the profile can refresh without a client restart - persists inventory and player state
This also covers the earlier broken state where Gender may have been written but no reward or ChangeGenderTime was recorded; that account can still receive the first-setup reward once.
| Path | Purpose |
|---|---|
AscNet/ |
Main host process. Starts the TCP game server and ASP.NET SDK server. |
AscNet.GameServer/ |
TCP game protocol, request handlers, commands, combat/settlement logic. |
AscNet.SDKServer/ |
HTTP SDK/config/login/KRSDK endpoints. |
AscNet.Common/ |
Shared database models, MessagePack schemas, config, utility code. |
AscNet.Table/ |
Table generator/parser support. |
AscNet.Test/ |
Focused compatibility harness and regression checks. |
Resources/ |
Runtime configs, current client tables, data fixtures, notices. |
Mods/ |
Launcher-managed Lua/table client mods and authoring instructions. |
proxy.py |
mitmproxy script that routes client HTTP traffic back to local AscNet. |
run_steam.py |
Steam/PC bridge runner for AscNet + proxy + optional MongoDB + launch command. |
launch-pgr-ascnet.sh |
macOS/CrossOver launch example for the Steam client. |
Minimum local tooling:
- .NET SDK 8
- MongoDB reachable at
127.0.0.1:27017, ormongodavailable forrun_steam.py --with-mongo - Python 3.10 or newer for
run_steam.py - mitmproxy/mitmdump for Steam/PC bridge mode
- A local Punishing: Gray Raven PC/Steam installation for client testing
The .NET server and run_steam.py run natively on Linux. The game client and AscNet.Launcher are Windows programs. Under Wine, the launcher installs Git, the .NET 8 SDK, Rust 1.92 (MSVC), and MongoDB from official archives. It does not use PowerShell or WinGet. It passes diagnosticDataCollectionEnabled=false to Windows mongod. Under Wine it also downloads the MSVC toolset and Windows SDK from the Visual Studio 2022 release channel into the local tools directory. It does not run the Visual Studio installer. An existing unpacked tree at C:\msvc or ASCNET_MSVC is used when VC\Auxiliary\Build\vcvars64.bat is already there. On native Windows it uses an installed Visual Studio 2022 (MSBuild builds VersionShim.vcxproj, which pins toolset v143) or else Visual Studio 2026 (18.x, shim built with cl.exe) that has the C++ tools and a Windows SDK. It installs VS 2022 Build Tools only when no VS is installed (VS 2022 Build Tools fail with 1603 over VS 2026's shared components). When VS is unusable (2026 without C++ tools or SDK, failed install) it logs why in Activity and uses the same downloaded MSVC toolset and SDK as Wine; there is no environment override on native Windows (ASCNET_MSVC is Wine-only). When the configured Git remote cannot be fetched, a clean checkout that is already on that branch is built at its current revision.
Optional/macOS-specific:
- CrossOver (the launcher installs the official build with your consent; a licence is the player's own) if you use
launch-pgr-ascnet.sh; the native macOS launcher needs it
AscNet.Launcher also builds natively on Apple Silicon (the same Slint UI; design and status in macos-port.md). It runs the Windows game in its own CrossOver bottle (AscNet), applies the Rosetta patches, and runs MongoDB and the AscNet server natively. Setup needs the Xcode Command Line Tools (git, clang); everything else (.NET 8, MongoDB, rustup, cargo xwin for the patch DLLs) is downloaded into ~/Library/Application Support/AscNetLauncher/local.
cargo test --manifest-path AscNet.Launcher/Cargo.toml --offline # macOS
cargo xwin build --manifest-path AscNet.Launcher/Cargo.toml --release --target x86_64-pc-windows-msvc # Windows still builds
AscNet.Launcher/packaging/macos/package.sh [--media DIR] # target/macos/AscNetLauncher-macOS.zippackage.sh builds AscNet Launcher.app (Info.plist, icon, background.*, launcher.json, supported-client.json, LICENSE), signs it ad hoc and zips it. The app is unsigned, so the player allows it once (Open from the context menu, or xattr -d com.apple.quarantine). background.mp4 must have no B-frames; the script refuses one that has. Logs: ~/Library/Logs/AscNet Launcher/launcher.log; settings: ~/Library/Application Support/AscNet/Launcher.
On macOS the launcher can use what already runs. An adopted prefix (a Sikarugir/Kegworks wrapper or CrossOver bottle found on Home, or picked by hand) is never written to, and the game still starts through CrossOver's wineloader with the launch-pgr-ascnet.sh environment (D3DMetal, version=n,b, ASCNET_PATCH_ORIGIN; without MTL_HUD_ENABLED and the script's fixed paths), never the wrapper app's own Wine; Setup's patch install, the patch-file update and the mods go straight into that prefix's game folder (for a Steam library on a mapped drive such as X:, the Mac folder the dosdevices/x: link points at). Play then checks the ports before it starts anything: a MongoDB that answers the wire protocol (hello) on the build's port, or on 27017 when Settings → Use the MongoDB already running on this computer is on (default), is used and never started, stopped or shut down; with it on, the server the launcher starts gets a Database.Port of that MongoDB in its installed Configs/config.json copy (same host and asc_net; the persistent config.json is untouched). An AscNet server that answers GET /api/launcher/status on the build's SDK port, or on 8080 with 2335 listening, is used instead of a second server (and then no MongoDB is needed); Activity says which one is used. Anything else on those ports is an error naming the port. Setup's port check accepts the same running services. The patch-file update still runs first in Setup and Play. Windows is unchanged: it always needs free ports.
Release assets: attach AscNetLauncher-macOS.zip next to the Windows AscNetLauncher.zip. A release without the Mac asset is no update for a Mac; Windows keeps its rule of exactly one AscNetLauncher.zip. The Mac updater replaces the whole app: it checks the zip's SHA-256 against GitHub's digest, accepts only the bundle's known files, requires a valid code signature and that the new executable starts (--self-update-probe), then renames the old app to .ascnet-update-old-<uuid> beside it, which the new launcher deletes on its first start. It needs the folder holding the app to be writable.
LICENSE (GPL-3.0) is in both archives. Launchers up to 1.0.24 reject a Windows zip with an eighth member, so the first release whose updater accepts LICENSE must still ship the seven-file Windows zip (the default nix build --impure, or the windows_license workflow input left off). Add LICENSE to the Windows zip one release later with ASCNET_ZIP_LICENSE=1 nix build --impure or the windows_license input. Nix only sees tracked files: git add AscNet.Launcher/LICENSE first.
Releases are published by .github/workflows/launcher-release.yml (manual workflow_dispatch on the default branch); .github/workflows/ci.yml runs cargo test on macOS arm64 and Windows for launcher pull requests and pushes, and the release workflow reuses it.
- Bump the version in a commit and push it:
AscNet.Launcher/Cargo.toml, theascnet-launcherentry inAscNet.Launcher/Cargo.lock, and thelauncher 1.0.N, patch 0.X.0line in this file. The workflow stops at once if the three differ from theversioninput, if the tag already exists, or if it is not run from the default branch. - Run the workflow with
version(1.0.N, also the tag),windows_license(see the LICENSE rule above),notes(one line,\nfor a line break; player-facing bullets only for commits since the previous tag) and, for game-version releases only,screenshot(https URL or a PNG/JPG committed in the repo; it is attached and embedded at the top of the notes). - Jobs:
test;build-windows(native MSVC on windows-latest, nasm for openh264);build-macos(macos-15-intel,package.shbuilds a universal binary to run--check-mediaand--self-update-probethere, then ships it thinned to arm64, because released launchers accept only a single-architecture update);package(the Windows zip is exactly the updater'sFILESlist, parsed fromsrc/updater.rs, plus LICENSE only when asked; the macOS bundle layout, no AppleDouble members, version in Info.plist);smoke(Windows:--check-mediaand the start writes "Launcher started"; macOS: signature, arm64-only binary and embedded version, plus--check-mediaand--self-update-probewhen the runner is arm64);release(gh release create <version> --target <sha> --title "AscNet Launcher v<version>"with both zips, then the API must showreleases/latest= the new tag, exactly the expected assets, and GitHub's digests equal to the built zips). Onlyreleasehascontents: write.
Official builds are told apart from copies. package writes AscNetLauncher.sha256 (<sha256> AscNetLauncher.exe and <sha256> AscNetLauncher-macOS: the Windows exe and the macOS app's binary exactly as shipped in the zips; smoke re-checks both against it) and release attaches it next to the zips, then runs actions/attest-build-provenance on AscNetLauncher.zip and AscNetLauncher-macOS.zip (the job has id-token: write and attestations: write) and verifies them with gh attestation verify. The updater only reads the asset named AscNetLauncher.zip / AscNetLauncher-macOS.zip, so the extra asset does not affect older launchers. During its launcher update check (when no newer release exists) a launcher fetches the manifest of the release tagged with its own version from reiserFSs/InfiniteLoop (never from the configurable repositoryUrl), hashes its own executable, and shows "Official build" on a match or "Unofficial build — not from github.com/reiserFSs/InfiniteLoop" on a mismatch. Offline, an API error, a missing release or manifest show nothing and block nothing; a local dev build of an unreleased version or without a manifest shows nothing, one of a released version shows "Unofficial". Anyone can verify a download:
gh attestation verify AscNetLauncher.zip --repo reiserFSs/InfiniteLoop
sha256sum AscNetLauncher.zip # or the exe inside it; compare with AscNetLauncher.sha256 on the releaseKeep the asset name AscNetLauncher.sha256 and its two entry names: the launcher (src/updater.rs, MANIFEST, MANIFEST_ENTRY) looks for exactly those.
Media (background.bmp/.mp4/.wav) are not in git. AscNet.Launcher/media.json pins the media release tag and a SHA-256 per file; AscNet.Launcher/packaging/fetch-media.sh DIR (CI) and flake.nix both read it. The media release is a pre-release with a non-semver tag, so neither the updater nor releases/latest sees it. To change the media (new game version): regenerate the files (Scripts/extract_launcher_background.py, B-frame free, check with AscNetLauncher --check-media), create a new media release (launcher-media-2), update tag and the hashes in media.json, commit.
One-time creation of the first media release (from .runtime/launcher-media/, after AscNetLauncher --check-media .runtime/launcher-media/background.mp4 succeeds):
gh release create launcher-media-1 --repo reiserFSs/InfiniteLoop --prerelease --latest=false \
--title "Launcher media 1" \
--notes "Pinned launcher background media (hashes in AscNet.Launcher/media.json). Not a launcher release." \
.runtime/launcher-media/background.bmp .runtime/launcher-media/background.mp4 .runtime/launcher-media/background.wavStart MongoDB first, then run:
dotnet run --project AscNet/AscNet.csproj -- --urls http://127.0.0.1:8080Default config values come from AscNet.Common/Config.cs:
| Setting | Default |
|---|---|
| Game server host | 127.0.0.1 |
| Game server port | 2335 |
| MongoDB host | 127.0.0.1 |
| MongoDB port | 27017 |
| MongoDB database | asc_net |
Resources/Configs/config.json may be left empty to use those defaults, or populated with overrides.
The launcher's SETTINGS → CLIENT MODS section manages the checked-in Mods catalogue, including the Lua GM menu
(Ctrl+Shift+D, or GM Menu in the main screen's second menu). Setup refreshes the retained source checkout;
the catalogue is read directly from <local runtime root>/checkout/Mods, including when server binaries are cached.
Close the game, turn on Client mods (game debug mode) and switch each wanted mod ON in its own row; changes
save and apply immediately, without an Apply button. Restart the server and game. The master switch defaults off and enables the
game's external Lua/table loaders, not the Proxima inspector. A client-version diff mismatch skips the affected
mod and reports its reason rather than patching a different shipped source. Switching mods off or removing them removes only
tracked overrides; unrelated files are preserved. See mod authoring and research tools and
player diagnostics.
"Client": { "Debug": true } in config.json makes the SDK server send remote-config Debug = 1 to every client
that fetches its config ("ShowInspector": true also sends IsShowInspector = 1; the client opens its Proxima
inspector only when both are on: tap the like count on the player info page 5 times, then browse to port 7378,
password HaruGames; verified on 4.8 EN, it gives a live hierarchy, component editor, log and console, and it
listens on all interfaces, so only enable it on a trusted network). Both default to off; the client reads them at start-up, so restart the game after
changing them. Verified on 4.8 EN: the login screen gains the debug server-address field; plain-text Lua in
<persistentDataPath>/Lua/Matrix/<module>.lua is loaded before the game's own module (per module; a missing file
falls back to the shipped one, a broken file is an error; the game's XHotReload.Reload("<module>") re-reads an
edited override into the running client, UI changes showing when the screen next opens); and a TSV at <persistentDataPath>/Table/<requested path>
replaces that one table (e.g. Table/Client/UiPc/UiPcScreenResolution.tab: header row of column names, tab-separated,
CRLF; the path is case-sensitive and indexed at start-up; non-ASCII text is GBK on EN). From disassembly, not yet
exercised: Lua/Launch/ for XLaunch* modules, Lua/DlcFight/ for fight Lua, and compiled IFix patches at
InjectFix/<assembly>.patch.bytes. On the Windows client Debug also turns on the game's editor-debug Lua paths
(class wrapping, extra network checks, timer stack traces), so it is not for normal play. persistentDataPath is
%USERPROFILE%\AppData\LocalLow\kurogame\PGR.
Scripts/pgr.py drives that inspector from a terminal: python3 Scripts/pgr.py lua 'return XPlayer.Id' runs Lua in the game and prints the result, reload <module> hot-reloads a module, and cmd ? lists the inspector's own commands (--host for a client on another machine).
4.8 client bundles under PGR_Data/StreamingAssets/{resource,document}/matrix are <sha1>.uab files and the matrix
index maps logical names (assets/temp/lua/matrix.ab) to them. 4.9 changed the format: files are <16hex>.uab
(plus .acb/.awb/.usm/.acf), every .uab and the extensionless manifests carry a 32-byte HARUINKUROGAME + zero prefix
in front of the normal UnityFS header (detected by magic; header file_size and all offsets exclude it, protection
flags/key unchanged), resource/matrix/index became InPkgIndex, and the indexes are plain (unprotected, unprefixed)
bundles holding a physical-file table ({file: [name-or-"", sha1, size, svn, bases, 0]}) with a logical name only for
non-bundle files; document/matrix/index is a full snapshot (not a delta). Bundle logical names are only in each
bundle's m_Name (the 4.8 container-path derivation holds for only 41,986 of 82,303 bundles), and matrixmanifest
(asset -> physical file) cross-checks the scan. Formats and evidence: bundle resolution.
pgr_bundles.py resolves names through the real index where it still maps them, else a scan cache
(.runtime/pgr_bundles_cache.json, keyed by install + file name + size + mtime, so rescans are incremental; use --cache
per install) built from each bundle's own AssetBundle object in both the matrix and launch trees (m_Name plus
container asset paths; only the first LZ4 blocks are decoded, in parallel). Import-time API: resolve(logical, scope=None),
find_asset(asset_path), payload(path_or_bytes) (fully decoded UnityFS payload), strip_prefix(bytes) (for UnityPy),
Resolver(install).names(prefix, suffix) / .file_entry(path) / .file_tables(). Document overrides resource; among stale
duplicates the newest wins. The install defaults to the native-starter manifest's source_install.
python3 Scripts/pgr_bundles.py scan # 4.9.1: ~130 s cold, ~0.5 s incremental
python3 Scripts/pgr_bundles.py resolve --no-index assets/temp/lua/matrix.ab # --no-index ignores the real index
python3 Scripts/pgr_bundles.py find assets/temp/lua/matrix/xmanager/xluavideomanager.lua.bytes
python3 Scripts/pgr_bundles.py validate [--sha1] # 4.8: scan vs logical index; 4.9: physical-file table vs disk/scan/manifest
python3 Scripts/pgr_bundles.py --install <4.8 dir> --cache /tmp/cache-4.8.json validate # separate cache per install
python3 Scripts/pgr_bundles.py verify-live --host H --dump-path <persistentDataPath>/ascnet-urltable.tsv # vs the client's UrlTable
python3 -m unittest Scripts.test_pgr_bundles # PGR_BUNDLES_INSTALL/PGR_BUNDLES_CACHE select a 4.8 install for its testsResults. 4.8.0 copy: validate matches all 42,496 UnityFS index entries (matrix 42,477 + launch 19) by the bundle's own
name and by the container-derived name (4,960 audio/video index entries are raw non-Unity files and stay index-only;
launchmanifest matches via its single container asset); manifest 42,346/42,346 bundles equal. 4.9.1 Steam install:
validate --sha1 confirms 85,421/85,421 effective matrix + 19/19 launch files against index sha1/size (80,459 bundles
- 4,962 raw), the manifest's asset list equals the scanned container for all 85,421 files, no logical name is claimed by two files, and 121 resource files are obsolete (absent from the document snapshot).
verify-live compares the scan with the running client's own table, the ground truth: XResourceManager.UrlTable, a
private static IDictionary<string,string> (original-case asset path -> logical bundle; 460,827 entries on 4.8 EN),
read by Lua reflection (typeof(CS.XResourceManager):GetField("UrlTable", 40):GetValue(nil), 40 = NonPublic|Static).
CS.XResourceManager.GetBundleUrl is case-sensitive (Assets/Product/... resolves, the lowercase path returns nil), so
compare case-insensitively. With --dump-path the client writes the table to <persistentDataPath>/ascnet-urltable.tsv
with io.open (1-2 s on a fresh client) and the script reads and deletes it; the Proxima-only fallback (no --dump-path)
returns the log over the inspector in chunks and is impractical (~30 s per call, large replies kill the connection, a
second call on a connection can reset). Result on 4.8 EN against the scan: 460,827 match, 0 bundle differences, 0
client-only; 680 scan-only assets in 131 bundles that are on disk and in the index but absent from matrixmanifest/UrlTable
(never loaded by the client, mostly assets/product/texture|ui|effect). Raw audio/video entries are not in UrlTable. On 4.9
the UrlTable dump is the ground truth for validating the scan and has not been taken yet (needs a running 4.9 client). The
Scripts that read installed bundles (export_installed_lua.py, scan_client_upgrade.py, import_bigworld_*.py) decode
payloads through pgr_bundles.payload and resolve through it; the first two verify the index SHA1/size (4.8 logical
entry or 4.9 physical-file entry) and refuse a mismatching bundle (export_installed_lua.py --allow-modified records a
locally modified install, e.g. the 4.8 copy whose document matrix.ab is patched). Both take --install and --output
so a new client can be staged beside the old corpus (../PGR_DATA/en-4.9/{lua,bytes}); patch_local_store.py is not
4.9-ready. Launcher design for 4.9: bundle resolution.
Basic local bridge with MongoDB managed by the runner:
python3 run_steam.py --with-mongoRun AscNet, proxy traffic, and launch the client command:
python3 run_steam.py --with-mongo --launch-cmd ./launch-pgr-ascnet.shUseful options:
python3 run_steam.py --helpCommon options:
| Option | Purpose |
|---|---|
--sdk-url http://127.0.0.1:8080 |
Local SDK/config URL exposed by AscNet. |
--proxy-host 127.0.0.1 |
mitmproxy bind host. |
--proxy-port 8081 |
mitmproxy bind port. |
--with-mongo |
Start local MongoDB if it is not already reachable. |
--ascnet-username test |
Local AscNet account used for Steam login handoff. |
--ascnet-password test |
Password used when creating that local account. |
--gate-fallback-username <name> |
Map unknown Steam/KRSDK gate logins to an existing local account. |
--no-ensure-account |
Skip local account creation/checking and disable implicit unknown-user fallback. |
--seed-krsdk-cache |
Opt in to writing local AscNet account data into KRSDK cache files. |
--krsdk-cache-dir <path> |
Override the KRSDK login-cache directory (default: KR_<ProjectId>/<ProductId> read from the installed client's KRSDK.bin). |
--client-dir <path> |
Installed game directory used to auto-detect the region (default $ASCNET_CLIENT_DIR/$PGR_ASCNET_DIR, else the Steam path in launch-pgr-ascnet.sh). |
--client-region en|tw|kr|jp |
Override region detection; unreadable clients fall back to EN. |
--no-proxy |
Run only AscNet; skip mitmproxy. |
--no-smoke |
Skip config smoke checks before launching. |
--proxy-log <path> |
Write redacted request/response diagnostics. |
--launch-cmd ... |
Command to start after AscNet/proxy are ready. |
On native Windows, pass the client's actual %APPDATA%\KR_<ProjectId>\<ProductId> directory with --krsdk-cache-dir when using KRSDK cache repair or --seed-krsdk-cache; the default path targets the macOS/CrossOver launch example.
The runner sets:
ASCNET_PUBLIC_HTTP_ORIGINASCNET_GATE_FALLBACK_USERNAME- proxy variables for the launch command
ASCNET_PROXY_TARGETASCNET_PROXY_LOG
The runner can create or verify a local account before the client launches:
python3 run_steam.py --with-mongo --ascnet-username test --ascnet-password testThe underlying account endpoints are:
POST /api/AscNet/registerPOST /api/AscNet/loginPOST /api/AscNet/verifyGET /api/Login/Login
Steam/KRSDK login callbacks can be mapped to the local account through ASCNET_GATE_FALLBACK_USERNAME.
Register, login, and verify accept JSON bodies up to 16 KiB, including chunked requests. Malformed or missing credentials return HTTP 400; oversized bodies return HTTP 413. Successful account responses omit passwords. Password storage and local gate-fallback behavior are unchanged.
SDK/proxy diagnostics omit query values, and proxy diagnostics omit URL userinfo. Inbound TCP decoding uses untrusted MessagePack settings with a 64 MiB decompression ceiling; the existing 4 MiB wire-frame limit remains. Inbound packet diagnostics record metadata rather than raw payloads.
Run the focused compatibility harness:
dotnet run --project AscNet.Test/AscNet.Test.csprojRun one focused check:
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --player-gender-compat-only
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --theatre-compat-only
dotnet run --project AscNet.Test/AscNet.Test.csproj -- --version-48-compat-onlyRun the whole suite without stopping at the first failure (prints @@PASS/@@FAIL per test and exits non-zero if any failed). One guild test needs Database.Name in AscNet.Test/bin/Debug/net8.0/Configs/config.json to start with ascnet_manual_full_:
dotnet build AscNet.Test/AscNet.Test.csproj
cd AscNet.Test/bin/Debug/net8.0 && dotnet AscNet.Test.dll --keep-goingEvery focused switch is an args.Contains("--...-only") block in AscNet.Test/Program.cs; list them with:
grep -o -- '"--[a-z0-9-]*-only"' AscNet.Test/Program.cs | tr -d '"' | sort -uBuild the main projects:
dotnet build AscNet.Common/AscNet.Common.csproj
dotnet build AscNet.GameServer/AscNet.GameServer.csproj
dotnet build AscNet.SDKServer/AscNet.SDKServer.csproj
dotnet build AscNet.Test/AscNet.Test.csproj
dotnet build AscNet/AscNet.csprojLocal runtime state should stay out of commits:
.runtime/.runtime/mongo.runtime/proxy-flows.log- build outputs under
bin/andobj/ - packet captures (
.pcap,.pcapng,.cap),proxylog, and.DS_Store
Do not commit runtime logs, MongoDB files, client binaries, or captured credentials.
The host's resource-copy rules exclude local .runtime/, bin/, and obj/ directories, logs, packet captures, and macOS metadata. Runtime JSON and MessagePack resources remain included. Use a fresh output directory when checking packaging; exclusions do not remove files left by older builds.
Ignore rules do not untrack existing files or remove them from Git history. Removing sensitive files from the index is not a substitute for credential revocation or a separate history review.
- This remains a compatibility/research server, not a complete production backend.
- Some modules are still skeletal or best-effort.
- Steam support is local-bridge based: it relies on local SDK/config responses plus mitmproxy routing.
- HTTPS proxying for pinned KRSDK hosts may break; the runner keeps HTTPS proxying opt-in through
--proxy-https. launch-pgr-ascnet.shis an example for one macOS/CrossOver setup and should be edited for other machines.
Original AscNet project:
https://github.com/rafi1212122/AscNet
This branch is intended to document and preserve the current-client compatibility work separately from upstream.