Auto Modellista Recomp

Auto Modellista Recomp is a native Windows port of Auto Modellista that offers widescreen, higher resolutions, and System Link.

README

Auto Modellista Recomp

Auto Modellista: static recompilation for Windows

Capcom's cel-shaded racer from 2003, recompiled to run natively on Windows:
widescreen, up to 4x resolution, System Link on your network, Xbox Live through Insignia, seven languages.

Latest release Downloads Windows 10/11 x64 License: GPL v3

Install With Decomp Buddy

Suzuka at 16:9, render scale 3 and SMAA

How to play

You need your own copy of the Xbox disc: Auto Modellista (USA), the retail "(USA, Japan)" disc (Redump CRC d5b510ed), as a disc image (a full Redump .iso or a plain XISO) or a folder with its files. No game files come with the recomp. Setup checks every file against the retail disc: a copy whose default.xbe was patched to run from a hard drive, or has a title update applied, is refused (Setup shows its size and SHA-1); dump the disc again.

  1. Download AutoModellista-Recomp-Setup-<version>.exe from the releases, run it, pick a folder you can write to (the default is C:\Games\Auto Modellista Recomp) and your disc image or folder. Setup copies the game files from it and checks every one against the retail disc. Tick the hi-res texture pack if you want it (a 750 MB download).
  2. Start Auto Modellista Recomp from the Start menu. F1 in the game, or the Settings shortcut, has the video, language and control settings.
  3. For Xbox Live through Insignia, run Auto Modellista Recomp Insignia Setup first.

Or install it from RecompLauncher: drop in your disc image and press Play. Or from Decomp Buddy, or by unpacking the portable AutoModellista-Recomp-v<version>-Windows-x64.zip yourself: the program is automodellista_recomp.exe, and the first time it starts it asks for your disc image or folder and copies the game files into a game folder beside it, each checked against the retail disc. The hi-res texture pack also comes as its own installer (AutoModellista-Recomp-HiRes-Textures-<n>-Setup.exe).

Problems: the game writes a log of every run to SaveData\logs in its folder (the newest five are kept); attach the newest one to a bug report.

Features

A race at 16:9The countdown on the grid
The main menuSystem Link quick match
  • Widescreen at any shape (Hor+: more track at the sides, original proportions), or a full-screen 4:3.
  • Render scale up to 4x, SMAA, anisotropic filtering, vsync, borderless fullscreen: every video setting changes live from the F1 menu.
  • Languages: English, Spanish, French, German, Italian and Japanese from the game itself, and Portuguese (Brazil) as a custom add-on.
  • System Link: races between PCs on your network, a mode the game never had.
  • Xbox Live through Insignia.
  • Optional 4x hi-res texture pack; keyboard play and any controller SDL knows.

About

A native Windows x64 build of Capcom's Auto Modellista (Xbox, 2003, title 0x4343000E), recompiled from the original default.xbe with the xboxrecomp toolkit.

docs/NOTES.md covers what was learned and why each setting exists. No game data is in this repo: you supply your own disc.

Requirements

  • Windows 10/11 x64, Visual Studio 2022 (Build Tools is enough) with the C++ workload
  • CMake 3.20+, Git
  • Python 3.10+ (the pipeline installs capstone into a local .venv)
  • extract-xiso
  • Your own Auto Modellista disc image: the retail NTSC-U/J release, "Auto Modellista (USA, Japan)", Redump CRC d5b510ed (its default.xbe: 4,235,264 bytes, SHA-1 c462d414e535dd4643eba9c0fc71795e2b6b3fb0).

Build

git submodule update --init
.\scripts\apply-patches.ps1
py -3 -m venv .venv; .\.venv\Scripts\pip install capstone
.\scripts\extract-iso.ps1 "D:\path\Auto Modellista.iso"
.\scripts\regen.ps1
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release

What the steps do:

  1. git submodule update --init fetches the toolkit, pinned at 3eb5746.
  2. apply-patches.ps1 applies this game's toolkit patches (patches\). It's safe to re-run.
  3. The .venv line sets up the Python environment for the pipeline.
  4. extract-iso.ps1 extracts the disc into game_files\.
  5. regen.ps1 runs the pipeline (xbe_parser, disasm, func_id, abi, recomp) and writes src\recomp\gen\.
  6. The two cmake commands configure and build the exe.

