Skip to content

Wheel Mods

mzzvxm edited this page Dec 5, 2026 · 5 revisions

Wheel Mods

Replace a shipped wheel, or add a wheel the game does not ship. Source: src/mc_engine/modloader/modloader.cpp (ScanFolder, BuildRimMods), src/mc_engine/modloader/rim_names.h. Read Mod Loader first.

Layout

<mod folder>/<mod>/
  rims/
    <wheel name>.glb            replaces the shipped wheel with that name
    <wheel name>.donor          optional, one line: the shipped wheel to build from
    all.glb                     stands in for every wheel
  textures/                     optional loose images, by material name
  • Wheels live in rims/, not beside characters, because a name alone cannot say whether a mesh is a character or a wheel. Mesh extensions: .obj, .gltf, .glb.
  • The file name without extension is the wheel name, for example whl_am_volk_te37 or whl_am_bbs_lm.
  • A wheel is two resources. The mesh goes into resources/rims/<name>/body_lod_0.xrsc; any image the mod brought goes into the texture pack beside it (<name>.xtp). Replacing only the first leaves the shipped paint.
  • all stands in for every wheel in the built-in catalog (kRimAssets, the 176 names of Shipped wheels). A mesh named after one wheel still wins for that wheel. Each catalog entry is checked against the archive before it is built, so an entry missing in another build costs nothing. The log reads standing in for N wheel(s).

Adding a wheel the game does not ship

A new car's stock wheel is looked up by a name derived from the car's (the game strips vp_ and asks for whl_stk_<rest>), so a new car needs a wheel with that name, and no template exists under it. A one-line sidecar names the shipped wheel to use as the template:

rims/whl_stk_my_car.glb
rims/whl_stk_my_car.donor      contains: whl_am_bbs_ch

The sidecar has the same base name as the mesh and extension .donor. Leading and trailing whitespace is trimmed; only the first line is read. The wheel lands under the new name, built from the donor's resources. A donor wheel's paint is written under the new name too.

How a car gets its wheels

Wheels are not part of a car's model. A car's wheels are a separate resource found through its car config (<car>.xcc), which holds one byte (offset 0x844) naming a rim:

  • The byte is an index into the rim catalog: the rims block of tune/vehicle/wheel_models.list, then those of wheel_models0001.list to wheel_models0007.list, in that order.- A byte past the end of the catalog (new cars use 0xFF) means "the car's own wheel". The game then builds a name from the car's and looks that wheel up: drop the first three characters (vp_) and prefix whl_stk_, so a new car named vp_my_car asks for whl_stk_my_car. A car name with vpd_ drops four and prefixes whld_stk_; a name containing DUB gets whl_am_tis_tis07.
  • That lookup only happens once the car is driven. The loader resolves it earlier: a car config shipped as a raw file (files/...xcc) that names its rim is written with the catalog index already filled in, so the garage shows the wheels at once. Log: rim byte ... resolved to catalog index N. Without it a bought car stands in the garage with no wheels until it has been on the street.

So a car mod has two ways to get its own wheels:

  1. Ship a wheel named for the car (rims/whl_stk_<name>.glb, with a .donor sidecar as above). The car's own-wheel lookup finds it.
  2. Ship a car config whose rim byte names a shipped wheel, or one you added to the catalog. A raw file files/tune/vehicle/wheel_models000N.list shipped by a mod is read by the loader in place of the archive's when it counts the catalog.

Wheel mods and car mods do not touch each other's files. A wheel mod changes what a named wheel looks like for every car that uses it; a car mod only picks which wheel its car asks for.

TIRE OFFSET

garage_tire_offset (default on) adds a TIRE OFFSET row to the garage's wheels > dimensions screen. It edits the per-car TireOffset0/1 bytes that the retail game parses and never uses, and moves the wheel sideways: tire_offset_step metres per notch, 17 notches from -8 to +8 (about 10 cm each way at the default 0.012). tire_offset_targets is a bitmask of the five per-wheel matrix blocks it moves (31 = all). It adjusts how far a wheel sits out of the body on one car; it does not change the wheel mesh or its fit on the axle, which is what model_mods_rim_* does.

