Skip to content

Getting Started

RenanQueiroz edited this page Nov 26, 2026 · 15 revisions

Getting Started

Setup, build and credits live in the project README. This page only adds what the source says about first launch and where settings live. Run notes are in documentation/RUNNING.md.

Requirements

From the README:

Item Requirement
SDK ReXGlue SDK 0.11.0 (LAR-RXSDK, branch LARecomp). A prebuilt SDK needs nothing more; building the SDK from source needs a Vulkan SDK 1.4.313 or newer.
Build tools CMake 3.25 or newer, Clang (LLVM or Visual Studio), Ninja. MSVC does not build the project.
Game data Your own copy of the game. The repository ships none.
Platform Windows x86-64 is the target; Linux x86-64 and the Steam Deck run through Vulkan. LARECOMP_GPU (the Plume renderer) defaults to ON (CMakeLists.txt).
Linux and the Steam Deck A Vulkan driver. A driver without VK_KHR_sampler_mirror_clamp_to_edge (Vulkan 1.2's samplerMirrorClampToEdge) still runs: the game's mirror-clamp texture modes are made as mirrored repeat and the log says so ([gpu] sampler: this device cannot make mirror-once addressing ...). A game installed with the LARecomp launcher is built with the launcher's build kit, which brings its own C++ library (libc++), so it needs no particular libstdc++. A build made with the system's compiler (by hand, or by the launcher where its kit cannot start) links the system's libstdc++, which must be version 13 or newer (SteamOS 3.5+, Ubuntu 24.04+, Fedora 39+, Arch kept up to date; the README's "Linux and the Steam Deck" lists them): an older system refuses to start and the terminal shows a GLIBCXX_3.4.31 not found line. The game needs no GTK: where it asks for a file (the ISO of the first-run setup, a save to import) it opens the system's file chooser (the desktop portal, or zenity) and, on a system that has neither, shows a box to type the path in. Online play is not available on Linux yet.

Game data folder

LARecomp needs a folder holding default.xex and at least one of xarchive_cache.rpf, xarchive_audio.rpf, xarchive_audlo.rpf (src/larecomp_app.cpp). A half-finished install is rejected.

Lookup order at startup:

  1. --game_data_root on the command line, if it is valid.
  2. The MCLA_GAME_DATA environment variable, if it is valid.
  3. The folder remembered from a previous ISO install.
  4. Walking up from the executable folder. At each level it checks MCLA_Game_Files/, game/, assets/, then the level itself.

An invalid --game_data_root or MCLA_GAME_DATA value is reported and ignored; auto-detection continues. If nothing is found, the install wizard runs (see below). The fallback location is assets/ beside the executable.

First launch

Several dialogs can appear before the game starts. Each is skipped when it has nothing to offer.

Dialog When it appears How to skip or script it Source
ISO install wizard No valid game data folder was found. Validates that the ISO is an Xbox 360 image whose default.xex carries the expected title, then installs into the game data folder. LARECOMP_INSTALL_ISO environment variable runs an unattended install. src/isoinstaller/larecomp_iso_installer.cpp
Save import wizard No usable mc4.sav exists in the content store yet. Imports a save from Xenia (mc4.sav, copied as is) or RPCS3 (RAGE.SAV, build tag patched). skip_save_import cvar. Skipping is not an error; the game creates a new save. src/saveporter/larecomp_save_porter.cpp
Save picker Opens at each start by default, even when there is one save. Choose an existing save, start a new one or tick Always use this save. Always use this save sets profile_auto_select with user_name. Hold Shift at startup to open the picker for one run. src/profile/larecomp_profile_picker.cpp

The ISO install wizard and the other dialogs are ImGui windows drawn before the runtime exists.

Where things are written