After editing src\am_overrides.c, only the last pipeline step is needed: .\scripts\regen.ps1 -RecompOnly.

Run

.\scripts\run.ps1
Logs

Every run writes SaveData\logs\automodellista-<date>-<time>.log (the newest five are kept), whether it is started from a shortcut, a script or RecompLauncher; anything that redirects the game's output still gets every line too. The log starts with a [BUILD] line (version, Windows, CPU, GPU, memory) and a [SETTINGS] line, ends with [CRASH] lines if the game crashes, and has the Windows user name, profile folder and computer name replaced by %USERNAME%, %USERPROFILE% and %COMPUTERNAME%, so a player can attach it as it is. Past 20 MB only crash lines are kept. RECOMP_LOG_UNBUFFERED=1 writes it straight to the file (debugging).

Logs go to work\run_out.log and work\run_err.log. Useful flags:

  • -Cpu: software renderer
  • -Watchdog 120: kill after 120 s and dump the guest stack
  • -Profile: hot-function report every 10 s
Menus: Esc, F1 and Config.exe
  • Esc asks "Quit Auto Modellista?" (no / yes).
  • F1 (or BACK + START on a controller) opens the settings over the game, in two pages:
    • video: render scale, screen shape, race display, anti-aliasing, texture filtering, hi-res textures, picture scaling, window or fullscreen, vsync, and the language.
    • controls: keyboard play on or off, and two keys for each of the game's controls (accelerator, brake, emergency brake, steering, shifts, rear view, change view, hazard lights, horn, start/pause, menu directions). Click a key slot or press Enter on it, then press the new key. Right-click or Delete clears a slot.
  • Keyboard, mouse (point, click, right-click to step back, wheel) and controller (d-pad, A, B) all work in the menus.
  • Changes are saved at once to automodellista.ini ([settings] and [keyboard]), and every video setting changes at once, with no restart: the render scale and screen shape remake the picture's render targets (a short hitch), the race display and filtering apply from the next frame. The language applies at the next start: leaving the menu after changing it asks whether to restart now. Mipmaps stay on; AM_MIPMAPS=0 in the ini still turns them off.
  • The game is paused while a menu is open: its display clock is held and the sound muted. Not on Xbox Live or in a system link game (traffic with Xbox Live or another console in the last few seconds): there a paused console would drop out, so the game keeps running under the menu. AM_MENU_PAUSE=0 under [settings] turns the pause off everywhere.
  • Config.exe, next to the game, is the same two pages in a window of its own, for setting things up before you play. Its "play" button starts the game.
  • The menus, the Esc box and Config.exe are in the language picked in them (see Languages).
F1 menu: video

video

F1 menu: controls

controls

The look follows the game's own options screens (purple frame, capsule rows, the gold hose couplings on the selected row, the navy info box), with the manual's checkered flag and the strategy guide's headings.

Keyboard play is on by default. The defaults:

ControlKeysControlKeys
accelerator (A)W, Zrear view (black)R
brake (X)S, Cchange view (white)F
emergency brake (B)Space, Xhazard lights (Y)H, V
steer (left stick)A, Dhorn (BACK)G, Backspace
up shift (R)E, 3start / pauseEnter, P
down shift (L)Q, 1menu directions (d-pad, also steers)arrow keys

The bindings drive pad 1. A controller works alongside them.

Widescreen

The game matches your desktop's shape by default (auto: the primary monitor's resolution, so 16:9, 16:10, 21:9 or 4:3 without setting anything). To pick one:

.\scripts\run.ps1 -Aspect 4:3

