Navigation
Browse the developer docs

FH2 Mod Platform for .NET

Livery

The livery editor's layer limits.

By Bartholomew Ho (qiangqiang101) · MIT license · v0.12.0 · 15 Nov 2026 · repository · original page

On this page

The livery editor's layer limits.

New in 0.12.0. ⚠️ Not tested in the game yet.

Example

protected override void OnInit() => Livery.SetLayerLimits(hoodAndSides: 20000, bumpersAndWing: 20000);
Protected Overrides Sub OnInit()
    Livery.SetLayerLimits(20000, 20000)
End Sub

Members

MemberWhat it does
SetLayerLimits(int hoodAndSides, int bumpersAndWing)Raises the layer limits: the hood and both sides (the game's is 3,000 each), the bumpers and the wing (1,000), up to MaxLayerLimit. Call it once, from OnInit. Any thread.
GameHoodAndSidesLimit, GameBumpersAndWingLimit (constants)The game's own limits: 3,000 and 1,000.
MaxLayerLimit (constant)20,000: the most tested in the game (what FH2 Layer Patcher shipped). The limits are 16-bit.

Notes

  • It changes the numbers in the game's code as the game starts, all four places or none. If any isn't as expected (another game build, or the exe patched on disk by FH2 Layer Patcher), nothing changes and platform.log says why.
  • Once a session: changing it again needs a restart.
  • A livery with more layers than the game's own limits may not open in a game without the change.
  • The same change as FH2 Livery Layer Patch: don't use both.

See also

Copied from the wiki page Livery at commit 7396a07 · MIT license
MIT License

Copyright (c) 2026 Bartholomew Ho

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.