Path Contents Source
larecomp.toml Saved settings. Flat key = value lines. src/mc_engine/core/config_save.cpp, README
logs/larecomp_NNN.log Rolling main log. documentation/RUNNING.md
cache/shaders/ (shader_pack_dir) The shader packs, built from your game files on the first start. Its city folder holds the ray tracing data (see Ray tracing data). Where that folder cannot be written the packs go to larecomp/cache/shaders in the local application data folder. src/gpu/shaders.cpp
logs/city_pack_build.txt, logs/city_hit_build.txt, logs/city_hit_check.txt The logs of the city data actions. documentation/RUNNING.md
logs/join_server.txt, logs/online_tables.json The result of --join_server and the tables the launcher reads. See Online Play. src/mc_engine/online/server_browser/join_server_core.h, src/mc_engine/online/online_tables_core.h
User data root Saves, shader cache, achievements. Defaults to a larecomp folder under the user's Documents. If that cannot be written, data moves to a larecomp folder under the local application data folder, existing saves are copied, and a .moved_from_documents marker keeps it there. Setting user_data_root (app.user_root) overrides the choice. src/larecomp_app.cpp
mc4_owned_cars.bin Cars beyond the first 30, kept beside the save when owned_cars_limit is above 30. Copy the whole save folder to keep the extra cars and their matching files. src/mc_engine/hooks/owned_cars.cpp
<mod folder>/ modloader/, mods/ or models/ beside the executable. See Mod Loader. src/mc_engine/modloader/modloader.h
debug_options.txt, menu_cameras.txt Read from the working directory. See Debug Options and Menu Cameras. src/mc_engine/hooks/dev_options.cpp, src/mc_engine/camera/menu_camera.cpp

The garage holds 30 cars by default. Set owned_cars_limit in larecomp.toml and restart to keep up to 255. If you saved with the stock limit after using the expanded garage, restore your higher limit and set owned_cars_recover_unmatched=true for one start to recover the extra cars.

Ray tracing data

SUN SHADOWS RT, CITY IN CAR PAINT RT, BOUNCE LIGHT RT, ray traced ambient occlusion and SURFACE REFLECTIONS RT use city data. The game or launcher makes it from your game files under cache/shaders/city. It takes about 500 MB.

  • The launcher's setup builds it after the shader packs and graphics pipelines. It needs about 260 MB of free space for the first file and 300 MB for the other two. If setup only finishes the first file, SUN SHADOWS RT can still use it and setup retries the rest on the next update.
  • Without the launcher the game builds the same files itself, in the background, the first time an effect that reads them is on; the rows that wait say BUILDING DATA until they are done.
  • By hand: larecomp.exe --build_city_pack, then --build_city_hit; --check_city_hit says whether they are current (and --check_city_hit_deep=true reads them all back). See Launch actions that do a job and close.
  • Delete the city folder and it is built again. It is also built again by itself when the game files or the program's version change.

Launcher interface

For launcher or setup tooling, the game can export settings-ui.json with --dump_settings_ui and probe the current machine with --probe_machine[=<file>]. The build publishes install-manifest.json for setup actions and paths, and --describe reports the game's contract identity. The schemas and examples are in documentation/contract/.

The machine report includes per-API ray tracing and Ray Regeneration facts for D3D12 and Vulkan, along with the NVIDIA adapter-name check for DLSS Frame Generation. The install manifest supplies individual game-root and debug-menu launch arguments and the supported default.xex size. The settings UI file reports both the first-start preset and the preset used for an older file with covered settings.

Settings: how they are set

Most settings are cvars. A cvar can be set three ways:

  • In the pause menu: Options, then the Settings tab. Rows are listed in Settings Reference.
  • On the command line as --name=value.
  • In larecomp.toml beside the executable.

On first start, the native renderer uses the recommended graphics preset for your GPU. A saved preset takes precedence. An older file with saved effect settings starts on CUSTOM if it has no preset. The game renders at native resolution by default. To render at a lower resolution, open GRAPHICS > DISPLAY, choose FSR 3.1 or DLSS where available, and pick a lower render resolution.

Every user-facing cvar is listed in Settings Reference, with the menu row when one exists.

Names: since 0.11 the SDK's own settings have scoped names (gpu.vsync, ui.fullscreen, app.user_root) and LARecomp's own are larecomp.<name>. The names players know still work in the file, on the command line and in the environment (vsync, mcla_gpu_ao, --mcla_gpu_ao=..., REX_MCLA_GPU_AO); Settings Reference lists the new names.

When the game rewrites larecomp.toml

Settings changed in the pause menu apply at once and are saved when the submenu is left (src/mc_engine/menus/pause_menu.cpp); closing the game with Alt+F4 or the window's close button while a page is still open saves its change too. Rules from src/mc_engine/core/config_save.cpp and src/profile/larecomp_profile_store.h:

  • Only cvars changed at runtime (by a menu, the F4 settings panel or the console) are written. Values that came from the command line, the environment or the file itself are not.
  • A cvar tagged debug-only that was changed while the game ran is never written, and its line in the file, if there is one, is not touched: debug settings last one session. That covers the DEBUG menu, the F4 panel and the console. The F4 panel's Ctrl+S says how many it left out. To keep one, use a launch argument or write the line by hand.
  • Only the affected lines are rewritten. Other lines, comments and keys the build does not know stay as they are.
  • A changed value that returned to its default only rewrites a line the file already has.
  • The vendor denoiser toggle saves an explicit ON or OFF. For older files, mcla_gpu_denoiser=rr means ON, ours means OFF, and auto follows the current default. A saved mcla_gpu_vendor_denoiser takes precedence.
  • Keys are looked up above the first [table]; new keys are added there.
  • The file is written to a temporary file and moved over the original, so a crash mid-write does not leave half a config.
  • A value that cannot be written as valid TOML is skipped with a warning in the log.

