Skip to content

Releases

2026-11-06 · 装了 Nivarian Race 时的闪退:修好了 WhiteFallback 异常,GPU 设备丢失很可能也一起好了

Choose a tag to compare

@samilry samilry released this 06 Nov 03:16

游戏版本 1.7.4998(1.7.4982 起的旧版本也能用)· 当天的提交 · 当天结束时的代码

修复

  • 装了 Nivarian Race 时会闪退:开着它的研究窗口时 GPU 设备丢失,或者从后台切回游戏时报“Texture 'Core.WhiteFallback' does not have a sampled GPU image”。
    • 材质里空着的贴图位,引擎会用白色的兜底贴图(普通的和数组的各一张),所有渲染器共用;可渲染器被释放时会把它们一起释放掉。原版游戏只在退出时释放渲染器,所以碰不到。
    • Nivarian 自带的 RimUnity 有自己的渲染器:屏幕特效播完时会释放;画面重建时(手机上每次从后台切回来都会重建),连同它画 HDR 地图的那个一起释放。之后地图等渲染器还指着已经释放的图:读到它可能让 GPU 设备丢失,测试者 Adreno 上的设备丢失很可能就是这个原因;重新准备材质时找不到它,就抛出上面的异常。
    • 现在渲染器被释放时只放开这两张公用的兜底贴图,不再销毁;引擎退出时照常释放。mod 本身没动。
    • 在测试包上模拟 RimUnity 释放一个渲染器:改之前 17 毫秒后就报同样的异常退出;改之后两张兜底贴图都还在,接着三倍速运行、切后台再回来(画面重建了两次),都没有错误。
    • 设备丢失本身在开发机上没能重现(先走到了异常),是否也一起好了,要等测试者用新包确认。

English: crashes with Nivarian Race: the WhiteFallback exception fixed, the GPU loss very likely too

Game 1.7.4998 (older builds from 1.7.4982 on also work) · Commits · Code at the end of the day

Fixed

  • With Nivarian Race the game crashed: the GPU was lost while the mod's research window was open, or "Texture 'Core.WhiteFallback' does not have a sampled GPU image" ended it on a return from the background.
    • For a material's empty texture slots the engine binds white fallback textures (a plain one and an array one) that all its renderers share, yet a renderer that is let go disposes them. The game lets its own renderers go only when it quits, so the game alone never meets this.
    • RimUnity, which comes with Nivarian, lets its own renderers go: the screen effects' ones when an effect has finished, and those and its HDR map renderer whenever the picture is rebuilt (on the phone at every return from the background). The map's renderers still pointed at the freed image: reading it can lose the GPU, which is very likely what happened on a tester's Adreno, and materials prepared afterwards found no image and raised the exception.
    • A renderer that is let go now only drops its hold on the two shared fallbacks instead of disposing them; the engine still frees them when it quits. The mod is unchanged.
    • Checked on the test package by letting a renderer go the way RimUnity does: before the fix the same exception ended the game 17 ms later; after it both textures kept their image, and the game ran on at 3× speed, went to the background and came back (rebuilding the picture twice) without an error.
    • The GPU loss itself did not happen on the development phone (it met the exception first); whether it is gone too waits for the tester.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-11-04 · 适配 1.7.4998,导入时认出压缩包里套的压缩包

Choose a tag to compare

@samilry samilry released this 04 Nov 02:33

游戏版本 1.7.4998(1.7.4982 起的旧版本也能用)· 当天的提交 · 当天结束时的代码

适配 1.7.4998

  • Ludeon 运行时“替换方法体”的接口改了:性能分析器给方法计时改走一条新的改写管线,游戏自带的 Prepatcher 兼容层(4995 起就有)运行 mod 的“free patch”(直接改游戏代码)也换用了新的成员。两样照旧都要靠 Ludeon 改过的运行时来替换方法体。
    • 4998 新引用的 6 个类型和 32 个成员都补了替身,按电脑上运行时不能替换方法体时的样子处理:分析器照常能开能关,只是没有方法计时;有 mod 用 free patch 时,日志里会有一行说明,这些补丁不生效。
    • 4998 对 WaylithClr 的 92 处引用都对得上。
  • 引擎自己的帧率限制等待变精确了:先睡到下一帧前一点,再看着时钟等到点,提前量按睡眠晚醒的程度调整(最近 128 次里的第 95 百分位,限制在 25–500 µs)。以前引擎只能睡整毫秒、再空转等,移植层把这段等待换成了自己的;在 4998 上改用引擎的,旧版本照旧用移植层的。
    • 新的等待第一次用到时,会用原始系统调用直接调 sched_getattr,成功后再调 sched_setattr。安卓只让应用用一部分系统调用,不允许的会让游戏直接退出。这两个调用从安卓 8.0 起就在应用允许的名单里(安卓源码 bionic 的 seccomp 名单),支持的安卓版本都不会拦;手机上调用它们的代码也确实执行了,游戏照常运行。
  • 引擎修好了“列不出文件夹时找不到里面的文件”(安卓上 Android/data 就列不出来)。移植层原来自己补过这个问题,现在只在它知道的路径经过的文件夹里起作用,其他列不出的文件夹交给引擎去查。
  • 验证:4998 上进主菜单,读一个 250×250 的存档,用三倍速运行(每秒约 360 刻),性能分析器开了又关,都没有移植层的报错。

