Percheron 12+2 Manual / 7+1 Automatic Gearboxes  -  v1.3
========================================================

=====================================================================
ENGLISH
=====================================================================

INSTALL
-------
Put the zip into <userdata>/mods/ (or use the in-game  Modify -> Mods
importer) and restart the game. Nothing is overwritten: all three parts
are added next to the stock 12M / 6A transmissions.

VEHICLE CONFIGS  (Vehicle Selector -> Cherrier Percheron)
The three rear-wheel-drive layouts get three configs each - 9 in total:
    XL450 4x2 Fifthwheel    XL410 6x2-4 Box    XL500 6x4 Fifthwheel
each available as  (12+2 Manual) / (12+2 Manual, C1) / (7+1 Automatic).
The AWD layouts (4x4, 6x6, 8x8) already carry a transfer case with its own
High/Low rangebox, so stacking the C crawler on top of that would be redundant -
they get no pre-made configs. The gearboxes are still selectable there like on
any other config:  Vehicle Config -> Transmission

TRANSMISSION PARTS
    12+2 Speed Manual Gearbox              6 gate positions + splitter + "C" low range (needs a button)
    12+2 Speed Manual Gearbox (C1 in 1st)  6 gate positions + splitter, crawler is the 1st gate position
    7+1  Speed Automatic Gearbox           7 stock ratios + 1 deep low ratio

VERSION 1: "C" LOW RANGE  (hold button)
---------------------------------------
Bind the vehicle action  "C crawler (hold): low range + 1st gear"
in  Options -> Controls -> Vehicle Specific.
    hold    -> C low range + 1st gear  (24.42 direct / 19.30 overdrive)
    release -> normal range + neutral

The action is designed to be HELD. If your hardware shifter sends a "held"
signal while a gear position is engaged (slotting the lever into a gear acts
like holding a button), bind it straight to a spare gear position - the
6-speed gate only uses 1-6 and reverse, so position 7 stays free. That is how
the author uses it: C is bound to the 7th gear position.

There is also a click-to-toggle "C" button in the in-vehicle powertrain
button bar, and a quick-access entry.

VERSION 2: C1 IN 1ST  (no button needed)
----------------------------------------
Gate:   R | C1 | 1 2 3 4 5 6
    C1        24.42 (direct) / 19.30 (overdrive)
    1st       12.21 / 9.65      4th  2.68 / 2.12
    2nd        7.43 / 5.87      5th  1.63 / 1.29
    3rd        4.56 / 3.60      6th  1.00 / 0.79
One shift up from neutral = C1, one more = 1st. The ratio order is
monotonic, so up and down shifts behave normally. Works on keyboard,
gamepad or any H-pattern shifter without a dedicated button.

RATIOS
------
All twelve stock ratios are unchanged (direct 1.00 and overdrive 0.79
included). The mod only adds low gears:
    manual C low range : 24.42 / 19.30   (2.00:1 range box)
    manual C1          : 24.42 (first gear position)
    automatic 7+1      : 9.70 (1.4x the stock 1st) in front of the stock seven
    reverse            : -11.44 / -9.04 (splitter), both deeper with C engaged

TUNING
------
vehicles/percheron/percheron_transmission_12-2_7-1.jbeam
  - C low range multiplier : search "crawler", edit the rangeBox gearRatios [1.00, 2.00]
  - C1 crawler ratio       : search "percheron_transmission_12_2M_C1", edit 24.42 in gearRatios
  - splitter default state : splitterControl -> "defaultMode" ("high" = overdrive, "low" = direct)

NOTES
-----
* The game's gearbox safety assistant refuses any shift that would over-rev
  the engine, so the crawler can only be selected at (nearly) standstill.
  This is intended behaviour and matches a real truck.
* The C low range box itself has no interlock (neither has the stock
  splitter): do not engage it at highway speed.
* The manual gear HUD only shows numeric gear indices, so the C range box
  cannot be displayed as a letter "C" (engine limitation).

HOW IT WAS MADE, AND REUSE
--------------------------
The files in this mod (jbeam parts, interaction action, configs, docs) were
written and statically validated by an AI assistant (DeepSeek) working from
the BeamNG 0.40.5 game source and the stock Percheron files. The design
(12+2 with a real crawler, the C1 gate layout, the hold-to-crawl button) and
the in-game testing are by the uploader.

Everything I wrote is released as CC0: modify it, fix it, re-upload it, or
take the resource over - no permission and no credit needed (a mention is
nice). The nodes / beams / triangles / flexbodies data inside the parts is
copied from the stock BeamNG transmission, so that data stays BeamNG's and is
used under the normal modding terms. See LICENSE.txt for the full text.

Status: low-maintenance. If a game update breaks it, I will fix that, but I do
not have much spare time for regular updates or feature requests. Improvements,
forks and takeovers are welcome.

KNOWN OPEN ITEMS  (good places to start)
----------------------------------------
* Only statically validated on 0.40.5 - the three configs still need real
  driving tests.
* The C range box cannot be shown as a letter on the HUD.
* The 7+1 automatic's low ratio is used by the automatic shift logic;
  making it manual-mode-only would need extra scripting.
* Configs for the other chassis layouts (4x2, 6x2 tag, 8x8, ...) are missing.
* The hold action assumes the stock vehicleController is the main controller;
  drivetrain mods that replace it may need a small adjustment.


=====================================================================
中文
=====================================================================