Restart-only rows are different: the row's label carries (RESTART) or (NEXT START), the new value is written to the file when the submenu is left, and the live value does not change until the next launch. Leaving a menu with such a change offers RESTART NOW or later. The menu writes them as they are listed in the log: N restart-only setting(s) written to <file>; they apply on the next launch. The renderer and the graphics API are not menu rows any more (see Settings Reference).

Environment variables

The README lists the variables the build reads (REX_LOG_LEVEL, MCLA_GAME_DATA, MCLA_FPS_CAP, MCLA_MAX_FRAME_MS, MCLA_TIMING_LOG, MCLA_TEX_SOFT, MCLA_TEX_HARD, MCLA_TEX_RTT, MCLA_VSYNC, MCLA_REFRESH_RATE, MCLA_ALLOW_INVALID_FETCH, MCLA_NO_STUB_SWEEP, LARECOMP_LOG_FILE). Defaults and effects are in Settings Reference.

Log level

Non-Release builds log at trace by default, which the README describes as enough synchronous disk writing to cause stutter. Set REX_LOG_LEVEL=warn. It has to be an environment variable (documentation/RUNNING.md).

Overlay and hotkeys

Key (cvar) Action Source
F4 (bind_mcla_settings) Toggle the settings panel. The key is the setting ui.bind.mcla_settings (the flat name bind_mcla_settings works too), F4 by default. The SDK's own settings overlay is unbound so that it does not take F4. src/larecomp_app.cpp, src/mc_engine/ui/settings.cpp
F3 (bind_mcla_telemetry) Toggle the telemetry overlay. The key is the setting ui.bind.mcla_telemetry (the flat name bind_mcla_telemetry works too), F3 by default. The SDK's own debug overlay is unbound so that it does not take F3. src/larecomp_app.cpp, src/mc_engine/ui/debug_overlay.cpp
F5 (bind_mod_browser) Mod browser. See Mod Browser. src/mc_engine/modloader/modsbrowser/mod_browser_ui.cpp
F6 (bind_server_browser) Server browser. See Online Play. src/mc_engine/online/server_browser/browser_ui.cpp
F8 (bind_identity) Online identity window. See Online Play. src/mc_engine/online/identity/identity_ui.cpp
F9 (bind_map_warp) Warp to a mod's warp point and back. See Map Mods. src/mc_engine/gameplay/map_warp.cpp
F1 (bind_mcla_compare) Compare key (Plume renderer), a developer tool: only in builds made with the CMake option LARECOMP_DEV_TOOLS=ON (off by default, so not in a release). Flips the effect selected with F12 the other way than your setting has it, with a label at the top of the screen; press again to go back. Nothing is saved. See Debug Options. src/mc_engine/display/effect_compare.cpp
F2 (bind_gpu_texture_dump) Dump the textures of the next frame (Plume renderer). See Texture Modding. src/gpu/renderer.cpp
F10 (bind_gpu_trace_next) Write a raw trace of the next guest frame (Plume renderer). src/gpu/renderer.cpp
F11 (bind_gpu_renderdoc_capture) Capture the next frame with RenderDoc (Plume renderer). src/gpu/renderer.cpp
F12 (bind_mcla_compare_next) Developer builds only (LARECOMP_DEV_TOOLS=ON): selects the next effect for the compare key (bounce light, contact shadows, sun shafts, ambient occlusion, shadow filter, self-reflections, then the first again), with a label at the top of the screen. src/mc_engine/display/effect_compare.cpp
Ctrl+F12 (ui.bind.mcla_director) Open or close the Director panel, the trailer toolkit's window (the setting mcla_director_panel, also a row on the DEBUG menu's TOOLS page). See Settings Reference. src/mc_engine/ui/director_panel.cpp

The README and documentation/RUNNING.md describe the pause menu as Start or Escape, then Options. The tab list in those files predates the current menu; use Settings Reference for the layout in the source.

Known issues

See the README's "Known issues" table and Troubleshooting.

Clone this wiki locally