改进

  • 导入游戏时,选的压缩包或文件夹里套着别的压缩包,现在会接着处理或说清楚:
    • 有人选的 RimWorld.zip 里只有一个 RimWorld.rar,游戏文件都在 rar 里。导入只说“没有找到游戏文件”,看起来像是不认 zip 了;其实手机上的导入一直解不开 rar。
    • 没找到游戏时,会看一下里面 100 MB 以上最大的压缩包:是 zip 就自动再解开一层,接着导入;是 rar、7z 或 exe(自解压包),就说出是哪个文件、多大,并说明可以用手机的文件管理器解压成文件夹后选“文件夹”,或者在电脑上把游戏文件夹直接压缩成 zip。
    • 选成了 RimWorld 的存档和设置文件夹时(里面有 Saves、Config),会说明这不是游戏本体,游戏在 Steam 的 steamapps/common/RimWorld 文件夹里;存档要进游戏以后在“载入”页面用“导入存档…”导入。

English: RimWorld 1.7.4998, archives inside the chosen zip

Game 1.7.4998 (older builds from 1.7.4982 on also work) · Commits · Code at the end of the day

RimWorld 1.7.4998

  • Ludeon's runtime interface for replacing method bodies changed: the profiler's method timing now goes through a new rewriting pipeline, and the game's own Prepatcher layer (there since 4995) runs mods' "free patches", which change the game's code directly, through new members. Both still need Ludeon's runtime to replace method bodies.
    • The phone gets stand-ins for the 6 new types and 32 new members 4998 refers to, which behave as Ludeon's runtime does when it cannot replace method bodies: the profiler still switches on and off, without method timing, and when a mod has free patches, the log says so in one line and they do not apply.
    • All 92 WaylithClr references of 4998 resolve.
  • The engine's own wait for the frame rate limit is now precise: it sleeps until shortly before the next frame, then waits on the clock, with a margin learned from how late its sleeps end (the 95th percentile of the last 128, kept within 25–500 µs). The engine used to sleep whole milliseconds and then spin, and the port replaced that wait with its own; on 4998 the engine's is kept, and older builds keep the port's.
    • The first time it is used, the new wait calls sched_getattr through a raw system call and, if that succeeds, sched_setattr. Android lets apps use only some system calls, and any other one ends the game at once. Both have been on Android's allowlist for apps since 8.0 (bionic's seccomp lists), so no supported Android version blocks them; on the phone the code making these calls ran and the game kept going.
  • The engine now handles folders it cannot list (Android/data is one on Android), where files below used to go missing. The port had its own fix for this; it now steps in only for folders on the paths it knows, and leaves other unlistable folders to the engine.
  • Checked on 4998: the main menu, a 250x250 save at 3× speed (about 360 ticks a second), and the profiler switched on and off, with no errors from the port.

Improved

  • When the chosen zip or folder holds another archive instead of the game, the import now goes on or says what to do:
    • Someone chose a RimWorld.zip that held only RimWorld.rar, with the game inside the RAR. The import only said that no game files were found, which looked as if zips were no longer read; the phone's import has never unpacked RAR.
    • When the game is not found, the biggest archive over 100 MB inside is looked at. A zip is unpacked as well and the import goes on. A RAR, 7z or EXE (self-extracting) is named with its size, with the way on: unpack it into a folder with the phone's file manager and choose "folder", or zip the game folder on the PC.
    • RimWorld's own save and settings folder (with Saves and Config) is named as such: it is not the game, which is in Steam's steamapps/common/RimWorld; saves go in through the load page's "Import saves..." (导入存档…) once in the game.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-11-03 · 自定义按键盘里可以加鼠标左右键,记录问题可以写说明,mod 资源包按工坊编号查找

Choose a tag to compare

@samilry samilry released this 03 Nov 05:04

游戏版本 1.7.4995(1.7.4990 也能用)· 当天的提交 · 当天结束时的代码

新增

  • 自定义按键盘里又可以加鼠标左键、右键了,屏幕上单独的两个圆钮照样保留。
    • 在按键盘的“设置”里,从“手机按键”添加“鼠标左键”“鼠标右键”。
    • 用法和圆钮一样,两边共用一个状态:点一下“右键”只对下一次触摸生效,按住约半秒锁定,点“左键”回到左键。
    • 在按键盘里切换成右键以后,这一圈按键会自动收起,方便直接点地图上的目标。
    • 在选项里关掉两个圆钮以后,只用按键盘里的也行。
  • “记录问题”可以写说明了:截图和运行数据存好以后,屏幕上方弹出输入框,测试者可以写几句刚才发生了什么。
    • 截图里不会有这个输入框。写的时候游戏暂停,最多 1000 字。
    • 点“保存说明”或按返回键保存;点“不写了”只留截图和数据。
    • 说明和那次的截图、数据存在一起。导出日志时,摘要文件开头列出最近几次记录的时间和说明。
  • 崩溃报告能写出崩在哪个方法里了。
    • 有一类闪退发生在游戏运行时编译出来的代码里,报告里原来只有一个地址。
    • 现在出过一次原生崩溃后的三天里,每次启动时运行时都会记下它编译的方法;再崩在这类代码里,报告会写出是哪个方法,mod 的 Harmony 补丁生成的方法也认得出来。
    • 这几天启动会慢 3% 左右,平时不记。

