tl;dr. The author did some extreme trial-and-error to finally successfully port the mod to Linux. The hard work deserves a fork.
See the original discussion thread for details.
Section 1: Generating a font asset
- Install Unity 2018.x (should be on Windows).
- Create a new project with TextMesh Pro (its version must be v1.2.x) package.
The package manager can be found in Windows > Package Manager. - Add your font file as an asset.
- Navigate to Windows > TextMesh Pro. Import the TMP Essentials and create a font asset there.
Section 2: Generating an asset bundle (OS-dependent)
-
Depending on the operating system you are going to support:
- Windows: Continue to use the project in Section 1.
- Linux/macOS: Either (a) in Unity, install the OS X build support module, or (b) prepare a separate Unity 2018.x environment with the specified TextMesh Pro version on either Linux or macOS.
The generated file seems to be interchangable at least for now, thus thegenericnamed font file in this repository.
-
Install Asset bundle browser (v1.7.0). Navigate to Windows > Asset bundle browser.
-
Import the generated font asset in Section 1.
-
(Optional) If on non-Windows OS, click the little triangle on your newly-created asset. Change the shader of its material to "TextMesh Pro/Mobile/Distance Field". This step is optional, since its shader will be dropped at runtime.
-
Drag the asset to the Configure panel.
-
In the Build panel, select the platform of the form "[YOUR_CURRENT_OS] Standalone 64" and build.
-
The result will be at
/Asset Bundles/[PLATFORM]/[ASSET_NAME]under your project directory.
- The chosen graphic API affects the build. Seems that OpenGLCore can generate a supported shader on Linux, it renders glyphs incorrectly with flooding error messages "OpenGL Error: Invalid texture unit!". Using mobile shader does not work either.
- In CS-469300, the same asset bundle can be used in all three platforms. This is no longer the case after A Breath Of Fresh Air Update.
- Noto Sans CJK TC (
NotoSansCJKtc-Regular): https://github.com/miZyind/ONI-Mods (Upstream) - jf open 粉圓 (
jf-openhuninn): https://github.com/dershiuan/ONI-Mods
The original README goes below.
- FA-471883-B & EX1-S14-471883-S
- CS-469300 & MD-469473 & EX1-S13-469473
- CS-460672 & EX1-S10-461546
- CS-455509 & EX1-S8-455425
- CS-449460 & EX1-S6-449549
- CS-444111
- AP-410209
- AP-399948
- @Cairath for Oxygen-Not-Included-Modding
- @peterhaneve for PLib
- @古靈精怪 for 繁體中文語言包
- @Kud for 繁體中文語言包
- @LaFa for 拉法繁中
- @Jiun for 非官方繁中
- @qbane for 類 Unix 作業系統相容性
- ILRepack >= 2.0.x
- PLib >= 4.2
- Harmony >= 2.0.x
- .NET Framework = 4.7.1
- Unity = 2018.4.14f1
- TextMesh Pro = 1.2.3
- Visual Studio 2019
- Asset Studio GUI
- Asset Bundle Extractor
- dnSpy
| Name | Description |
|---|---|
| Traditional Chinese | Adds Traditional Chinese translation and font. |
miZyind mizyind@gmail.com
Licensed under the MIT license.