[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111828":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":14,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":14,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},111828,"IZCIVSwitch","byizmysh\u002FIZCIVSwitch","byizmysh","Tool for accessing the Nintendo Switch 2 file system through Civilization VII.","",null,"JavaScript",107,11,3,6,0,1,48,51.54,"GNU General Public License v2.0",false,"main",[24,25,26,27],"civ7","homebrew","nintendo-switch","switch2","2026-11-12 19:26:38","2026-11-23 02:54:18","# IZCIVSwitch\n\nIZCIVSwitch is a PC-side research toolkit for Nintendo Switch 2 and Civilization VII.\n\n**PC compatibility.** The bundled Lobby runtime targets Linux x86_64.\n\n[Release notes](https:\u002F\u002Fgithub.com\u002Fbyizmysh\u002FIZCIVSwitch\u002Freleases\u002Ftag\u002Fv0.1.0) · [Safety notice](DISCLAIMER.md)\n\n> **Use with caution.** This research software can modify game save data and cause the console to freeze. Back up your saves before use. A freeze may require a full power cycle. Use the software only with hardware and content you are authorized to access. It comes without a warranty.\n\n## Installation\n\n**Checksums.** For release archives, use the SHA-256 checksum file under **Assets** on the v0.1.0 release page. The [v0.1.0 source manifest](https:\u002F\u002Fgithub.com\u002Fbyizmysh\u002FIZCIVSwitch\u002Fblob\u002Fv0.1.0\u002FSHA256SUMS) covers the files in that Git tag.\n\n> **Read this section first.** The release archive does **not** contain `prod.keys`. You must supply your own console dump for the PC-side Lobby injection.\n\n### 1. Download and extract\n\n| Package | Use |\n|---|---|\n| `IZCIVSwitch-0.1.0-linux-x86_64.tar.gz` | Full package: kit + PC Lobby runtime + launcher; Linux x86_64 |\n| `IZCIVSwitch-0.1.0-source.zip` | Scripts + kit + launcher, no Lobby runtime; use with an existing `iz2s-panel` or the Switch 1 NRO |\n\nExtract the **entire** archive to a writable folder. Do not run from inside the archive.\n\n```text\nIZCIVSwitch-0.1.0\u002F\n├── IZCIVSwitch.py\n├── pc-install-trigger.py\n├── kit\u002F                         # original civswitch-kit\n├── panel\u002F                       # PC-side CivSwitchLDN (full archive only)\n│   └── data\u002F\n│       ├── runtime\u002Fcivswitchldn\u002F\n│       └── private\u002Fcivswitchldn\u002F   \u003C-- prod.keys goes here\n├── izlauncher\u002F                  # optional menu\n├── README.md\n├── DISCLAIMER.md\n└── RELEASE_NOTES.md\n```\n\n### 2. Provide `prod.keys`\n\n`prod.keys` is **required only for the PC-side Lobby injection** (`IZCIVSwitch.py --lobby` and `pc-install-trigger.py`). It is **not needed** for `IZCIVSwitch.py --no-lobby` \u002F XSTRIG, and it is **not included** in the release.\n\nPlace your own `prod.keys` here:\n\n```bash\npanel\u002Fdata\u002Fprivate\u002Fcivswitchldn\u002Fprod.keys\n```\n\nRecommended permissions:\n\n```bash\nchmod 700 panel\u002Fdata\u002Fprivate\u002Fcivswitchldn\nchmod 600 panel\u002Fdata\u002Fprivate\u002Fcivswitchldn\u002Fprod.keys\n```\n\nThe file is a standard text `prod.keys` dump from **your own console**. It must contain at least these 32-hex-character entries (the LDN panel checks them):\n\n```\naes_kek_generation_source\naes_key_generation_source\nmaster_key_00\nmaster_key_12\n```\n\n`title.keys` is not required for the Lobby injector. Do not download keys from untrusted sources, and never commit them to a repository.\n\nIf you do not have `prod.keys`, skip the Lobby path and use the Switch 1 NRO from the original kit to install `XSTRIG.Civ7Save`; after that, `IZCIVSwitch.py --no-lobby` needs no keys.\n\n### 3. Restore raw-socket capabilities\n\nThe bundled Lobby runtime needs `cap_net_admin` and `cap_net_raw` on:\n\n```text\npanel\u002Fdata\u002Fruntime\u002Fcivswitchldn\u002Fbin\u002Fpython-ldn\n```\n\nAfter extracting the archive, run:\n\n```bash\nsudo setcap cap_net_admin,cap_net_raw=ep \\\n  panel\u002Fdata\u002Fruntime\u002Fcivswitchldn\u002Fbin\u002Fpython-ldn\n\ngetcap panel\u002Fdata\u002Fruntime\u002Fcivswitchldn\u002Fbin\u002Fpython-ldn\n```\n\nExpected:\n\n```\ncap_net_admin,cap_net_raw=ep\n```\n\nThe full archive is **Linux x86_64** and its bundled Python runtime is built for Python 3.14. On another architecture or Python version, install the upstream `iz2s-panel` Lobby runtime and point the script at it with `--panel`, or use the Switch 1 NRO.\n\n### 4. Verify the installation\n\n```bash\npython3 -m py_compile IZCIVSwitch.py pc-install-trigger.py izlauncher\u002Finstall.py\npython3 pc-install-trigger.py --check\n```\n\nExpected:\n\n```\npanel : ...\u002FIZCIVSwitch-0.1.0\u002Fpanel\nkit   : ...\u002FIZCIVSwitch-0.1.0\u002Fkit\nradio : phyN\n[ok] LDN environment is ready\n```\n\nIf `--check` reports `prod.keys not ready`, re-read step 2. If it reports capabilities, re-run step 3. If the radio is missing, reconnect the USB Wi-Fi adapter.\n\n### 5. Launch\n\nOn S2: **Civ7 → MULTIPLAYER → WIRELESS → CREATE GAME → HOST LOBBY**. Keep the lobby open.\n\nOn the PC:\n\n```bash\ncd IZCIVSwitch-0.1.0\npython3 IZCIVSwitch.py --lobby --yes\n```\n\nSuccess:\n\n```\n4\u002F4 verified\nFS ENDPOINT IS LIVE\n```\n\n`Ctrl-C` releases the FS endpoint and lets the engine clean up.\n\n---\n\n## Compatibility\n\n**Linux only.** PC Lobby mode runs only on Linux. The bundled runtime targets x86_64.\n\nConsole prerequisites:\n\n| Item | Requirement |\n|---|---|\n| Switch 2 | firmware **23.0.1** (do not update) |\n| Civ7 | Switch 1 physical cart **1.0.0** |\n| PC | wired Ethernet to the console; Wi-Fi adapter for Lobby injection |\n\nThe PC Lobby injection uses the existing `CivSwitchLDN` implementation: it temporarily releases the Wi-Fi radio, joins the Civ7 lobby, sends the compressed `core.js` in 19 chat messages, and restores Wi-Fi. Ethernet stays connected.\n\n---\n\n## First connection\n\n### If the console IP changes\n\nThe console may get a new DHCP address (`.20` → `.190`). `IZCIVSwitch.py` checks the panel state and the ARP table. The loader screen always shows the authoritative address:\n\n```\nAwaiting payload at \u003CIP>:9026\n```\n\nForce it if needed:\n\n```bash\npython3 IZCIVSwitch.py --lobby --yes --console-ip 10.42.0.190\n```\n\n### If the Wi-Fi radio changes\n\nUSB adapters re-enumerate as `phyN`. If the stored radio is gone and exactly one is available, the script selects it automatically. With several radios:\n\n```bash\npython3 IZCIVSwitch.py --lobby --yes --phy phy27\n```\n\n---\n\n## Persistent mode: XSTRIG + Load Game\n\nThis is the original kit's validated loop. It needs one install and a reboot, but no Lobby afterwards.\n\n### Install once\n\nWith the PC Lobby runtime and `prod.keys`:\n\n```bash\n# S2 must be in Host Lobby\npython3 pc-install-trigger.py --yes\n```\n\nThe script injects `core.js`, waits for the loader, then runs the original\n`kit\u002Fsave-tools\u002Frestore_save.py kit\u002Fsave-tools\u002Ftrigger-recreate \u003CIP>` and writes:\n\n```\nsave:\u002Fsaves\u002FSingle\u002FXSTRIG.Civ7Save\n1 195 911 bytes\nsha256 c53a04e4ce432727c0e24348be240051b846595103ed06865b34c16bba810e7c\n```\n\nOther saves are not deleted. The Switch 1 NRO's `ZR` is the path that wipes single-player saves; this PC installer does not.\n\n### Reboot and run\n\n1. Hard power-cycle S2: hold power for 12 seconds, wait 5 seconds, boot.\n2. Civ7 → `Load Game` → `XSTRIG.Civ7Save`.\n3. Wait for `Awaiting payload at \u003CIP>:9026`.\n4. PC:\n\n```bash\npython3 IZCIVSwitch.py --no-lobby\n```\n\nOn failure: hard power-cycle, `Load Game → XSTRIG`, repeat. The kit reports roughly 30% success per boot; 3–4 boots are normal.\n\n---\n\n## Optional: IZlauncher menu\n\n`izlauncher\u002F` installs a menu entry into `save:\u002Fsaves\u002FSingle\u002FIZ2S.Civ7Save`.\nThe main FS session works without this optional menu.\n\n```bash\npython3 izlauncher\u002Finstall.py --ip \u003CS2-IP>\n```\n\nAfter `INSTALL DONE`:\n\n1. Reboot S2.\n2. Civ7 → `Load Game` → `IZ2S.Civ7Save` → menu.\n3. Double-press **R3** (right stick) to start the embedded loader.\n4. PC: `python3 IZCIVSwitch.py --no-lobby`.\n\nRollback:\n\n```bash\npython3 izlauncher\u002Finstall.py --ip \u003CS2-IP> \\\n  --restore izlauncher\u002Freceipts\u002F\u003Cuuid>\u002Freceipt.json\n```\n\n---\n\n## Observing and stopping\n\nWhile `IZCIVSwitch.py` is alive:\n\n```bash\nnode kit\u002Fport\u002Fengine\u002Frpc.cjs \u003Crun-folder> status\n```\n\nThe bridge is up during `2\u002F4`, so `status` can answer before FS is fully acquired.\nInspect a run without starting a new engine:\n\n```bash\npython3 IZCIVSwitch.py --inspect kit\u002Fport\u002Fengine\u002Fruns\u002F\u003Crun-folder>\n```\n\nMonitor prefixes:\n\n| Prefix | Meaning |\n|---|---|\n| `[engine]` | selected `run.cjs` lines |\n| `[run]` | `run.log`: pipeline stages |\n| `[fs] profile` \u002F `[fs] retry` | fs-race sweep |\n| `[fs] heartbeat` | stage, attempt, elapsed, RPC calls, idle |\n| `[fs] WARNING` | no acquisition progress for 180 s |\n| `RUN SUMMARY` | verified\u002Ferror, stages, last retries |\n\n`Ctrl-C` releases the endpoint. If the process does not exit, `kill \u003Cpid>`; the console may be wedged.\n\n---\n\n## What you can do\n\n- Hold a live Stage 2 FS RPC endpoint on the console.\n- Use the kit's RPC tooling (`rpc.cjs`, low-level `call`\u002F`read`\u002F`write`\u002F`query`).\n- Dump system CodeFS with `--dump-firmware` (needs ≥512 MiB free).\n- Install the optional IZlauncher menu.\n- Use XSTRIG + Load Game for a persistent entry without Lobby or Switch 1.\n\nThis is not a graphical file manager. FS operations are exposed through the original kit's RPC\u002FRO pipeline.\n\n---\n\n## Troubleshooting\n\n| Symptom | Check |\n|---|---|\n| `prod.keys not ready` | Put your own dump at `panel\u002Fdata\u002Fprivate\u002Fcivswitchldn\u002Fprod.keys`; required entries in step 2. |\n| `capabilitiesReady: false` | Re-run the `setcap` command from step 3. |\n| `radio phyN is absent` | Reconnect the USB Wi-Fi adapter; one radio → auto; several → `--phy`. |\n| `loader did not answer` | S2 is not in Host Lobby, or the IP changed; pass `--console-ip`. |\n| `Got unstable rw primitive` + `604:48` \u002F `657:28` | Initial Civ7 JS exploit failed at the stable-primitive layer; no `:9026`. Hard reset and retry. |\n| Stuck at `2\u002F4`, `idle` grows | Wedge; hard power-cycle 12 s. |\n| `rpc.cjs status` → `ECONNREFUSED` | Engine stopped or bridge busy; use `--inspect`. |\n| `RUN SUMMARY verified: False` | Read the summary and `switch2\u002Facquisition.log`. |\n| PC platform and bundled Python | PC Lobby mode requires Linux. The bundled runtime targets Linux x86_64 and uses Python 3.14. |\n\n---\n\n## Privacy and security\n\n- The scripts run locally and do not contact a cloud service.\n- Keep console-specific keys private. Never commit or share them. The release archives exclude console keys and the Switch 1 NRO.\n- The toolkit can write to game saves and create temporary data under `save:\u002F`. See the [safety notice](DISCLAIMER.md) for the risks of running it.\n- The release includes no Nintendo branding or game assets.\n\n## Credits and license\n\n- **civswitch-kit by mza1010.** [civswitch-kit](https:\u002F\u002Fgitee.com\u002Fmza1010\u002Fcivswitch-kit) provides the filesystem support used by IZCIVSwitch. The bundled kit retains its [GPL-2.0 license](kit\u002FLICENSE) and [upstream notices](kit\u002FNOTICE.md), which credit [kurumuz\u002Fns2jb](https:\u002F\u002Fgitlab.com\u002Fkurumuz\u002Fns2jb) and the CivSwitch port by [slapah](https:\u002F\u002Fgithub.com\u002Fslapah).\n- **CivSwitchLDN by ItsNerisma.** The PC Lobby mode uses [CivSwitchLDN](https:\u002F\u002Fgithub.com\u002FItsNerisma\u002FCivSwitchLDN) by ItsNerisma. The bundled application and ItsNerisma's original code are licensed under [GPL-3.0-only](panel\u002Fengines\u002FCivSwitchLDN\u002FLICENSE). Reused components retain the licenses documented in the [bundled third-party notices](panel\u002Fengines\u002FCivSwitchLDN\u002FTHIRD_PARTY_NOTICES.md).\n- **IZCIVSwitch.** The original integration code is licensed under [GPL-2.0](LICENSE). Bundled projects retain their own licenses. [IZCIVSwitch repository](https:\u002F\u002Fgithub.com\u002Fbyizmysh\u002FIZCIVSwitch)\n- **Gezine's CivSwitch.** The Civilization VII XSS and loader portions retain their [MIT license notice](LICENSE-MIT-Gezine.txt). [Gezine\u002FCivSwitch repository](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch)\n- **IZlauncher.** The bundled launcher comes from [IZ2S Platform](https:\u002F\u002Fgithub.com\u002Fbyizmysh\u002FIZ2S-Platform). The package includes the [IZ2S GPL-2.0 license](izlauncher\u002Fpackage\u002FLICENSE-IZ2S.txt) and [Gezine's MIT notice](izlauncher\u002Fpackage\u002FLICENSE-CivSwitch.txt).\n- **Related project.** [CivHomebrew](https:\u002F\u002Fgithub.com\u002FXITRIX\u002FCivHomebrew) by XITRIX.\n\nSee [NOTICE.md](NOTICE.md) for detailed attribution.\n","IZCIVSwitch 是一个面向 Nintendo Switch 2 平台的研究型 PC 工具，用于通过《文明VII》（Civilization VII）游戏环境访问和操作 Switch 2 的文件系统。它支持两种模式：基于 PC 端 Lobby 运行时的注入（需用户提供合法 console dump 中的 prod.keys）和免 Lobby 的 XSTRIG 方式（兼容 Switch 1 NRO）。核心功能包括游戏存档读写、LDN（Local Network Daemon）通信模拟及底层文件系统桥接，依赖 Linux x86_64 环境运行。该项目适用于固件与游戏逆向研究、存档调试及自制软件开发等合规安全研究场景，不提供开箱即用的越狱或盗版支持。",2,"2026-11-24 04:41:54","CREATED_QUERY"]