修复

  • 有些 mod 资源包里的特效、贴图和音效找不到。比如 Milira Imperium 的护盾被画成一个不透明的白盘,中间一道道横纹,测试者以为是花屏。
    • 这些 mod 的作者打资源包时,按电脑上创意工坊给这个 mod 的文件夹存放里面的东西,文件夹名就是它的工坊编号;游戏也按 mod 的文件夹名(或 packageId)去包里找。
    • 手机上的 mod 放在导入时的文件夹里,名字不一定是编号(有位测试者的不少 mod 放在“updated-数字”这样的文件夹里),于是什么也找不到,着色器退回成引擎默认的。
    • 现在按文件夹名找不到时,会再按这个 mod 的工坊编号找一次,和电脑上一样;按文件夹整批取的贴图和音效也一样。文件夹不用改名,mod 的设置也不受影响。

English: mouse keys on the key wheel again, a description for "record a problem", mod asset bundles found by Workshop id

Game 1.7.4995 (1.7.4990 also works) · Commits · Code at the end of the day

Added

  • The key wheel can hold left and right mouse keys again. The two separate on-screen buttons stay.
    • The keys are added in the wheel's setup, among the phone keys.
    • They work like the separate buttons and share their state: a tap on "right" applies to the next touch only, a half-second hold locks it, and "left" goes back to left clicks.
    • Once "right" is switched on from the wheel, the ring closes, so the whole map is free for the click.
    • With the separate buttons switched off in the options, the wheel's keys work on their own.
  • "Record a problem" now asks for a description. After the screenshot and the game's state are saved, a text box opens at the top of the screen.
    • The box is not in the screenshot. The game pauses while the tester writes, up to 1000 characters.
    • "Save" or the back key keeps the words; "Skip" keeps only the screenshot and the data.
    • The words are stored with that moment's screenshot and data. The summary of the exported logs starts with the recent marked moments and what was written about each.
  • Crash reports can name the method a crash happened in.
    • Some crashes happen in code the runtime compiled while the game ran, and the report used to show only an address there.
    • For three days after a native crash, the runtime lists the methods it compiles in every run. If the game crashes in such code again in those days, the report names the method, including methods made by mods' Harmony patches.
    • Starting takes about 3 % longer on those days; otherwise nothing is listed.

