Arabic, and every other right-to-left script
Built out of love. Please support the official release and the future of the Xenoblade series.
The overlay could draw English, Japanese, Chinese and Korean, and that was the end of it. Anything else hit a width rule that assumed "not English" meant Chinese, and got its combat lines cut at 28 characters — Latin scripts first, because they overflow that almost immediately.
Right-to-left scripts were worse. They were not cut short so much as cut at the wrong end: an over-long line showed the end of the sentence with the ellipsis where the sentence began, and a short one sat against the portrait with the rest of the plate empty.
Both are fixed. The overlay now measures text by what it is rather than by the language code, and reads direction from the first strong character of each line, so Arabic and any other right-to-left script land on the right side of the card.
Which file do I download?
| file | what it is | do I need it? |
|---|---|---|
XC2-package-dist-0.3.3.zip
| full player package: 0.3.3 launcher, updated xc2_rt.dll, xc2_setup.py, full toolchain
| yes — new installs, manual upgrades, or v0.2.2+ one-click About → Updates
|
xc2-launcher-0.3.3-src.zip
| launcher source code | no |
(Exact SHA-256 checksums are in SHA256SUMS.txt on the release page.)
What changed
A right-to-left line is no longer truncated from the wrong end
A pack may store its text in visual order, so the first character in the file is the leftmost glyph on screen — which for a right-to-left line means the string begins with the sentence's final punctuation. The old truncator kept the head of the string and appended the ellipsis, so an over-long line showed the end of the sentence with the ellipsis where the sentence began.
It now keeps the tail — the start of the sentence — and puts the ellipsis at the head. The rule covers any right-to-left pack, not one specific language.
The bottom subtitle plate right-aligns right-to-left text
The plate drew its speaker name and body from the left edge. A short right-to-left line therefore hugged the portrait with the rest of the plate empty. Right-to-left lines are now right-aligned inside the plate, and the speaker underline is mirrored so it still fades away from the text.
Combat cards keep their left alignment on purpose: they are left-weighted by design, with the portrait on the left and a gradient fading out to the right.
Direction comes from the first strong character
A right-to-left line stored in visual order usually starts with . or !, because that is the leftmost glyph. Reading the first non-space codepoint therefore classified exactly those lines as left-to-right, and both fixes above silently did nothing for them. The probe now follows the Unicode rule and skips neutrals — punctuation, digits, whitespace — until it finds the first character that actually carries a direction.
Direction is decided per line, so a single pack can mix scripts.
Combat lines are measured by what the text is, not by the language code
This was the bigger bug, and it hit every pack that was not English or Japanese. The truncation width came from the configured language: 56 codepoints for English, 28 for everything else, because the code assumed "not English" meant Chinese. A Latin-script pack fell into that branch and had its combat lines cut at 28 characters, which English-length text overflows almost immediately.
Width now comes from the text. A CJK ideograph, a kana or a Hangul syllable counts as two half-width units and everything else counts as one, so a card holds 28 ideographs or 56 Latin letters whichever pack is loaded, and a mixed line is cut where the space actually runs out. Reading time is summed the same way. A language code that is not en/ja/zh now gets the Latin label set instead of the Chinese one.
Measured in game with an English pack installed as fr.json: a 36-character combat line rendered in full, with none of the ellipsis the old 28-codepoint cap always added, and the F5 toast came out in English.
The subtitle language selector lists what you actually have
It used to offer the four built-in languages, and opening and saving the settings page forced an unknown voice_lang back to zh_hans — which silently switched a player's installed pack off.
The selector now reads voice_subtitles/ and lists every pack present, so a language that is not one of the four built-ins can be picked from Settings instead of editing nxrt.ini by hand. The pack file is still <code>.json with no registry; nothing else changed.
Packs are separate downloads — this release only changes how one is selected. If you already have one in voice_subtitles/, it will show up in the list. If you do not, nothing changes for you.
A note on what this does not do
The game ships twelve text languages, and all twelve are written left to right. This release is about the overlay — the subtitle strip that draws over the HUD. It is independent of the language you pick in the menus: menus, items and dialogue boxes stay exactly as they are, and a right-to-left subtitle pack shows only in the voice overlay.
That is the whole point of the overlay existing as a separate layer, and it is the only way a right-to-left script can appear on screen here at all.
Thanks to the people building packs
None of this would have surfaced without them. A right-to-left pack in particular is a hard test: it breaks every assumption the overlay was written on, and it breaks them quietly — nothing crashes, the text just reads wrong. Thank you for building those, and for writing up what you saw instead of quietly working around it.
Install / upgrade
- From
v0.3.0–v0.3.2(recommended): About → Check for updates → Install update. The updater downloads the package, checks it against the SHA-256 GitHub publishes for the asset, and moves the new files in — the launcher executable included, which it renames aside and replaces. Restart the launcher when it says so. Unzipping the package over the old folder does the same thing by hand. - Fresh install: unpack
XC2-package-dist-0.3.3.zipinto a new empty folder, openxc2-launcher.exe, point it at your own 3.0.1 dump, and press Set up. The first start can show a black window for 20–30 s while the driver compiles pipelines; that is normal. - From
v0.2.x: a fresh install is still the sane path. Use Play → Import save to carry your progress over.
Known issues
- NVIDIA
VK_ERROR_DEVICE_LOST(#81, #89, #97, #101) — still open. The device-lost dump carries a VRAM line sincev0.3.1; attach one if you hit it. - NVIDIA DLSS black lines (#74) — caused by a DLSS model override from the NVIDIA app, not by this build. Clear the override for the game.
- 90 / 120 fps are experimental (#85) — 60 fps with frame generation is what is actually tested.
- Platforms — native Windows 11 x64 is the target; Windows 10 x64 and Linux / SteamOS (Proton / Wine) are best effort.
Credits and legal
- Community — every fix here starts with somebody's report, log or retest. That is the only reason this project moves.
- Upstream and references — nxrecomp,
Goldoire/fefw-recomp(deleted upstream; the fork is kept inthird_party/fefw-recomp/), Ryujinx (MIT), @capibawa (nxnative), AksharDP/xc2-recomp, Lichii. Third-party libraries keep their own licences; seelicenses/andTHIRD_PARTY_NOTICES.md. - Licence — GPL-3.0-or-later. This project grants no rights to any Nintendo game code or asset.
- Legal — an independent, non-commercial hobby project, not affiliated with or endorsed by Nintendo or MONOLITH SOFT. Xenoblade, Xenoblade Chronicles 2, Nintendo Switch and Nintendo Switch 2 are trademarks of Nintendo.
XC2 NS2 重编译 v0.3.3 —— 阿拉伯语,以及所有从右往左的文字
始于热爱,请支持正版,为了《异度神剑》系列的未来。
浮层原来只认英、日、中、韩四种文字,别的语种一进来就撞上一条宽度规则——那条规则假设"不是英文就是中文",于是把战斗台词砍到 28 字符。拉丁字母的语种最先遭殃,因为它们几乎一上来就超。
从右往左的文字更糟。它们不是被截短,是被截错了头:超长行留下的是句子结尾,省略号却标在句子开始的位置。
两样都修好了。浮层现在按文字本身算宽度,不再看语言代码;方向看每一行的第一个有方向的字符。阿拉伯语和其他从右往左的文字,终于能落在卡片的正确一侧。
我该下哪个文件?
| 文件 | 是什么 | 需要吗 |
|---|---|---|
XC2-package-dist-0.3.3.zip
| 完整玩家包:0.3.3 启动器、新版 xc2_rt.dll、xc2_setup.py 与完整工具链
| 要 —— 全新安装、手动覆盖升级,或 v0.2.2+ 启动器内一键更新
|
xc2-launcher-0.3.3-src.zip
| 启动器源码 | 不用 |
(精确的 SHA-256 校验值在发布页的 SHA256SUMS.txt 里。)
本版变化
从右往左的台词,不再从错的那头截断
字幕包可以把文本按视觉顺序存——文件里第一个字符,就是屏幕上最左边那个字形。对从右往左的行来说,这意味着字符串是从句末开始的。
旧逻辑保留字符串开头,再把省略号接在后面。结果超长行显示的是句子的结尾,省略号却出现在句子开始的位置——像被人从中间掐断,还把掐断的地方标反了。
现在保留尾部(也就是句首),省略号放在字符串开头。这条规则对所有从右往左的字幕包都成立,不挑语种。
底栏里,从右往左的文字靠右站
底栏那块板原来从左边开始排说话人名和正文。中文英文都没问题,但从右往左的短句会紧贴立绘,右边空出一大片,看着像没画完。
现在从右往左的行在板内靠右,说话人下划线跟着镜像,仍然朝远离文字的方向淡出。
战斗卡片保持左对齐——它本来就是偏左的版式,立绘在左、渐变往右淡出,改了反而不对。
方向看第一个有方向的字,而不是第一个字符
这条最隐蔽。按视觉顺序存的从右往左行,通常以 . 或 ! 开头——因为那是屏幕最左边的字形。而旧代码读的是第一个非空格字符,于是恰好把这些行判成了从左往右,上面两个修复对它们一点没生效。
现在按 Unicode 的规则跳过标点、数字、空白,找到第一个真正带方向的字符为止。
方向是逐行判断的,所以同一个包里混着几种文字也没问题。
战斗台词按字数算宽度,不再看语言代码
这是更严重的一个,所有非英日的包都受影响。
截断宽度原来取自配置的语言:英文 56 个码点,其余一律 28——因为代码里假设"不是英文就是中文"。拉丁字母的包掉进这个分支,战斗台词被砍到 28 字符,英文长度的句子一上来就超。
现在宽度由文本决定:汉字、假名、谚文音节算两个半角单位,其余算一个。一张卡能放 28 个汉字,或 56 个拉丁字母,装哪个包都一样;混排的行按实际剩余宽度截。阅读时间也照同一套算。
另外 en/ja/zh 以外的语言代码,现在给的是拉丁标签集,不再是中文。
实机验证:把英文包存成 fr.json 装进去,一条 36 字符的战斗台词完整显示,旧版 28 字符上限必然带出来的省略号没了,F5 提示也是英文。
语言选择器列出你实际装了什么
它原来只给四个内置语言。更糟的是,打开设置页再保存,会把不认识的 voice_lang 强行改回 zh_hans——等于悄悄把你装好的包关掉。
现在选择器直接读 voice_subtitles/ 目录,里面有什么就列什么。四个内置语言以外的语种,在设置里就能选,不用手改 nxrt.ini。包文件还是 <code>.json,没有注册表,别的一概不变。
字幕包是另外下载的,这一版只改「怎么选」。voice_subtitles/ 里已经有的包会出现在列表里;没有的话,这一版对你没有变化。
这一版不做什么
游戏发售的十二种文本语言,全部从左往右写。这一版改的是浮层——画在 HUD 上那条字幕。它和你在菜单里选的语言互不相干:菜单、道具、对话框原样不动,从右往左的字幕包只出现在语音浮层里。
浮层单独成层,意义就在这里——这也是从右往左的文字在本作里唯一能上屏幕的方式。
感谢做字幕包的人
上面这些,没有他们根本浮不出来。
从右往左的包尤其难:浮层当初的每一个假设都会被它撞碎,而且是悄悄地碎——不崩、不报错,只是文字读起来不对,很容易被当成"就这样吧"。
谢谢你们做这些包,也谢谢你们把看到的问题写下来,而不是自己绕着走。
安装 / 升级
- 从
v0.3.0–v0.3.2升级(推荐):关于 → 检查更新 → 安装更新。更新器会下载包、用 GitHub 为该资产公布的 SHA-256 核对,然后把新文件搬进去——包括启动器 exe 本身(先把旧的改名让开再替换)。它提示重启时,重启即可。手动把包解压覆盖旧目录效果相同。 - 全新安装:把
XC2-package-dist-0.3.3.zip解压到新的空文件夹,打开xc2-launcher.exe,指定你自己的 3.0.1 Dump,点 「开始构建」。首次启动可能黑 20–30 秒(驱动在编译管线),正常,等一下就好。 - 从
v0.2.x升级:仍建议全新安装,用 「游玩 → 导入存档」 迁移进度。
已知问题
- N 卡
VK_ERROR_DEVICE_LOST(#81、#89、#97、#101)—— 仍未解决。自v0.3.1起设备丢失的 dump 里带显存行,碰上了请附一份。 - N 卡 DLSS 黑线(#74)—— 来自 NVIDIA app 的 DLSS 模型覆盖,不是本版的问题,清掉该游戏的覆盖即可。
- 90 / 120 fps 属实验性(#85)—— 真正测试的是 60 fps + 帧生成。
- 支持平台 —— 主要目标为原生 Windows 11 x64;Windows 10 x64 与 Linux / SteamOS(Proton / Wine) 为尽力适配。
致谢与法律声明
- 社区 —— 这里的每一个修复,起点都是某个人的报告、日志或复测。这类项目的开发闭环就是这么转起来的。
- 上游与参考 —— nxrecomp、
Goldoire/fefw-recomp(上游已删除,fork 保留在third_party/fefw-recomp/)、Ryujinx(MIT)、@capibawa(nxnative)、AksharDP/xc2-recomp、Lichii。第三方库保留各自许可证,见licenses/与THIRD_PARTY_NOTICES.md。 - 许可证 —— GPL-3.0-or-later。本项目不授予任何任天堂游戏代码或素材的权利。
- 法律声明 —— 独立、非商业的爱好者项目,与任天堂、MONOLITH SOFT 无隶属或背书关系。异度神剑、异度之刃 2、Nintendo Switch、Nintendo Switch 2 为各自权利人的商标。