Repository navigation
CivSwitch Entrypoint
CivSwitch can provide the starting session for Moader's backend through the experimental civ7-s8n profile. The profile passed host tests. Installation and the handoff to hbmenu still need a Moader console test. This guide is for setting up the backend through Civilization VII.
| Layer | Evidence at the reviewed revision | Moader verdict |
|---|---|---|
| CivSwitch JavaScript loader | Gezine documents the chat/save entrypoint and a console listener on TCP9026 | Entry state only; no FS-ready claim |
| Civilization VII FS access | HerXayah publishes an FS engine; current mac2jb reports a Switch reaching 4/4 with held RPC | Exists upstream; a live session still needs target-specific qualification |
| kaiHEN through Civilization VII | s8n publishes a Civ7 kaiHEN launcher and reports success on firmware 23.0.1 | Demonstrates an upstream HEN route; does not install Moader's matched backend |
| Passing that held session to Moader | Profile-aware preparation and installer adapters pass host tests; console handoff is unverified | Only the exact s8n pin below is eligible for qualification |
| Moader resident service, routing and browser through CivSwitch | No Moader console test performed | Hardware untested |
Sources: Gezine loader, HerXayah FS port, mac2jb FS path, s8n HEN route.
- Awaiting payload: CivSwitch's JavaScript loader is waiting on the console's TCP9026. This does not mean FS memory was acquired or HEN started.
- Verified held FS session: the FS engine completed qualification and keeps its endpoint available. s8n's runner checks verified/restored FS state, retained-endpoint readiness and deferred cleanup before publishing its held result. Keep the game and acquisition host open. Runner checks.
- HEN running: the separate bootstrap has actually started HEN. The upstream HEN launcher checks a held RO frontend first, then stages and starts HEN. That frontend or an earlier 4/4 message alone is not completed HEN installation. Launcher.
Current mac2jb distinguishes Userland from FS jailbreak. Its README reports hardware 4/4 verification for the FS path; the ordinary JavaScript loader does not provide that session. This supersedes older descriptions of mac2jb's CivSwitch support as loader-only. Reviewed mac2jb README.
The entrypoint requires the physical Switch 1 edition Civilization VII cartridge, game version 1.0.0. Gezine reports tests on Switch 1 firmware 22.5.0 and Switch 2 firmware 20.4.0/23.0.1; its broader firmware expectation is not a Moader test. The Switch 2 edition, digital edition and updated game builds are not qualified by that requirement. CivSwitch requirements.
The HEN fork has a narrower limit: despite a “≤23.0.1” heading, its README says only 23.0.1 was tested and lower firmware currently does not work. It targets kaiHEN 20261114c, needs an inserted SD card and a same-network host, and reports Node24 testing with Linux/macOS preferred. It also notes acquisition timing depends on the exFAT update. These statements do not establish support for another system revision or update combination. HEN prerequisites.
The FS target contains fixed SDK/layout values, including an expected live SDK CRC. Treat an SDK/layout mismatch as unsupported; do not remove the check to accommodate another build. Target profile, connection validation.
Upstream warns that receiving a blacklist update can prevent Civilization VII from launching without a reboot. Follow the linked upstream network/update guidance before proceeding; this is an upstream warning, not a Moader-verified description of every firmware or a guarantee against updates, blocking or account action. Existing save-trigger setup and recovery can replace game saves; this page supplies no save-deletion or restoration command. Upstream caveats.
Moader's kaiHEN modification disclosure records the exact source patch against upstream e897f991524590833b82fbe8d63a3c6775fb8101. The current patch includes the read-only trace query and cooperative reload, with a matched HEN/bootstrap build. This is separate from Civ7's host adaptation.
The upstream Civ7 port also describes a target-specific thread-handle adaptation: Civ7 uses tagged thread handles and needs a try-wait adapter. That entrypoint adaptation has its own scope and validation requirements, separate from Moader's kaiHEN source patch. Upstream porting notes.
A target shim can change the bootstrap image loaded into memory while preserving the pinned bootstrap.bin file and HEN binary hash. File identity alone therefore does not describe every runtime adaptation. The experimental host profile has separate implementation checks and hardware acceptance; neither is replaced by the HEN file hashes.
The experimental selector is civ7-s8n, bound to s8n/civ7-fs-kaihen commit 51a804cbce09216e1a42e65929644fd436b4c8bf. Only that source profile is admitted initially. HerXayah FS runs and mac2jb CivSwitch runs are not admitted by this pin, even if their console output also says 4/4.
An already-current FS-only held session from the exact s8n revision is a candidate for qualification. Keep its original host and Civilization VII open; having a working session does not itself require reacquisition. Userland-only, app-only, released/completed, uncertain and already-HEN/RO-frontend sessions do not meet this starting state. Moader must still qualify source/profile identity, current FS evidence and live runtime compatibility before privileged installation.
Use Python 3.10+ and native POSIX Node 24. Run these commands from the v0.2.0 backend kit or a matching source checkout. Keep the app, resident and backend from the same release; Validation records the scope of their checks.
To fetch or verify only the pinned host source, without Node/SDK setup, acquisition or console contact:
python3 tools/setup-backend.py --host-profile civ7-s8n --sources-onlyFor the full set of local backend inputs in a precompiled kit:
python3 tools/setup-backend.py --host-profile civ7-s8n --node nodeAfter those inputs are present, validate them locally without downloads or installation:
python3 tools/setup-backend.py --host-profile civ7-s8n --check --node nodeThese commands fetch/check the pinned source and inputs locally; they do not launch the FS exploit or contact the Switch. The selected source manifest pins 120 files, including the Civ7 bridge needed by the FS-only runner. A full backend check also needs the matching app/HEN/release inputs: --sources-only alone does not prepare those. Upstream source is downloaded on your computer, not redistributed in the Moader kit.
Download and extract the v0.2.0 backend kit or use its matching source checkout. Check the game and firmware requirements first.
Use native Node 24 and Python 3.10+ on the computer. Follow the two-terminal steps below.
Use the network notes below to check whether the two devices can reach each other. A WSL2 route still needs host and console testing.
Already holding a current FS-only session from the exact admitted s8n revision? Keep Civilization VII and its original host open. Use its actual run directory in step 2; do not reacquire solely to follow this guide.
Otherwise, confirm the version/network/save caveats above and establish the CivSwitch loader using upstream entry instructions. From the Moader checkout or kit, fetch the selected sources locally:
python3 tools/setup-backend.py --host-profile civ7-s8n --sources-onlyWith CivSwitch showing Awaiting payload, replace YOUR_SWITCH_IPV4 with the console address and explicitly start the FS-only acquisition in Terminal 1:
node research/sources/civ7-fs-kaihen/engine/run.cjs YOUR_SWITCH_IPV4This command contacts the console and performs upstream FS acquisition; the preceding Python command only fetches/checks local source. The s8n runner holds by default. Wait for 4/4 verified and the held FS-ready state, note its actual runs/switch2-… folder, and keep Terminal 1/Civilization VII open. Do not run engine/hen.cjs first or use --app-only/--no-hold for a Moader handoff. Unexpected failure is not permission to automate native retries.
From the Moader checkout/kit, replace the quoted placeholder with the actual current s8n run directory. Use the same native Node24 as the acquisition host:
python3 tools/install-from-rpc.py --prepare \
--host-profile civ7-s8n \
--run-dir "/path/to/s8n/runs/<actual-run>" \
--node nodeUse --node /absolute/path/to/node if node would select another executable. On WSL, both terminals must stay in the same distro with Linux Node and POSIX paths. Preparation is local: it fetches missing pinned inputs, validates them, creates a unique immutable snapshot bound to civ7-s8n, and prints an installation command. It does not acquire FS, run a pasted status/acquisition script, contact the Switch or install HEN.
The printed command uses --prepared with the unique manifest and actual run directory. The manifest selects the host profile; do not remove or replace it with a SmileBASIC snapshot. Running that command is the privileged step: it must qualify the admitted source/session and live FS/runtime before installation, then perform Moader's combined HEN handoff. A 4/4 message alone does not bypass qualification.
Keep the original host and Civilization VII open throughout. Run the exact printed command once; if qualification rejects the run or a native operation fails/times out, stop and preserve the report. Do not edit proof flags, replay handles, repeat an uncertain command or bootstrap stock HEN separately. Recovery guidance.
Wait for the installer to report completion and return to the prompt. The installer must print its final Moader setup complete result. The installer checks HEN startup before that line. Closing Civ7 and entering hbmenu after this install still need a console test, as do resident health, browser access and mod routing. See the CivSwitch test results.
| Connection | Direction | Reviewed s8n default |
|---|---|---|
| Send the JavaScript bridge | Computer → console loader | Console TCP9026 |
| Bridge/FS transport | Console → computer listener | Computer TCP39380 |
| Local tools → held RPC bridge | Same host only | Dynamic loopback port with a per-run bearer token; never forward |
s8n's Civ7 CLI takes the console IPv4, unlike the SmileBASIC runner's computer-IP argument. Its loader code derives the host's source address for that route and injects it into the bridge; the engine binds that same host address. NS2_PC_PORT changes both the host listener and injected bridge port at this revision. Runner, loader/address injection, local RPC bridge.
Keep the local RPC bearer token and connection metadata out of screenshots and shared logs.
For WSL, successful outbound access to TCP9026 does not prove the Switch can reach the advertised return address. Our source-derived conclusion is that ordinary NAT can advertise a private WSL address that is unreachable from the Switch; a Windows port forward alone does not rewrite that injected address. Confirm both directions and a bindable, LAN-reachable host address before acquisition. This is not a tested WSL recipe. Do not reuse another fork's host-IP flags or port environment variables without checking its pinned source. Linux/WSL acquisition and Moader operation through CivSwitch remain untested here.
Dates below are upstream commit dates in UTC; retrieval was 15 November 2026. Links are fixed revisions, not moving default branches.
| Project | Commit | Date |
|---|---|---|
| Gezine/CivSwitch | f6b0f2bd285e7b32c0a1968181046f18edd79708 |
2026-11-14 |
| HerXayah/civ7-fs | 5e5665b92661f205d853ea4351a9edace7c9c6b5 |
2026-11-14 |
| s8n/civ7-fs-kaihen | 51a804cbce09216e1a42e65929644fd436b4c8bf |
2026-11-14 |
| cpypwn/mac2jb | 717022b8a91a713be41a02b5e131d3229dd8b00a |
2026-11-12 |
Moader · Downloads · Issues · Discussions
Docs for v4.0.0; app version 4.0.0.
Moader
- Home
- v4.0.0 release notes
- v3.5.0 release notes (historical)
- v3.0.0 release notes (historical)
- v0.2.5 release notes (historical)
- v0.2.0 release notes (historical)
- v0.1.3 release notes
- v0.1.2 release notes (historical)
- v0.1.1 release notes (historical)
- Changelog
- Install / Linux / WSL / macOS
- Seedsow Lullaby
- CivSwitch entrypoint
- App and browser usage
- SD card layout
- Settings and Advanced
- Game-card checks
- Debugging and screenshots
- Troubleshooting
- How it works
- FAQ
- Validation
Project