Fixed

  • Effects, textures and sounds in some mods' asset bundles were not found. Milira Imperium's shield, for example, was drawn as an opaque white disc with stripes, which a tester took for screen corruption.
    • These mods' authors build their bundles with paths under the folder the Workshop gives the mod on the PC, named after its Workshop id, and the game looks things up under the mod's folder name (or its package id).
    • On the phone a mod keeps the folder it was imported with, which need not be its id (many of one tester's mods were in "updated-" folders), so nothing was found and the shader fell back to the engine's default.
    • A name not found under the folder is now looked up under the mod's Workshop id as well, as on the PC, and so are folders of textures and sounds. Folders keep their names, and mod settings are not affected.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-11-02 · 适配 1.7.4995,源码公开,可复现构建

Choose a tag to compare

@samilry samilry released this 02 Nov 08:13

游戏版本 1.7.4995(1.7.4990 也能用)· 当天的提交 · 当天结束时的代码

新增

  • 鼠标左键、右键从“按键”圆钮里拆出来,成了两个单独的圆钮。两个圆钮都能拖到任何位置,位置会记住。
    • 点一下“右键”,只对接下来那一次触摸生效。
    • 按住“右键”约半秒,锁定成右键;再点一下解锁。
    • 接鼠标时两个圆钮自动隐藏,选项里也可以关掉。
  • 主菜单提示 mod 更新:登录过创意工坊的话,每天第一次进主菜单时在后台查一次。有更新时显示“N 个 mod 有更新”,点一下会打开创意工坊窗口,并勾好要更新的 mod。不会自己下载,选项里可以关掉。
  • 手机自带的「文件」应用里能看到游戏的两个文件夹:存档和设置、Mod。
    • 拷进拷出不用接数据线,其他应用的文件选择器里也能选到。
    • mod 里“打开文件夹”的按钮,会直接在这里打开。

修复和改进

  • 文字输入:
    • 点输入框外面时,等这次点击处理完再收起键盘,“插入变量”一类按钮因此能用了。
    • mod 的起名框不再自己弹出键盘。收起键盘后,mod 也不会再把它弹出来。
    • Phinix、RimTalk 的对话框里,按键盘上的“完成”就是发送。
  • DragSelect:长按看了提示再拖,起点那一格也会选上,和电脑上按住鼠标停一下再拖一样。
  • 地图里的声音按电脑版的方式分左右声道。
  • 启动时的防内联重建,只重建真正可能出问题的方法。负责人的手机上,这一步从约 4 秒降到约 1.8 秒。
  • 创意工坊窗口关掉马上再打开,不会再一直卡在“正在连接”。

适配 1.7.4995

  • 新版游戏导入手机后一启动就退出。补上了三处:
    • 运行时新加了“字段注入”功能,按电脑上关掉这个功能时的样子处理。用到它的 VEF 会走自带的备用写法。
    • 声音库新增了设备看门狗。顺带的好处是蓝牙耳机断开或切换后,声音会自己恢复。
    • 开发者工具的帧分析器换了新的计时方式。
  • 游戏程序集用到另一个程序集里不公开的类型时,像电脑上一样跳过访问检查。Melee Animation 在 4995 上的补丁失败就是这么修好的。

源码公开和构建

  • 源码以 MIT 许可公开到 GitHub,附中英文 README 和技术文档。公开的历史里去掉了三样东西:私有的开发记录、含游戏截图的测试指南、签名密码。
  • 可复现构建:新增 BUILDING.md(中英文)、host/fetch-deps.sh(按固定版本下载全部依赖,并核对 SHA-256)、host/env.sh、host/build-all.sh 和 .gitattributes。
    • 从 GitHub 克隆后从零构建:下载约 7.5 分钟,构建约 8 分钟。测试者包里的 193 个文件和开发机的构建逐字节相同。
    • 编出的包装到手机上,导入游戏后 27 秒进主菜单。
  • 游戏更新后,开发用的 Unity 类型转发程序集会重新生成。
  • 新增这份更新日志。

English: RimWorld 1.7.4995, public source, reproducible build

Game 1.7.4995 (1.7.4990 also works) · Commits · Code at the end of the day

Added

  • Left and right mouse buttons are now two separate on-screen buttons, taken out of the key wheel.
    • Each can be dragged anywhere, and its place is remembered.
    • A tap on "right" applies to the next touch only; a half-second hold locks it.
    • They hide while a mouse is connected.
  • Mod update notice on the main menu: once a day, the installed Workshop mods are checked in the background. A click opens the Workshop window with the outdated mods ticked; nothing downloads by itself.
  • The game's folders (saves and settings, mods) appear in the phone's Files app through a DocumentsProvider. Mods' "open folder" buttons open them there.

Fixed and improved

  • Text input:
    • A tap outside a text field is handled before the keyboard closes.
    • Naming fields in mods no longer open the keyboard by themselves.
    • Mods can no longer reopen the keyboard after it was closed.
    • "Done" sends in the Phinix and RimTalk dialogs.
  • DragSelect selects the starting cell after a hold, as on the PC.
  • Map sounds are panned left and right the way the PC does.
  • The inline guard rebuilds only the methods that can actually be affected (startup step about 4 s → 1.8 s on the owner's phone).
  • Reopening the Workshop window right after closing it no longer hangs at "connecting".

RimWorld 1.7.4995

  • The new game build quit at startup on the phone. Three stand-ins fix it:
    • field injection, handled as the PC behaves with that feature switched off (VEF uses its own fallback path);
    • the audio device watchdog, which also brings sound back after Bluetooth headphones disconnect or switch;
    • the profiler's new clock.
  • A game assembly that uses another assembly's non-public types skips access checks, as on the PC. This fixes Melee Animation's patches on 4995.

Source and build

  • The source is published on GitHub under the MIT license, with READMEs in Chinese and English and a technical write-up. Three things are left out of the public history: the private development log, the tester guide (it has game screenshots), and the signing password.
  • Reproducible build: BUILDING.md, host/fetch-deps.sh (pinned versions, SHA-256 checked), host/env.sh, host/build-all.sh and .gitattributes.
    • A fresh clone built from nothing gave a tester APK whose 193 payload files are byte-identical to the development build.
    • On a phone it reached the main menu 27 s after importing the game.
  • Unity type-forwarding facades are made again after a game update.
  • This changelog.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-10-30 · mod 兼容性和电脑版逐项对照

Choose a tag to compare

@samilry samilry released this 02 Nov 08:13

游戏版本 1.7.4990 · 当天的提交 · 当天结束时的代码

修复

  • 拖动或点选后按“确定”的工具(采矿、拆除、砍树、区域、墙等),以前按“确定”时会把几次操作合成一次交给游戏。有的 mod 只会一次处理一处,合在一起就出错。现在按先后一次一处地交,和电脑上每松手一次交一次一样。
  • 启动时清空 Harmony 日志的 mod(例如 Change DevSpeed)以前会报错,因为 Harmony 的日志放在“桌面”文件夹里,手机上没有这个文件夹。现在启动时在游戏自己的文件夹里建好它。

和电脑版逐项对照后补齐的

  • 长按看提示后松手,不会再点下 DragSelect 的按钮。以前会改掉工作面板的格子、账单、交易数量。
  • 直接用引擎滚动区画的 mod 列表现在也能用手指滑,带惯性。例如开局选人、RimTalk 的事件过滤、Adaptive Storage 的编辑器。
  • 装了 Smart Speed 时,它的五个时间按钮也放大到手指能点的大小。
  • 开着“避开摄像头挖孔”时,Vanilla Gravship Expanded 的面板会跟着建筑菜单一起挪开。
  • 防内联重建补齐到运行时真正会内联的全部范围。以前一个 mod 改了某个小方法后,调用它的地方有时还在用旧版本;电脑上一定会用新版本。
  • 少数 mod 的补丁写法在电脑上能用,在手机上会整个失败,例如在 try 里 return、跳出 try、返回值下面多压了值。现在按电脑的方式处理。
  • mod 撤掉“所有人的补丁”时(例如 RimHUD 启动出错时会这样做),移植层自己的修正保留不撤。
  • mod 报错的堆栈里带“文件:行号”(mod 自带 PDB 时),和电脑一样。
  • RimUnity 的 .rimunity 文件只准备一次,不再每次启动都重新准备。
  • 从内存加载、并且标着只给 x86 用的程序集,和文件一样自动修正。
  • MonoMod 写完补丁代码后,刷新处理器的指令缓存。
  • 反射写 static readonly 字段、按 Mono 的名字找框架的私有字段,和电脑版运行时一样允许。
  • 卸载时安卓会问要不要保留数据(存档、设置、mod)。以前不问,直接全删。
  • 用特殊方式加载的 mod 调用 Windows 剪贴板一类功能时,也能找到替代库。
  • 启动时建好“文档”“图片”“.config”等用户文件夹,放在游戏自己的文件夹里。
  • mod 的网络请求走手机设置的代理,就像电脑上走 Windows 的代理。
  • Mod 页面里“缺少依赖”的链接和 mod 的“创意工坊”按钮,会打开游戏里的创意工坊窗口,登录后能直接下载。
  • 导入的 mod 和已有的 mod 用同一个 packageId、实际却是另一个 mod 时,两个都保留。以前会直接覆盖掉原来那个。“删除 Mod…”里可以删掉没列出的重复 mod。
  • 单声道的界面音效按电脑的方式处理。以前比电脑响约 3 dB,也不分左右。
  • 表情和符号(📷 🚀 ✔ 等)不再显示成方框,和电脑一样画成单色轮廓(Noto Emoji)。

English: mod compatibility checked against the PC, item by item

Game 1.7.4990 · Commits · Code

  • Drag and tap tools with a confirm button (mine, deconstruct, cut, zones, walls) now hand each tap or drag to the game separately, in order, as the PC does on each release. Some mods fail when several are merged into one.
  • A Desktop folder is created inside the game's folder for mods that reset Harmony's log there.
  • Releasing a hold no longer presses DragSelect's buttons.
  • Mod lists drawn with the engine's own scroll views scroll by finger, with momentum.
  • Smart Speed's buttons are finger-sized.
  • With cutout avoidance on, Vanilla Gravship Expanded's panel moves with the architect menu.
  • The inline guard covers everything the runtime really inlines, so a mod's patch to a small method always takes effect.
  • Patch shapes that work on the PC are handled the same way on the phone: a return inside a try block, leaving a try block, extra values under the return value.
  • The port's own fixes survive when a mod unpatches everything.
  • Stack traces show file and line, as on the PC (when the mod ships a PDB).
  • .rimunity files are prepared once.
  • x86-flagged assemblies loaded from memory are fixed like files.
  • MonoMod flushes the instruction cache.
  • Reflection rules now follow the PC's runtime: writing static readonly fields, finding framework private fields by their Mono names.
  • Android asks whether to keep data (saves, settings, mods) on uninstall.
  • Stand-in libraries are found for mods loaded in special ways.
  • User folders (Documents, Pictures, .config) exist inside the game's folder.
  • Mods' web requests use the phone's proxy.
  • "Missing dependency" links and Workshop buttons open the in-game Workshop window.
  • Two different mods with the same packageId are both kept on import.
  • Mono interface sounds follow the PC's level and panning.
  • Emoji draw as monochrome outlines (Noto Emoji) instead of boxes.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-10-29 · 着色器编译器和电脑版一致,第三批电脑版对照

Choose a tag to compare

@samilry samilry released this 02 Nov 08:13

游戏版本 1.7.4990 · 当天的提交 · 当天结束时的代码

着色器

  • mod 可以自带着色器源码,由游戏当场编译。现在手机上的编译器换成和电脑版同一个:Slang 2026.19 本身,从源码为安卓编译。
    • 拿游戏自带的和三个 mod 的着色器对照,电脑能编的 371 个,手机输出的 SPIR-V 逐字节相同。
    • 安装包大了约 15 MB。编译器工作时约占 250 MB 内存,编完 10 秒后释放,同时只开一个。
  • 换编译器之前先修了一处:有的 mod 着色器把关键字当变量名用,电脑能编过,手机上会失败。现在换个名字再编译,日志里还会写出出错的那一行源码。

和电脑版对照补齐的

  • mod 里用 Windows 反斜杠写的路径(例如 \Sounds\Songs),准备 mod 时改成 /,和电脑的读法一样。以前在手机上建出的带 \ 的文件夹和文件,启动时会搬到正确的位置。
  • 文字的区域规则(排序、比较、规范化、日期和数字格式)改用手机系统自带的 ICU,和电脑版一样。安装包没有变大,启动多约 1.6 秒。
  • 读档窗口新增“导出存档…”:可以导出一个存档,也可以把全部存档打成一个 zip,放到手机的“下载/RimWorld”文件夹。
  • mod 交给系统打开的链接和文件夹:网址用浏览器打开,文件夹会弹一条消息,说明它在哪里。
  • BinaryFormatter 用微软官方兼容包里的完整实现,和电脑版游戏带的一样。
  • 游戏和 mod 读到的处理器名称,从 “Unknown” 改成芯片型号。
  • 游戏自带的截图(F10)同时存一份到相册。

修复

  • 接实体键盘时,点过任意输入框之后,字母都被输入法拿去拼音,游戏收不到按键。现在输入框失去焦点时,让输入法断开。
  • 一次导入一百多个 mod 时,内存涨到 4.5 GB,回收时频繁卡顿。现在每个 mod 处理完就放掉读进来的程序集。
  • 同一个程序集名加载两次时,像电脑版运行时一样直接返回已经加载的那个,不报错。例如 CeleTech Arsenal 在 backup 文件夹里带了旧版的副本。
  • PurePatcher(1.7 的 Prepatcher)需要游戏文件夹里有系统程序集,第一次打开时复制一份过去(约 60 MB)。它要求重启时,游戏会自动重启。
  • “避开摄像头挖孔”也作用于主菜单。

English: the PC's shader compiler, third round of PC parity

Game 1.7.4990 · Commits · Code

  • Shaders that mods bring as source are now compiled on the phone by Slang 2026.19 itself, the compiler the PC game uses, built for Android from source.
    • Of 372 shaders, the 371 the PC compiles come out as byte-identical SPIR-V.
    • The APK grows by about 15 MB. The compiler uses about 250 MB while it works and is unloaded 10 s later.
  • Mods' Windows-style backslash paths are rewritten to / when mods are prepared. Files that were created with backslashes in their names are moved to the right places.
  • Culture rules come from the phone's system ICU, as on the PC: sorting, comparison, normalization, date and number formats.
  • "Export save…" in the load window: one save, or all saves as a zip, to Download/RimWorld.
  • Links and folders that mods hand to the system: web addresses open in the browser, and folders show where they are.
  • The full BinaryFormatter from Microsoft's compatibility package.
  • The real chip name in SystemInfo.processorType.
  • F10 screenshots are also saved to the gallery.
  • A hardware keyboard stays with the game after a text field loses focus.
  • Importing 100+ mods no longer climbs to 4.5 GB.
  • Loading an assembly name twice returns the one already loaded, as on the PC.
  • PurePatcher gets the framework assemblies it expects in the game folder.
  • Cutout avoidance also applies to the main menu.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-10-28 · 字体线程闪退,线程栈,缺失程序集替身

Choose a tag to compare

@samilry samilry released this 02 Nov 08:13

游戏版本 1.7.4990 · 当天的提交 · 当天结束时的代码

  • 加载时或界面文字很多时,偶尔会在 libimgui_freetype.so 里闪退。原因是主线程画字的同时,别的线程(例如 mod 加载时量文字尺寸)也在用同一个字体生成字形,双方会互相清掉对方的数据。现在生成字形时排队。
  • 较老的 Adreno 显卡(骁龙 8+、8 Gen 1 等)上,用显卡压缩 mod 贴图时,驱动可能报设备丢失,然后闪退。现在只要出现过一次,之后 7 天的启动都改用 CPU 压缩。
  • 一个 mod 引用了另一个 mod 的程序集,却排在它前面时,移植层会先放一个空的“替身”,让它像电脑上一样报“找不到类型”。以前轮到被引用的 mod 加载时,替身被误当成已经加载过,真正的程序集反而被跳过。现在真正的程序集照常加载,和电脑一致。
  • 游戏和 mod 自己开的线程(读档和启动时的加载线程、线程池等)以前只有 1 MB 栈,电脑上是 1.5 MB。现在和主线程一样是 16 MB。这只占地址空间,不多用内存。
  • 安卓上的运行时把栈溢出的位置写进系统日志,而不是 stderr。崩溃报告现在把它抄进来。
  • 屏幕矮的时候,装备页滑下去再点一下列表,会跳回顶部。已修复。

English: font crash, thread stacks, stand-in assemblies

Game 1.7.4990 · Commits · Code

  • An occasional crash in libimgui_freetype.so: two threads were making glyphs for the same font at once. Glyph making now takes turns.
  • After a GPU device loss while compressing textures, older Adreno GPUs compress on the CPU for 7 days.
  • A stand-in assembly made for a mod that loads early could block the real assembly from loading later. The real one now loads, as on the PC.
  • Threads that the game and mods start get 16 MB stacks, the same as the main thread. They had 1 MB; the PC gives 1.5 MB.
  • Crash reports pick up stack-overflow locations from the system log.
  • The gear tab on short screens no longer jumps back to the top when tapped.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-10-27 · 游戏更新到 1.7.4990,兼容模式,日志和崩溃报告

Choose a tag to compare

@samilry samilry released this 02 Nov 08:13

游戏版本 1.7.4990(1.7.4985 也能用)· 当天的提交 · 当天结束时的代码

适配 1.7.4990

  • 新版把几个引擎类型挪了位置,查找备用字体的方式也换了。移植层加了适配,4985 和 4990 两个版本都支持。

新增

  • 设置 → 界面 →“兼容模式”(重启后生效):关掉移植层为手机做的所有界面布局调整,用来判断界面问题是不是移植层造成的。
  • 日志里自动标出“移植层和 mod 可能冲突”的错误:报错的调用链里同时有移植层和某个 mod 时会标记。
  • 打开安卓自带的内存错误检测 GWP-ASan(安卓 11 及以上),用来排查原生闪退。
  • 日志和崩溃报告更详细:
    • summary.txt:错误按内容归类计数。
    • mods.txt:每个 mod 的 packageId、支持的版本和加载顺序。
    • watch.txt:加载阶段的内存和卡顿记录。
    • 原生崩溃时,写明出错的地址属于哪块内存。
  • MP4 视频可以播放了,用安卓的 MediaCodec 解码。
  • 支持 KTX / KTX2 格式的贴图。mod 着色器里用了 common 之类的变量名时,手机上以前编译失败,现在能编过。
  • 手机剪贴板和游戏互通。主菜单和 mod 里的网页链接,会用手机浏览器打开。
  • 导入的游戏比安装包适配的版本新时,启动时提示先更新安装包。

修复

  • 装上 Readable Numbers 后,整个界面消失:这个 mod 包装了游戏的界面后端。已修复。
  • Mali 手机上 mod 特别多时,ASTC 贴图缓存满了就再也存不进新贴图,旧缓存的清理也不会触发。现在快满时先清掉最久没用的部分,缓存大小按剩余存储空间调整。
  • 有 mod 的补丁在设置 → 界面这一页出错时,页面后半截不见了。现在移植层自己的选项照样显示。
  • 右下角的速度按钮变回了电脑版的小尺寸。已恢复成手指能点的大小。
  • mod 很多时,在 Mod 配置页来回滑动可能闪退(ImGui 的检查失败)。已修复。
  • 数字格式和电脑版一致(以前会显示 0.30000000000000004 这样的长小数)。
  • 主线程的栈从 1 MB 提高到 16 MB(电脑版是 1.5 MB)。
  • 游戏更新后,有的字段挪进了父类。按旧版编译的 mod 在电脑上照样能用,手机上以前会报“找不到字段”。现在 mod 准备规则会处理它(规则第 13 版)。
  • mod 里引用其他(没安装的)mod 的代码,在电脑上由 mod 自己的错误处理接住。现在手机上也一样。
  • mod 引用了比游戏里更新的库版本时,和电脑一样用现有版本。
  • 游戏因 mod 出错自动停用所有 mod 时,把原因写进 Port17.log。日志里还会记下每个官方内容和 mod 读到、缺了多少贴图和声音。
  • 在最近任务里划掉游戏后,下次打开不会再误报“上次异常退出”。
  • 自己画操作按钮的 mod 放置工具(例如 Ascension Megacorp 的空投部署),也有“确定 / 取消”。
  • 用 34 个热门界面 mod 做了自动冒烟测试,没有发现移植层报错。

English: RimWorld 1.7.4990, compatibility mode, better reports

Game 1.7.4990 (1.7.4985 also works) · Commits · Code

  • Support for 1.7.4990: an adapter for engine types that moved, and the new font fallback. 4985 and 4990 both work.
  • New compatibility mode: it turns off every layout change the port makes, to tell whether an interface problem comes from the port.
  • Errors that show both the port and a mod on the stack are marked as possible conflicts.
  • Crash reports now include:
    • summary.txt, the log's errors grouped by message;
    • mods.txt, each mod's packageId, supported versions and load order;
    • watch.txt, memory and stalls while loading;
    • for native crashes, the memory region of the faulting address.
  • GWP-ASan is enabled.
  • New: MP4 playback through MediaCodec, KTX and KTX2 textures, a clipboard shared with the phone, links that open in the browser.
  • A warning appears when the imported game is newer than the APK supports.
  • Fixed:
    • Readable Numbers made the interface disappear.
    • The Mali ASTC cache stopped growing just below its limit.
    • The options page lost the port's rows when a mod patch threw.
    • The speed buttons went back to PC size.
    • An ImGui assert crash while scrolling long mod lists.
    • Decimal formatting now matches the PC.
    • The main thread's stack went from 1 MB to 16 MB.
    • Fields that moved to a base class (mod preparation rules v13).
    • Code that refers to missing mods fails as it does on the PC.
    • Newer library references resolve as on the PC.
    • Shader variable names such as common now compile.
  • The log counts loaded and missing textures and sounds per mod.
  • A swipe-away is no longer reported as an abnormal exit.
  • An automated smoke test of 34 popular interface mods found no port errors.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-10-26 · 贴图缺失的根本原因,键鼠识别,开发者工具的确认按钮

Choose a tag to compare

@samilry samilry released this 02 Nov 08:13

游戏版本 1.7.4985 · 当天的提交 · 当天结束时的代码

  • 个别建筑或物品看不见:
    • 启动时逐张核对贴图图集的缓存,发现缺图就清掉缓存,下次启动重新生成。
    • 根本原因在骁龙 Adreno 600/700 系列上:显卡压缩图集时读到了还没画完的页面。现在 Adreno 800 以下的显卡改用 CPU 压缩图集。
  • EPOE 等 mod 带着只给 32 位 x86 用的程序集,加载报“架构不对”。现在和电脑一样能加载。
  • 命令很多时,命令栏会盖住右下角的暂停键。现在命令栏在时间按钮前换行。
  • 开着“避开摄像头挖孔”时的几处问题,已修复:
    • Better Architect Menu 的面板错位。
    • 研究页的标签点不准。
    • “工作”等表格页太宽,现在按屏幕宽度排。
    • 界面缩放很大时,RimHUD 的信息面板被挪开后盖住了命令栏,现在命令栏跟着一起挪。
  • 双击只在点中同一个东西时才算。以前先点空地、再很快点旁边的小人,会被当成双击,把同类全选上。
  • 键鼠模式识别更准:
    • 键盘要真的打过字才切换,蓝牙手柄、遥控器不会误触发。
    • 蓝牙外设休眠断开时,不会来回切换。
    • scrcpy 模拟的键鼠、平板的磁吸键盘,用过一次就能识别。
  • 拖动范围的工具:
    • “确定”按钮挪到原版形状和旋转箭头的旁边。
    • 拖到按钮上才松手时,这次拖动也能正常结束。
  • 只有数字的输入框(例如交易数量),手指点一下就整个选中,直接输入即可替换。
  • 开发者模式的地图工具(生成、杀死、爆炸等),以及“通用蓝图”这类点一下就放东西的 mod 工具,加了“确认 / 取消”按钮。
  • 导入 mod 或存档时,选中的文件没下载完或已经在回收站,会用中文说明原因和办法。

English: the cause of missing textures, input mode detection, confirm buttons for dev tools

Game 1.7.4985 · Commits · Code

  • The atlas cache is checked page by page at startup, and rebuilt when a tile is missing.
  • The cause of the missing tiles: Adreno 600/700 GPUs read atlas pages that were not finished yet. Atlas pages are now compressed on the CPU on Adreno GPUs below the 800 series.
  • Mod assemblies flagged 32-bit x86 only (EPOE) load as on the PC.
  • The command grid wraps before the time buttons.
  • Cutout fixes:
    • Better Architect Menu's panel;
    • research tabs;
    • table pages sized to the screen;
    • RimHUD at large UI scales.
  • A double tap counts only on the same thing.
  • Keyboards switch the input mode only once they are typed on. Bluetooth sleep no longer flips modes.
  • The confirm bar sits beside the game's shape and rotate arrows. Drags released over a button end properly.
  • Number fields are selected whole on a tap.
  • Dev-mode map tools and one-tap placement tools in mods (Universal Blueprints) get confirm and cancel buttons.
  • Import errors are explained for files that are still downloading or in the trash.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.

2026-10-25 · 列表惯性,分辨率选项

Choose a tag to compare

@samilry samilry released this 02 Nov 08:13

游戏版本 1.7.4985 · 当天的提交 · 当天结束时的代码

  • 新增分辨率选项:选项 → 图像 → 分辨率,有原生、1080p、720p 三档。界面缩放不会自己变,屏幕上方会提示改成多少能和原来一样大。
  • 列表甩动后还在滑的时候,最下面一两行是空的。已修复。甩动的速度和距离不再随帧率变化(以前 120 帧时滑得快一倍、远一倍)。
  • 选中小人后的“装备”栏一会儿大一会儿小,现在固定成一个大小。
  • “导入存档…”直接选单个 .rws 文件时报错。已修复。
  • 打开过的存档窗口再打开时,键盘有时会自己弹出来。原因是窗口重开后控件编号会重复。已修复。
  • 开发者模式的调试窗口用手指滑不动。已修复。
  • 开着“避开摄像头挖孔”时,研究界面每帧都会把自己调宽。已修复。
  • HugsLib 的“发布日志”找不到日志文件:日志路径按电脑上 Linux 版的位置对上了。

English: list momentum, render resolution

Game 1.7.4985 · Commits · Code

  • Render resolution option: native, 1080p or 720p. The UI scale is never changed automatically; a hint shows which scale keeps the same size.
  • Coasting lists no longer leave a blank band, and fling distance no longer depends on the frame rate.
  • The gear tab keeps one size.
  • Importing a single .rws save works.
  • The save dialog no longer opens the keyboard by itself (control ids repeat when a window reopens).
  • Dev-mode debug windows scroll by finger.
  • The research window no longer widens itself again with cutout avoidance on.
  • HugsLib finds its log file.

本仓库不提供安装包,可以按 BUILDING.md 自己编译。No APK is published here; build one with BUILDING.md.