安装
----
把 zip 放进 <userdata>/mods/（或用游戏里 修改 -> 模组 导入），重启游戏。
不会覆盖任何原厂文件：三个部件是加在原厂 12M / 6A 旁边的。

车辆配置（车辆选择器 -> Cherrier Percheron）
只有三种后驱底盘做了现成配置，各三个，一共 9 个：
    XL450 4x2 Fifthwheel    XL410 6x2-4 Box    XL500 6x4 Fifthwheel
每种都有 (12+2 Manual) / (12+2 Manual, C1) / (7+1 Automatic) 三个版本。
四驱底盘（4x4 / 6x6 / 8x8）自带分动箱（High/Low Rangebox），再叠一个 C 挡不合适，
所以没做现成配置；但在那些车上仍然可以照常在改装选项里选装：
车辆配置 -> Transmission

变速箱部件
    12+2 Speed Manual Gearbox              6 挡位 + Splitter + C 低速挡副箱（要按键）
    12+2 Speed Manual Gearbox (C1 in 1st)  C1 就是 1 挡位置（不用按键）
    7+1  Speed Automatic Gearbox           7 个原厂齿比 + 1 个低速比

方案一：C 低速挡副箱（按住式）
----------------------------
在 选项 -> 控制 -> 车辆专属 里绑定动作
    "C crawler (hold): low range + 1st gear"
    按住  -> 副箱挂 C + 挂 1 挡（24.42 Direct / 19.30 Overdrive）
    松开  -> 回正常齿比 + 挂空挡

这个动作是按住式的。如果你的硬件挂挡器是"挂进某个挡位 = 一直按住按钮"
（我的就是这样），直接把动作绑到一个空闲挡位即可 —— 6 挡位只用 1~6 和倒挡，
第 7 个挡位是空着的，我就把它绑在第 7 挡上。键盘 / 方向盘按键就绑一个能按住的键。
车内变速箱按钮面板里还有一个点击式 C 按钮，快速访问轮盘里也有条目。

方案二：C1 在 1 挡（不需要按键）
------------------------------
排挡：R | C1 | 1 2 3 4 5 6
    C1   24.42（Direct）/ 19.30（Overdrive）
    1 挡 12.21 / 9.65      4 挡 2.68 / 2.12
    2 挡  7.43 / 5.87      5 挡 1.63 / 1.29
    3 挡  4.56 / 3.60      6 挡 1.00 / 0.79
从空挡升一挡 = C1，再升一挡 = 1 挡；齿比单调，升降挡不会跳。
键盘、手柄、任何 H 型排挡器都能直接挂上，不用多余按键。

齿比
----
12 个原厂前进挡一个没改（直接挡 1.00、超速挡 0.79 都保留），只增加低速挡：
    手动 C 副箱  ：24.42 / 19.30（2.00:1 副箱）
    手动 C1      ：24.42（它就是 1 挡位置）
    自动 7+1     ：9.70（约 1.4x 原厂 1 挡），放在原厂 7 个挡前面
    倒挡         ：-11.44 / -9.04（Splitter 分出），开 C 后一起变深

想调的话
--------
vehicles/percheron/percheron_transmission_12-2_7-1.jbeam
  - C 副箱倍率：搜 "crawler"，改 rangeBox 的 gearRatios [1.00, 2.00]
  - C1 爬行挡齿比：搜 "percheron_transmission_12_2M_C1"，改 gearRatios 里的 24.42
  - Splitter 默认状态：splitterControl -> "defaultMode"（"high"=Overdrive，"low"=Direct）

注意
----
* 游戏有"变速箱安全辅助"：会拒绝任何会让发动机超转的换挡，所以低速挡只能在
  静止 / 极低速时挂上 —— 这是防爆缸，正常现象。
* C 副箱本身没有互锁（原厂 Splitter 也没有），高速上误按会瞬间拉高转速，
  只在起步 / 重载低速时用。
* 手动挡 HUD 只显示数字挡位，所以 C 副箱无法显示成字母 "C"（引擎限制）。

AI 制作 / 欢迎接手
------------------
这个 mod 的文件（jbeam 部件、交互动作、车辆配置、文档）全部由 AI 助手（DeepSeek）
按 0.40.5 游戏源码和原厂 Percheron 文件生成并做了静态校验；设计方向（12+2 带低速挡、
C1 布局、按住式 C）和进游戏测试是我做的。

我写的部分按 CC0 释出：随便改、随便重发、想接手当自己的资源页也行，
不需要许可、不需要署名（提一句更好）。部件里的 nodes / beams / triangles /
flexbodies 来自原厂 BeamNG 数据，版权仍归 BeamNG，只按正常模组规则使用 ——
这部分我不能重新授权。完整授权文字见 LICENSE.txt。

状态：低强度维护。游戏更新把它弄坏了我会修，但没多少时间做常规更新或加新功能；
欢迎改进、fork 或接手。

已知待改进（欢迎接手）
----------------------
* 只在 0.40.5 上做过静态校验，三个配置还需要各跑一遍实际驾驶测试
* HUD 只能显示数字挡位，C 副箱无法显示字母 "C"
* 自动 7+1 的低速挡会自动参与换挡；想做成"仅 M 模式可用"需要额外脚本
* 其他底盘（4x2 / 6x2 tag / 8x8 等）还没有配新变速箱的配置
* 按住式动作假定主控制器是原厂 vehicleController，替换主控制器的传动类 mod
  可能需要小改
