Tyranor-Next README

The project's README from github.com/Weiss-UltimateSavior/Tyranor-Next. As one markdown file: README.md.

Tyranor Next

基于 Tyranor 模拟器逆向重写 的多引擎视觉小说(Galgame)模拟器,面向 Android 平台。具体功能与兼容边界见 SPEC.md。

iOS版本计划中... 鸿蒙设备可使用卓易通安装 主打轻便、简单、快捷,不引入其他冗余功能的简约设计思路

企鹅群:364439133 感谢 @安音 为本项目绘画的logo娘!

默认主题界面(浅色)

Tyranor Next

三种不同风格主题(不包含深浅色模式对比)

Tyranor Next

多种个性化设置(部分展示)

Tyranor Next

更多拓展功能(部分展示,第三方插件支持见 docs/第三方APK运行时模块接入指南.md)

Tyranor Next

画面超分(共用画质滤镜链,历史配置截图;原理、接入范围与验证边界见 画质滤镜说明)

Tyranor Next

感谢各位贡献者们!一起成为光吧!

支持范围

引擎与游戏类型

游戏类型 典型识别特征 运行环境
Kirikiri / Kirikiri2 .xp3、startup.tjs Kirikiroid2 / krkrsdl3 原生运行时
ONScripter nscript.dat、.nsa ONScripter 原生运行时
Artemis system.ini、.pfs Artemis 原生运行时
SiglusEngine Gameexe.dat/Gameexe.ini、Scene.pck(根或 Data/) Siglus 原生运行时(siglus_rs)
RealLive 有效的 SEEN.TXT(检查全部 10,000 个目录项),或 Gameexe.ini + 非空 SEEN####.TXT 内置视觉小说运行时(game_launcher)
AVG32 Gameexe.ini + SEEN.TXT(PACL)或 SEEN###.TXT(TPC32) 内置视觉小说运行时(game_launcher)
UK2(PC-98) UK2.CFG、*.MES(<< UK2 TEXT Ver1.00 >> 头) 内置视觉小说运行时(game_launcher)
FVP *.hcb/*.bch 脚本、graph.bin/voice.bin 等资源包 内置 FVP 原生运行时(rfvp)
CMVS data/pack/script.cpz + start.ps3/ps2/pss,可在单游戏引擎设置指定启动配置 内置 CMVS 原生运行时(cmvs-rs,支持游戏内存档备注输入)
System35 *.ALD(SA.ALD 等;根目录或 GAMEDATA/)、System39.ain/System39.ini/*.wai/*.bgi/*.alk 内置 System3.x 运行时(xsystem35)
System4 System40.ini 或 AliceStart.ini(根目录;*.ain 为辅助特征) 内置 System4 运行时(xsystem4)
SystemNNN 游戏目录下的 spt/sys.spt(不区分大小写) 内置 SystemNNN-Emberfall 0.8.1(ARM64)
Ethornell / BGI 根目录的 system.arc(带 BGI 引导标记,且不与 UK2 冲突) 内置 Ethornell / BGI 运行时(libethornell.so)
YU-RIS yscfg.dat、pac/*.ypf、YS*.DLL、.ymv 外置宿主 APK(Tyranor-Next-YU-RIS)
CatSystem2 config/startup.xml、*.int、*.cst、*.hg3、*.kcs 等组合 外置 Winlator(winlator-cn)
PC(手动添加) 游戏页顶栏「添加 PC 游戏」选择目录并指定启动 exe(安装程序和崩溃处理程序排在候选最后,仍可手动选择) 外置 Winlator(winlator-cn)
TyranoBuilder index.html、tyrano/ 内置 Tyrano Web 运行环境
EasyRPG RPG Maker 2000/2003 的 RPG_RT.ldb + RPG_RT.lmt,或 EasyRPG 格式的 Easy_RT.edb + Easy_RT.emt(同一根目录,文件名不区分大小写) 外置 EasyRPG 宿主 APK(从引擎页下载)
RPG Maker XP .rgssad、Game.ini + Data/*.rxdata 外置 RPGM APK 模块
RPG Maker VX .rgss2a、Game.ini + Data/*.rvdata 外置 RPGM APK 模块
RPG Maker VX Ace .rgss3a、Game.ini + Data/*.rvdata2 外置 RPGM APK 模块
mkxp-z 用户选择/内部别名 internal.mkxp-z 外置 RPGM APK 模块
RPG Maker MV www/、js/rpg_core.js 内置 Web 运行环境(Tyranor-2.3.4 / TynMV-0.1 / TynMV-0.2)
RPG Maker MZ www/、js/rmmz_core.js 内置 Web 运行环境(Tyranor-2.3.4 / TynMZ-0.2)
VN globalData.vndata 内置 Web 运行环境
WebOther 通用 index.html 网页游戏 内置 Web 运行环境
Ren'Py .rpa、game/script.rpy、game/options.rpy、renpy/ + .rpy/.rpyc 外置 RenPy APK 模块(8.5.0 / 8.5.3 / 7.7.1;8.5.0 与 8.5.3 同包名,按所选版本下载安装),或 Ren'Py 8.6 运行时 APK(自动模式在游戏为 8.6 及以上时选用)
Ruffle / Flash 顶层 .swf;根 index.html/index.htm + 唯一 SWF 的叶子目录 外置 Ruffle APK 模块
Godot 3 / 4 共享存储中每个游戏目录放一个小写 .pck 游戏包,按文件头区分大版本 外置 APK 引擎模块(Godot 3 / Godot 4),也可从引擎页「主机」分类获取
MAGES.(impacto) 按精确大小写识别 profile,规则优先取自已安装的宿主:上游 profile 看根目录条目(如 mo6tw 的 SYSTEM.CPK、SCRIPT.cls),Windows/Steam 版《秋之回忆6》看根目录 game.exe 与 data/ 里的 script.cpk、mes00.cpk,Steam 版 STEINS;GATE 看 Game.exe 与 USRDIR/ 里的 script.mpk、system.mpk;像 MAGES. 但没有 profile 的目录列为「暂不支持」,可尝试运行 外置 Impacto 宿主 APK(引擎页点击跳转下载;Windows/Steam 版需宿主 0.2.0、STEINS;GATE 需 0.3.0 及以上)
ShiinaRio 根目录同时有 RIO.INI 和 WARC 1.0–1.7 的 .war 封包(文件名不区分大小写) 外置 ShiinaRio 宿主 APK(Android 11+、宿主 0.1.1+,从引擎页下载)
PSP .pbp、.cso、.iso、.chd 外置 PPSSPP 模拟器
Nintendo Switch .nsp、.xci、.nca、.nro 外置 Eden 模拟器

平台与文件要求

参与贡献

欢迎参与项目开发与维护!

在提交 Pull Request 前,请先阅读务必阅读遵守 贡献指南。 如果不符合贡献指南的要求,可能会被拒绝合并。 代码务必符合项目整体风格,避免引入新的问题。 提交前请务必使用项目内AGENTS.md文件内的审核方式进行提交前审核。 如果代码一眼丁真,一定拒绝合并。

技术架构

开发与维护文档:仓库规范 · 架构说明 · 功能规格与验收清单 · 领域术语 · 变更记录。专题方案与 .archify/ 图表保留其生成时的上下文;当前实现以源码及上述架构/规格说明为准。

可视化文档

.archify/ 下随仓库提供一组基于当前代码生成、经自动化校验(schema 校验 + 真实浏览器渲染检查)的交互式图表:均为自包含 HTML,浏览器直接打开即可缩放、检索/聚焦节点、切换深浅主题并导出图片;每个目录内同时保留可编辑的 candidate.json 源数据与校验回执,可配合 archify skill 重新渲染。

图表 类型 覆盖内容
系统总览 架构图 三层架构、主进程 / 引擎进程族边界、外置模块与模拟器、在线服务集成
引擎运行时与原生插件体系 架构图 插件供给链、宿主与 JNI 桥接、预编译运行库、Rust XP3 与 Web 壳
应用功能地图 功能图 六大功能域 × 18 项能力及对应实现组件
游戏扫描与入库流程 流程图 SAF 授权、目录遍历、引擎识别优先链、差量合并与 Room 落库
游戏启动编排流程 流程图 四级分流(安卓 / 模拟器 / 外置模块 / 内置引擎)与启动前确认
KiriKiri 启动请求时序 时序图 插件保障 → SAF 镜像 → Intent → JNI 桥接 → TVP 就绪全链路
游戏库数据与封面管线 数据流图 采集、识别、Room 权威存储、prefs 镜像、封面缓存与消费方
RPG Maker MV/MZ 存档生命周期 生命周期图 互通同步、格式转化、延迟回前台与中止等状态

构建

# 编译 Debug APK
./gradlew assembleDebug --no-daemon

产物位于 app/build/outputs/apk/debug/。需要 Android SDK(本地平台 android-37.0)环境。

CI 使用 JDK 17;还需 engine 的 Android 36 平台、Build Tools 37.0.0、NDK 28.0.13004108 与 CMake 3.22.1。Windows 使用 ./gradlew.bat。JVM 回归运行 ./gradlew testDebugUnitTest --no-daemon,完整检查命令与设备验收边界见 AGENTS.md。普通 Gradle 构建使用已提交的运行库,不自动重编所有原生引擎。

目录结构

app/
├── src/main/java/com/tyranor/next/
│   ├── core/      功能抽象层:扫描、启动、引擎模块、封面、游玩状态、存档、补丁、拆封包、配置、授权、网络(各域共享 HTTP 层)、更新
│   ├── ui/        界面 UI 交互层:主界面、游戏页、设置页、弹窗、公共组件
│   └── theme/     Compose / Miuix 主题、色调、深浅色适配
├── src/main/assets/rtp/    App 自有 RTP 资源
├── src/main/nativeplugins/ 插件 manifest 与 app-only 插件源头
├── build/generated/assets/ 构建生成的 engine/ 共享脚本与 nativeplugins/ 插件资产(.zip.xz)
├── schemas/                Room schema(随代码提交)
└── src/{test,androidTest,releaseProbe}/ JVM、设备与 release probe 测试

engine/
├── src/main/java/          底层引擎宿主、桥接代码与运行时入口
├── src/main/cpp/           本地编译的 Native/JNI 与图形桥
├── src/main/assets/        底层引擎资源与共享引擎脚本源头
├── src/main/nativeplugins/ 共享 Native 插件 so 源头
├── src/main/jniLibs/       预编译原生运行库(arm64-v8a)
├── src/test/              JVM 回归与 Node Web 桥 harness
└── rust/                   XP3 解封包 Rust 源码(xp3 解析与 KSD mode-2 隐性解码;许可证见 LICENSE.usefulunpack)

buildSrc/、tools/、.github/workflows/  构建校验、工具与 CI
docs/、.archify/                     专题方案、审查记录与可视化

许可证

本项目基于 GNU General Public License v2.0 发布(GPL-2.0-only),详见 LICENSE。

engine/ 引擎运行时基于 Tyranor 模拟器逆向重写,上游涉及 Kirikiroid2 / ONScripter 等 GPL-2.0 项目,因此整个项目以 GPL-2.0 分发;衍生作品须遵循 GPL-2.0 条款,并随发行物提供完整源码。Miuix 等第三方依赖按各自许可证引入;代码/资产级第三方声明汇总见 THIRD_PARTY_NOTICES.md。

运行库 上游 许可证 溯源与许可文本
Siglus / RealLive / AVG32 / UK2 siglus_rs MPL-2.0 88f9cee 构建来源与校验值、许可文本
FVP rfvp MPL-2.0 1f0c279 构建来源与校验值、许可文本
Ethornell / BGI ethornell-rs MPL-2.0 源码来源及许可、本地补丁
CMVS cmvs-rs MIT OR Apache-2.0 tools/cmvs/
SystemNNN SystemNNN-Emberfall(原版 SystemNNN 由 tinyan 开发) GPL-2.0-only 对应源码及构建记录、归属与许可
System35 xsystem35-sdl2 GPL-2.0-or-later engine/xsystem35/BUILD.md、engine/xsystem35/licenses/
System4 xsystem4 / libsys4 GPL-2.0-or-later engine/xsystem4/BUILD.md、engine/xsystem4/licenses/
Anime4K 着色器 bloc97/Anime4K MIT engine/src/main/assets/anime4k/
VN-SR C08 / C12 / C16 AAAA1111-Lab/VN-SR MIT VN-SR滤镜集

System35 / System4 的源码取自对应 fork(固定 commit),构建剧本、补丁记录与静态依赖(SDL2、freetype、libwebp、libsndfile 等)的完整许可证文本见上述 BUILD.md 与 licenses/ 目录。

System4 运行时包含 libjpeg-turbo;依 IJG 许可要求,随分发文档声明:This software is based in part on the work of the Independent JPEG Group.(原文见 engine/xsystem4/licenses/README.ijg,许可说明见 engine/xsystem4/licenses/libjpeg-turbo-LICENSE.md)

致谢

Tyranor-Next (Weiss-UltimateSavior/Tyranor-Next)

Searching Database…

What is this?Tyranor Next is a multi-engine visual novel (Galgame) launcher for Android. Its engine runtime is a reverse-engineered rewrite based on the Tyranor emulator, and it bundles native runtimes for Kirikiri, ONScripter, Tyrano and Artemis, plus library management, cover fetching, save mirroring, and engine tuning.
Does it run every visual novel engine natively, or does it rely on external modules too?Kirikiri, ONScripter, Artemis and Tyrano run through built-in native/web runtimes, while Ren'Py and RPG Maker XP/VX/VX Ace run through separately installed external APK engine modules. RPG Maker MV/MZ use the built-in web runtime instead.
How do I point it at my games?You grant access to your game folder through Android's Storage Access Framework (SAF) file picker; the app then scans and auto-identifies the engine type from the folder contents.
Do I need to install anything extra for Ren'Py or classic RPG Maker games?Yes, Ren'Py and RPG Maker XP/VX/VX Ace/mkxp-z games run through separate external APK modules that you must install; until installed, that engine entry shows a cross mark and prompts you to download it.
Will this run on any Android phone?No, the native engine libraries currently ship arm64-v8a only, so you need a 64-bit ARM device on Android 8.0 (API 26) or higher; actual game compatibility still depends on the specific engine version, packing/encryption, and script variant used.
What's the catch with the GPL-2.0 license?The engine runtime is reverse-engineered from GPL-2.0 projects like Kirikiroid2 and ONScripter, so the whole app is GPL-2.0 and any derivative must ship full source; the bundled Anime4K shaders are a separate MIT-licensed exception.
What happens when I try to launch a PSP or Switch game?The launcher detects it and hands off to an external emulator (PPSSPP for PSP, Eden for Switch) instead of running it through its own engine runtimes.
What else can I do besides just launching a game?It also handles game library management, cover art fetching, save file (archive) mirroring, and per-game or per-engine parameter tuning.
Why is it called Tyranor Next?Its engine runtime and core architecture are a reverse-engineered rewrite based on the original Tyranor emulator, with scanning and SAF path-mapping logic adapted from the RinneMobile project.
Does it do anything to improve old game graphics?Yes, it bundles the Anime4K GLSL shaders (MIT-licensed, from bloc97) for real-time line-reconstruction super-resolution upscaling of Kirikiri game visuals.
Size
281.5 MB
Stars
898
Updated
CommitNov 18
Age
3mo
Commits · 90 Days