CAMBER

For four-wheel cars, the garage's WHEELS > DIMENSIONS screen lets you set the wheel tilt for the front, rear or both axles. CAMBER runs from -15 to +5 degrees and is saved with the car. 0 keeps the wheels upright. garage_camber enables the row and defaults to on.

Orientation, size and texture

Applied automatically, with restart-only cvars to adjust. Full rows in Settings Reference.

Option Default Effect
model_mods_rim_autoalign true Turn the thinnest axis of the model onto the axle, then push the face flush with the shipped wheel's. Off places the wheel entirely by hand.
model_mods_rim_yaw, model_mods_rim_pitch, model_mods_rim_roll 0.0 Manual rotation in degrees, applied on top of auto-align.
model_mods_rim_offset_x 0.0 Nudge along the axle; one unit is the wheel's own diameter.
model_mods_rim_scale 1.0 Size multiplier on top of the automatic fit.
model_mods_rim_texture_mode -1 Where the mod's image goes: -1 auto, 0 the hub cap, 1 the whole rim. Auto decides on the image's alpha: an image with real transparency is a badge and goes on the hub cap quad; an opaque one is a rim skin.
model_mods_rim_keep_badge true Keep the shipped badge quad. The first thing to try when a textured wheel mod misbehaves.
model_mods_rim_shade_profile true Rebuild baked shading from the template instead of one flat average.
model_mods_rim_shade_occlusion true Bake the shade lane from occlusion measured on the replacement.
model_mods_rim_band_profile false Carry the template's material bands onto the replacement.
model_mods_rim_inherit_shade false Diagnostic: copy the shipped shading vertex by vertex.

Failure modes

Log text Meaning
<mod>/rims/<wheel>: <error> Mesh unreadable, or the template wheel is not in the archive.
<mod>/rims/<wheel>: no texture pack: <reason> The texture pack beside the wheel could not be read.
<mod>/rims/<wheel>: paint not replaced: <reason> / paint not packed: <reason> The mod's image could not be written.
<mod>/rims/<wheel>: <reason> -- keeping the original paint The image was ignored.

Mesh size limits

A wheel does not have to fit the shipped wheel it replaces. The loader grows it by itself when it needs to; there is no file or setting to add.

  1. The mesh is first written into the buffers of the template wheel (the shipped wheel being replaced, or the one the .donor file names). A wheel that fits is built into them and nothing is enlarged.
  2. If it does not fit, the loader starts again from the untouched template, gives the wheel a larger physical segment and enlarges its submeshes, the largest first, until the whole mesh fits. Nothing is welded away.

The room before growing is the vertex count and the index count of all the template's submeshes, each added up, so it differs from wheel to wheel. When the mod brings an image and model_mods_rim_keep_badge is on, the submeshes drawn by the shader that samples the wheel's texture are held back and do not count, unless that would leave none. With model_mods_submeshes off, only the largest submesh counts.

How far a wheel can grow

Limit Value
Vertices of the whole wheel About 37,400. The wheel's vertex data, 28 bytes a vertex, has to fit one 1 MB block of memory.
Triangles of one submesh 21,845 (65,535 indices). A bigger mesh is dealt over several submeshes, so the total depends on how many the template has.

The vertex count is the one after import: a vertex is split wherever the model has a hard edge or a UV seam, so it can be well above what a modelling program shows.

When a wheel does not grow

Case A mesh that does not fit
model_mods_decimate on Growth is off. Vertices are merged until the mesh fits the template. If triangles are still left over when they are dealt to the submeshes, it tries again with four fifths of the vertex target, a limited number of times, and then gives up.
A wheel with an .overlay file beside it It stays inside the template's buffers. If it does not fit, the shipped wheel is kept.
Tires They are never grown; a tire that does not fit is welded down.

model_mods_grow has no effect on wheels: it concerns car parts and characters. The model_mods_... settings named in this section are debug settings: set them in larecomp.toml or on the command line, and restart.

Log lines

A grown wheel ends its build line with grown past the donor:

[mods] <mod> -> rim <wheel> (N tris in S submesh(es), grown past the donor, ...)

A wheel that is not built keeps the shipped model and logs the reason after [mods] <mod>/rims/<wheel>::

  • cannot grow: N vertices do not fit one block. The mesh is over the vertex limit above; reduce it.
  • mesh does not fit the drawable's submeshes: X of Y triangles left over (with and decimation is off when it is). The submeshes cannot hold all the triangles; reduce the mesh.
  • mesh needs N vertices and M indices, the drawable holds A and B across K submesh(es); decimation is off, so the shipped model is kept. A wheel that cannot grow (.overlay) is larger than its template.
  • mesh cannot be reduced to N vertices / M indices. Only with model_mods_decimate on.

Source: BuildRimMods and GrowRimBlocks in src/mc_engine/modloader/modloader.cpp, RewriteDrawableGeometry in rsc5.cpp.

Shipped wheels

The game's resources/rims/ has 176 folders. These are their names: what a mesh in rims/ or a line in a .donor file can say.

Wheels starting with whl_: 145 (click to open)
  • whl_am_5zigen_5zr
  • whl_am_5zigen_sportengine
  • whl_am_amer_aero
  • whl_am_amer_cl200s
  • whl_am_amer_razor
  • whl_am_amer_rebel
  • whl_am_amer_redline
  • whl_am_amer_saltflat
  • whl_am_amer_smoothie
  • whl_am_amer_sting
  • whl_am_amer_torqlite
  • whl_am_amer_torquethrustii
  • whl_am_asnti_af129
  • whl_am_asnti_af139
  • whl_am_asnti_af140
  • whl_am_asnti_af141
  • whl_am_asnti_roma2
  • whl_am_basewheel
  • whl_am_bbs_air_i_ai
  • whl_am_bbs_ch
  • whl_am_bbs_lm
  • whl_am_bbs_rs_gt
  • whl_am_davin_rev71
  • whl_am_davin_rev72
  • whl_am_davin_revls
  • whl_am_davin_speedsp
  • whl_am_dpstr_ds01
  • whl_am_dpstr_ds01a
  • whl_am_dpstr_ds02
  • whl_am_dpstr_ds02a
  • whl_am_dpstr_ds03
  • whl_am_dpstr_ds03a
  • whl_am_dpstr_ds04
  • whl_am_dpstr_ds04a
  • whl_am_dpstr_ds05
  • whl_am_dpstr_ds05a
  • whl_am_ggrames_57
  • whl_am_ggrames_rays99b
  • whl_am_iforg_classic
  • whl_am_iforg_concept
  • whl_am_iforg_daytona
  • whl_am_iforg_equip
  • whl_am_iforg_essen
  • whl_am_iforg_monaco
  • whl_am_iforg_synergy
  • whl_am_iforg_vertex
  • whl_am_konig_ffgraphite
  • whl_am_konig_rewindg
  • whl_am_konig_sideways
  • whl_am_konig_unknown
  • whl_am_lexan_901
  • whl_am_lexan_dagger
  • whl_am_lexan_fire
  • whl_am_lexan_ignite
  • whl_am_lexan_marqi
  • whl_am_lexan_mystik
  • whl_am_lexan_vertex
  • whl_am_momo_rev
  • whl_am_momo_rpm
  • whl_am_momo_storm
  • whl_am_placeholder
  • whl_am_pm_perf_domino
  • whl_am_pm_perf_gatlin
  • whl_am_pm_perf_judge
  • whl_am_pm_perf_marquee
  • whl_am_pm_perf_tantrum
  • whl_am_rc_comp_gladiator
  • whl_am_rc_comp_havoc
  • whl_am_rc_comp_raven
  • whl_am_rc_comp_savage
  • whl_am_rc_comp_vega
  • whl_am_rezax_universal
  • whl_am_tenzo_gf7
  • whl_am_tenzo_gt5
  • whl_am_tenzo_mach10
  • whl_am_tenzo_passion5
  • whl_am_tis_9
  • whl_am_tis_m301
  • whl_am_tis_m302
  • whl_am_tis_m303
  • whl_am_tis_m304
  • whl_am_tis_m305
  • whl_am_tis_tis06
  • whl_am_tis_tis07
  • whl_am_tis_tis10
  • whl_am_tis_tis11
  • whl_am_tis_tis12
  • whl_am_volk_24
  • whl_am_volk_gt7
  • whl_am_volk_gtc
  • whl_am_volk_gtv
  • whl_am_volk_le28n
  • whl_am_volk_sfchallenger
  • whl_am_volk_te37
  • whl_am_works_emotion
  • whl_am_works_equip1
  • whl_am_works_equip3
  • whl_am_works_s2r
  • whl_am_works_vskf
  • whl_am_works_vsxx
  • whl_am_works_xd9
  • whl_stk_am_vantage_07
  • whl_stk_aud_r8_08
  • whl_stk_aud_rs4_07
  • whl_stk_buk_grandnational_87
  • whl_stk_chv_camaro_06
  • whl_stk_chv_camaross_69
  • whl_stk_chv_cobalt_05
  • whl_stk_chv_corvettez06_07
  • whl_stk_chv_impala_96
  • whl_stk_chv_police_96
  • whl_stk_cry_300c_06
  • whl_stk_dge_challenger_06
  • whl_stk_dge_challenger_70
  • whl_stk_dge_charger_06
  • whl_stk_dsn_280z_75
  • whl_stk_duc_999r_06
  • whl_stk_duc_monster_s4r_07
  • whl_stk_frd_boss302_69
  • whl_stk_frd_cobra_04
  • whl_stk_frd_focus_04
  • whl_stk_frd_gt_06
  • whl_stk_frd_mustang_06
  • whl_stk_kaw_ninja_zx14_06
  • whl_stk_lam_gallardo_06
  • whl_stk_lam_miura_71
  • whl_stk_lam_murcielago_06
  • whl_stk_mbz_s600
  • whl_stk_mbz_sl65_07
  • whl_stk_mit_3000gt_99
  • whl_stk_mit_eclipse_99
  • whl_stk_mit_evo_06
  • whl_stk_mzd_rx7_95
  • whl_stk_mzd_rx8_06
  • whl_stk_nsn_240sx_98
  • whl_stk_nsn_350z_06
  • whl_stk_nsn_gtr_08
  • whl_stk_nsn_skyline_99
  • whl_stk_pon_solstice_06
  • whl_stk_pon_transam_79
  • whl_stk_sln_s281_06
  • whl_stk_sln_s7_06
  • whl_stk_vw_golf_07
  • whl_stk_vw_golf_83
  • whl_stk_vw_scirocco_88
