Mod thay font cho Oxygen Not Included — hỗ trợ hiển thị tiếng Việt với font đẹp hơn font mặc định.
Tương thích với ONI build 719533+ (March 2026 update), hỗ trợ tất cả DLC.
- Load font
.otf/.ttftrực tiếp lúc runtime (không cần AssetBundle) - Tạo
TMP_FontAssetvà pre-populate atlas với bộ ký tự Vietnamese + ASCII - Heading (GRAYSTROKE): thêm font custom làm fallback — game giữ font gốc, chỉ dùng custom font cho ký tự thiếu
- Body text (Roboto, NotoSans, ...): replace trực tiếp bằng RobotoCondensed có đầy đủ tiếng Việt, match đúng variant (Regular/Bold/Italic/BoldItalic)
- Đọc
config.jsonđể cấu hình font heading, ngôn ngữ, hướng text, scale
- Đăng ký mod ONI Tiếng Việt trên Steam Workshop
- Bật mod trong game, khởi động lại
- Vào Settings → Language chọn Tiếng Việt
curl -sL https://raw.githubusercontent.com/sant1ago-da-hanoi/oni-vie-beautiful-font/master/install.sh | bashScript tự detect OS, tải bản mới nhất từ GitHub Releases, và cài vào thư mục local mod.
- Tải zip từ Releases (hoặc build DLL theo hướng dẫn bên dưới)
- Giải nén vào thư mục local mod:
Cấu trúc thư mục:
# macOS ~/Library/Application Support/unity.Klei.Oxygen Not Included/mods/Local/VieBeautifulFont/ # Windows %USERPROFILE%\Documents\Klei\OxygenNotIncluded\mods\Local\VieBeautifulFont\VieBeautifulFont/ ├── oni-vietnamese.dll ├── mod_info.yaml ├── mod.yaml ├── config.json ├── preview.png └── Fonts/ ├── GRAYSTROKE_REGULAR.otf ├── RobotoCondensed-Regular.ttf ├── RobotoCondensed-Bold.ttf ├── RobotoCondensed-Italic.ttf └── RobotoCondensed-BoldItalic.ttf - Mở game → Mods → bật VieBeautifulFont → khởi động lại
- Vào Settings → Language chọn Tiếng Việt
Lưu ý: Nếu đang dùng bản Workshop, tắt mod Workshop trước khi bật local mod để tránh conflict.
File config.json trong thư mục mod:
{
"filename": "GRAYSTROKE_REGULAR.otf",
"code": "vi",
"leftToRight": true,
"scale": 1.0
}| Field | Mô tả |
|---|---|
filename |
Tên file font heading .otf trong thư mục Fonts/ |
code |
Mã ngôn ngữ (vi, zh, ...) |
leftToRight |
Hướng text — true cho LTR, false cho RTL |
scale |
Tỉ lệ font (1.0 = mặc định) |
Yêu cầu:
- .NET SDK 6.0+ (hoặc bất kỳ version nào hỗ trợ
netstandard2.1) - Game Oxygen Not Included đã cài qua Steam
Project tự detect đường dẫn game DLLs trên macOS, Windows, và Linux (Steam default paths). Nếu cài ở chỗ khác, set property ONIManagedDir khi build.
dotnet build oni-vietnamese.csprojOutput: bin/Debug/netstandard2.1/oni-vietnamese.dll
Custom game path:
dotnet build oni-vietnamese.csproj -p:ONIManagedDir="/path/to/OxygenNotIncluded_Data/Managed"MIT