or put AM_ASPECT=4:3 (or 16:10, 16:9, 21:9, a ratio; auto again for the desktop's) under [settings] in automodellista.ini next to the exe. 4:3 is the original Xbox picture. This is Hor+: the game keeps its height of view and shows more track at the sides instead of stretching. Menus, movies and other 2D stay 4:3 in the middle, and the race HUD (position, times, lap count, course map) moves out to the screen edges. AM_HUD=0 keeps the HUD in the middle, and AM_HUD_MARGIN=<px> pulls it in from the edges. The 3D keeps the original proportions at every shape: the game builds its scene at the screen's shape, so the sides are drawn and nothing pops in there (AM_WIDE_CULL=0 goes back to its 4:3 view). At 4:3 the picture is zoomed to fill the screen with no black frame (AM_FILL). Known limit: the tachometer and speed are a 3D model and stay beside the middle. Ported from apexJCL/automodellista-recomp.

Picture options

Under [settings] in automodellista.ini (or as environment variables):

SettingValuesWhat it does
AM_RENDER_SCALE1 (default) to 4Draws at that multiple of the Xbox's 640x480: 2 = 1280x960, 3 = 1920x1440 (wider at 16:9). Sharper 3D, HUD and menus; GPU cost only.
AM_ANISO0 (default), 2, 4, 8, 16Anisotropic filtering: sharper road and walls at a slant.
AM_MIPMAPS1 (default), 0Full mip chains for the textures the game mip-mapped: less shimmer in the distance.
AM_PRESENT_FILTERlinear (default), nearestHow the picture is scaled to the screen: smooth, or sharp square pixels.
AM_FULLSCREEN1 (default), 0Start in borderless fullscreen (0: a window). Alt+Enter or F11 toggles.
AM_VSYNC1 (default), 0Present on the monitor's refresh, no tearing; 0 presents at once, tearing allowed.
AM_LANGUAGEen (default), es, fr, de, it, ja, ptThe game's language: English, Spanish, French, German, Italian or Japanese (the European and Japanese releases' text, which this disc holds), or Portuguese (Brazil), our own translation: the game runs in Spanish with its text pointed at ours (tools/lang/pt-BR.json, src/am_lang_game.c); not yet reviewed by a native speaker. Messages, help and the Xbox Live screens change; the menus' picture labels stay English, as in the European release. Applies at the next start: the F1 menu offers to restart. The F1 menu, the Esc box and Config.exe change to it at once (their text: tools/lang/make_lang_table.py).
AM_WIDE_CULL1 (default), 0Widescreen: the game culls for the whole wide view (0: its 4:3 view, so objects pop in and out at the sides).
AM_FILL1 (default), 0Every screen shape: menus, the title and races fill the screen's height (the game's 448-line picture, zoomed; the race HUD stays on screen). At 4:3 this trims about 3% from each side, as a TV's overscan did. Movies always fill. 0: the black bands at the top and bottom stay.
AM_SIGNUP0 (default), 1The sign-in list (Xbox Live and System Link) has no "Sign up" row: accounts are made or recovered with Setup Insignia. 1 keeps the game's row.
AM_TEXT_SHARP1 (default), 0Menu, help and pause text drawn crisp (the game's 16-pixel letters sharpened); 0: as the game draws them.
AM_HELP_CENTER1 (default), 0Widescreen: the menus' help box and its text centred on the background's TV picture (the game puts them right of centre); 0: where the game puts them.
AM_GPUhigh-performance (default), defaultLaptops with two GPUs: run on the dedicated one (default: let Windows choose).
AM_ASPECTauto (default: the desktop's shape), 16:9, 16:10, 21:9, 4:3Hor+ widescreen (see above).
AM_AAoff (default), smaa, smaa_highAnti-aliasing: SMAA 1x on each finished frame, before it is scaled to the window. smaa is the Ultra preset; smaa_high is cheaper. HUD and text stay sharp.

The game itself has no anti-aliasing (the Xbox drew it at one sample per pixel). With AM_AA=smaa jagged edges (car outlines, road lines, poles) are smoothed. On a Radeon 680M (Ryzen 7 6800H) a race holds 60 fps with AM_RENDER_SCALE=3 and AM_AA=smaa together; scale 4 with SMAA is at the edge (an occasional repeated frame).

The log names the GPU the game got ([D3D11] adapter: ...). If it says "Microsoft Basic Render Driver", Windows is drawing in software, usually because the graphics card is disabled or has no driver: everything above render scale 1 will be slow until it is enabled in Device Manager.

For example, for a sharp 1440p picture:

[settings]
AM_RENDER_SCALE=3
AM_ANISO=16

The window title shows the frame rate. Races hold 60 fps; see docs/PERFORMANCE.md for what changed and where the time goes. Switches for comparing against the older paths, all on by default:

SettingWhat 0 does
AM_GPU_VSHRuns the game's vertex programs on the CPU again instead of the GPU.
RECOMP_PB_SEG_ACKThe GPU model stops answering D3D's KickOff partway through a pushbuffer segment, so the game waits for every whole segment (races drop to 30-59 fps).
RECOMP_PB_SW_INTRD3D's "wait for the GPU" interrupt (software method 5) is no longer delivered. Without it, a game that gets far ahead of the GPU model can freeze.

To measure how fast the game could run without the 60 Hz pace, set all of these (a test setting: the game steps once per vblank, so the race runs about 4x real speed):

SettingEffect
AM_UNCAPPED=1Presents with tearing, so the monitor's refresh no longer paces the window.
RECOMP_VBLANK_HZ=1000Raises the emulated vblank rate (30-1000; the default is 60).
RECOMP_VBLANK_HZ_AFTER=115Keeps 60 Hz until this many seconds after boot. The CRI logo movie never ends at a raised rate.
AM_FPS_LOG=1Logs the frame rate every second ([FPS] lines).

For checking smoothness at 60 fps (docs/PERFORMANCE.md, "Frame pacing"):

SettingEffect
AM_PACE_LOG=1Each second: display refreshes, frames shown, repeats and drops ([PACE] lines), and every slow frame ([PACE] hitch).
AM_HITCH_PROFILE=1With AM_PACE_LOG, where the game, GPU model and vblank clock threads were during each frame of 60 ms or more ([HITCH] lines).
AM_ASYNC_SHADERS=0Compiles new shaders on the GPU model's thread again (a 100-200 ms hitch each).
AM_LOG_ASYNC=0Writes the log file from the thread that logs again (a slow disk write stalls that thread).
Languages

The main menu in Japanese

language in F1 or Config.exe (AM_LANGUAGE): English, Español, Français, Deutsch, Italiano, 日本語 or Português.

  • The first six are the game's own text: the European and Japanese releases' translations are on the US disc too. The game reads the console's language setting when it starts, so a change applies at the next start: leaving the F1 menu after changing it asks whether to restart now.
  • What changes: messages, the menus' help, car and part descriptions, garage life, save and load, and the Xbox Live screens. The menus' picture labels ("garage life", "options"...) stay English, as in the European release.
  • The F1 menu, the Esc box and Config.exe switch at once (their text: tools/lang/make_lang_table.py), and so do System Link's "New name" and the network menu's help.

Português (Brasil) is a custom language add-on. The game never shipped in Portuguese: it runs in Spanish and, before it starts, every pointer to the Spanish text is moved to our translation (src/am_lang_game.c, about 1,400 strings and the Xbox Live screens' messages, each Spanish string checked by CRC-32 first). The translation is tools/lang/pt-BR.json: addresses, CRCs and the Portuguese, no game text. It has not been reviewed by a native speaker yet; corrections are welcome on the issues page. To work on it, tools/lang/extract_text.py and spanish_strings.py dump the game's text from your own disc into work/lang (git-ignored), pt_check.py checks codes, spacing and line lengths, and make_pt.py packs the translation and makes src/am_lang_pt.h.

Dumping the textures (for a hi-res texture pack)

AM_TEX_DUMP=1 saves every texture the game shows, once, as a PNG in textures_dump\ next to the exe; AM_TEX_DUMP=D:\some\folder picks the folder. Play (or run work/ws/tex_tour.sh, which drives every car, style and course) and the folder fills up. Each file is named

<hash16>_<W>x<H>_f<NV2A format>.png

and index.csv lists them with their size, format, mip levels and the frame they first appeared on. The hash is a 64-bit FNV-1a of the texture's bytes in the game's memory as uploaded (and its palette), so a texture pack can be matched to the game's textures by name: a replacement keeps the hash and may be any multiple of the original size. Textures the game rewrites as it goes (text drawn into a glyph sheet, movie frames) are not saved.

Every texture on the disc, without playing:

py -3 tools\textures\extract_textures.py
py -3 tools\textures\merge_dump.py

The first writes all of them (about 2,000, 39 MB) to work\textures_extracted with the same names the dump uses; the second adds what only the dump has and puts both in work\textures_all. Needs Pillow and numpy. How it works:

  • The textures are Sony TIM2 images in src\afs\afs01_xu/_xj/_xp.afs (one per language; afs.py reads the CRI archives), mostly