Wheels starting with whld_: 31 (click to open)
  • whld_am_5zigen_fn01rc
  • whld_am_5zigen_zr520
  • whld_am_dpstr_ds06
  • whld_am_dpstr_ds07
  • whld_am_dytn_c2_crosswell
  • whld_am_dytn_knockoff_otd
  • whld_am_dytn_knockoff_rlreverse
  • whld_am_dytn_knockoff_sceptre
  • whld_am_dytn_rlwelllace
  • whld_am_konig_afterburner
  • whld_am_konig_again
  • whld_am_konig_csharp
  • whld_am_konig_toxxin
  • whld_am_tis_tis13
  • whld_am_tis_tis14
  • whld_stk_am_db9_08
  • whld_stk_aud_s5_08
  • whld_stk_buk_riviera_63
  • whld_stk_cad_xlrv_08
  • whld_stk_chv_belair_55
  • whld_stk_chv_chevelle_70
  • whld_stk_chv_impala_64
  • whld_stk_chv_malibu_65
  • whld_stk_duc_1098_07
  • whld_stk_lr_hse_08
  • whld_stk_lr_sport_08
  • whld_stk_mbz_cl65amg_08
  • whld_stk_mbz_clk63amg_08
  • whld_stk_mit_eclipse_09
  • whld_stk_mit_evox_08
  • whld_stk_pon_gto_66

Clone this wiki locally