GTRacingMotorAcademy-PC-Port

GTRacingMotorAcademy-PC-Port is a native Windows and Linux port of the iPad game GT Racing: Motor Academy that adds PC features like any resolution and gamepad support.

README

GTRacingMotorAcademy-PC-Port

Latest release License: MIT OR GPL-3.0-only Platform: Windows and Linux CPU: x86 (Intel or AMD) Downloads

Features • Requirements • How to install • Controls • Configuration • Troubleshooting • Known Issues • Patch Notes • Privacy • How to compile • Contributing • License

GT Racing: Motor Academy is a racing game by Gameloft for the iPhone and iPad, built around driving licences: tests and events earn the licences, cars and money that open the next races.

This repository is a native Windows and Linux x86 port of the iPad game GT Racing: Motor Academy Free+ HD, version 1.3.4b. The game's 32-bit ARMv7 binary is statically recompiled: every function is translated ahead of time into C, compiled for x86 and linked with a host that replaces the iOS libraries the game imports (UIKit, OpenGL ES, OpenAL, GameKit, Foundation and the rest) with SDL3 and desktop OpenGL. There is no CPU emulation and no iOS emulation at run time. Both platforms run the same generated code and the same host; Linux adds a small platform layer (host/core/compat_linux.c).

The port adds PC features, all on by default. Each has a GT_* key in gtracing.ini; 0 restores the game's own behaviour. Current version: 1.0.1.

Features

FeatureWhere to change itDefault
Any resolution, 16:10, 16:9 and 21:9 screens with the menus and HUD kept in shape (WIDE_UI)Options > Display*, GT_RESOLUTION GT_WIDE GT_WIDE_UIthe monitor's
Full screen or a windowAlt+Enter, Options > Display*, GT_FULLSCREENfull screen
MSAA and anisotropic filteringOptions > Display*, GT_MSAA GT_ANISOTROPIC4x, 16x
Soft car reflections on the Scandinavia tracks: glass softened, body sharpGT_SOFT_REFLECTION GT_SOFT_REFLECTION_TRACKS3
PostFX: the paid 2010 iPad version's bloom, or the game's unused bloom pass, fixedOptions > Display*, GT_POSTFXEnhanced
The iPad 2's full motion blur in the iPad 3 modeOptions > Display*, GT_FULL_BLURauto
The 3D car scene behind the main menuGT_MENU_3Don
Keyboard, mouse and gamepads (Xbox and PlayStation layouts), remappable keysOptions > Controls*, GT_PC_CONTROLSon, Touch Screen Off
Menus driven by the keys or a pad, with a pointer that snaps to the buttonsGT_PAD_MENUon
Look back and a 360-degree look around the carGT_RACE_LOOKon
Replay zoom with the mouse wheel, replay control from the padGT_REPLAY_ZOOM GT_REPLAY_PADon
Local and Bluetooth play over a LAN or a VPN; Online play peer to peer through room codesGT_LAN_MULTIPLAYERon
The Red Bull leaderboard, kept locally and shared through a cloud serverGT_RED_BULL_BOARD GT_CLOUD_BOARDon
Coin-for-cash shop, full prizes for repeated results (3x), car service paid in coinsGT_COIN_SHOP GT_REPEAT_PRIZE GT_PRIZE_MULT GT_SERVICE_PRICEon
Offline Top 10 Cars listGT_TOP_CARSon
Exit tile on the main menu, Name tile on the multiplayer pageGT_EXIT_BUTTON, Name*on
Add-on cars and the paid edition's licence tests and audio, loaded from add-on\GT_ADDONSon when the files are there

* The PC menus (Options > Display, the keys page in Options > Controls, the Exit and Name tiles) are the game's own menu files with changes, so they are not in the download. They go in the optional patch\ folder. Without them the game shows its own menus and gtracing.ini holds the same settings.

PATCHNOTES.md lists what changed in each release, FIXES.md the engine, rendering and platform fixes.

Disclaimer

GT Racing: Motor Academy is a trademark of Gameloft. The game and its assets are the property of their respective owners, as are the car makers' names and marks. This is an unofficial, non-commercial fan project. It is not affiliated with Gameloft, and Gameloft has not made, approved or supported it.

The authors do not promote or condone piracy. No copyrighted Gameloft assets are distributed: this repository and its releases hold no textures, models, sound, menus, data, pictures or executable code of the game. To use this software you need your own legally obtained copy of the iPad game (GTRacingFreemiumHD.app).

Note

The program's icon is drawn from your copy of the game when the program is built; this repository holds none of the game's art.

System Requirements

WindowsLinux
Processorx86 (Intel or AMD). The program is 32-bit; tested on 64-bit Windowsx86 (Intel or AMD). The program is 32-bit (i386); runs on a 64-bit system with the 32-bit libraries below
SystemWindows 10 or 11. Tested on Windows 11Debian 13, Ubuntu 25.04 or newer (glibc 2.38+). Tested on Debian 13 under WSL2
LibrariesIncluded (SDL3.dll)The system's 32-bit SDL 3.2+, OpenGL and Mesa (or the GPU vendor's 32-bit driver); libcurl for the online leaderboard (optional)
GraphicsOpenGL 2.1 or newer. Tested on an NVIDIA RTX 3050 Ti and on AMD Radeon graphics built into the processorOpenGL 2.1 or newer, on X11 or Wayland
DiskAbout 1.5 GB for the game, 21 MB for the portAbout 1.5 GB for the game, 21 MB for the port

Not supported: ARM processors and macOS. Windows on ARM runs x86 programs through its own emulation; the port has not been tried there.

Setup Instructions (For Players)

  1. Get your own copy of the iPad game, GTRacingFreemiumHD.app, version 1.3.4b. An .ipa is a zip archive; the folder is Payload\GTRacingFreemiumHD.app inside it.

    Important

    The port is made from one build of the game. Other builds are not supported. SHA-1 of GTRacingFreemiumHD.app\GTRacingFreemiumHD must be eaeca1915d8b0a250583afed587f61ecb85a728a.

    To check yours: certutil -hashfile "GTRacingFreemiumHD.app\GTRacingFreemiumHD" SHA1 on Windows, sha1sum GTRacingFreemiumHD.app/GTRacingFreemiumHD on Linux.

  2. Download GTRacing-PC-Port-1.0.1-Windows-x86.zip from Releases. Check it with certutil -hashfile GTRacing-PC-Port-1.0.1-Windows-x86.zip SHA256 against the SHA-256 in PATCHNOTES.md. SHA256SUMS.txt in the zip lists each file inside it.

  3. Extract it to <game_dir>, any folder you can write to.

  4. Copy the contents of your GTRacingFreemiumHD.app into the empty <game_dir>\GTRacingFreemiumHD.app folder, so that <game_dir>\GTRacingFreemiumHD.app\GTRacingFreemiumHD exists.

  5. Start gtracing.exe. Keep SDL3.dll next to it.

Linux
  1. Install the 32-bit libraries. On Debian 13, Ubuntu 25.04 or newer:

    sudo dpkg --add-architecture i386
    sudo apt update
    sudo apt install libsdl3-0:i386 libgl1:i386 libgl1-mesa-dri:i386
    sudo apt install libcurl4t64:i386    # optional: the online leaderboard
    

    Other distributions: the same libraries in their 32-bit form. Ubuntu 24.04 and older have no SDL3 package. With NVIDIA's own driver, install its 32-bit libraries too.

  2. Download GTRacing-PC-Port-1.0.1-Linux-x86.tar.gz, check it with sha256sum against PATCHNOTES.md, and unpack it: tar -xzf GTRacing-PC-Port-1.0.1-Linux-x86.tar.gz.

  3. Copy the contents of your GTRacingFreemiumHD.app into the empty GTRacingFreemiumHD.app folder inside it. File and folder names may keep any mix of upper and lower case: the port looks them up without regard to case, as the iPad's file system does.

  4. Run ./gtracing from that folder (chmod +x gtracing first if the archive lost its permissions).

The folder then holds the following (on Linux, gtracing in place of gtracing.exe, and no SDL3.dll):

<game_dir>\
  gtracing.exe
  SDL3.dll
  gtracing.ini               settings
  README.txt
  IMPORTANT.TXT              where to find the files for patch\ and add-on\
  SHA256SUMS.txt
  GTRacingFreemiumHD.app\    your copy of the game (empty in the zip)
  patch\                     optional: the PC menus (empty in the zip)
  add-on\                    optional: one folder per add-on (empty in the zip)
    hyundai\                 Hyundai Genesis Coupe and i-oniq
    dodge\                   Dodge Charger 2012
    ferrari\                 Ferrari 288 GTO
    premium-licences\        the paid edition's three extra licence tests
    premium-audio\           the paid edition's 44 kHz audio
  home\                      made at the first start: your save
  gtracing.log               written at each start

Each empty folder in the archive holds a note, which the game ignores, on what goes in it.

Add-ons are built from other editions of the game you own, by the tools in Add-ons. None is in the download, and the game runs without them. Delete or move an add-on's folder to turn it off. A save that holds an add-on car still loads without that add-on; the car is hidden until the folder is back.

Updating, backing up and uninstalling
  • Progress is in home\: home\Documents holds the game's save, home\Library\Preferences the port's own files (controls, keys, player name, the local leaderboard). Back up home\ and gtracing.ini.
  • Updating from 1.0.0: extract 1.0.1 to a new folder, put the game in it, then copy home\, gtracing.ini, patch\ and add-on\ from the old folder. Saves and settings files have the same format on both platforms, so a Windows home\ also works on Linux.
  • Uninstalling: delete the folder. The only files written outside it are the garage's screenshots, in %USERPROFILE%\Pictures\GT Racing on Windows and ~/Pictures/GT Racing on Linux.
  • gtracing.log, gtracing.dmp (Windows) and gtracing.crash (Linux) are safe to delete at any time.
Command line
OptionWhat it does
--app "<path to GTRacingFreemiumHD.app>"Use a copy of the game kept elsewhere. Without it, the port looks next to itself, then up to three folders up
--selftestRun the host's self-checks instead of the game

Controls

KeyboardGamepad (Xbox / PlayStation)
SteerA / D, Left / Rightleft stick
Gas / brakeW / S, Up / DownRT / LT (R2 / L2)
Gear up / downShift / CtrlA / X (Cross / Square)
Change cameraCRB (R1)
Look backV (held)LB (L1) held
Look around (chase views)numpad 1-9right stick
PauseEscMenu (Options)
MenusW A S D or the arrows, Enter, EscD-pad or left stick, A (Cross), B (Circle)
Full screen / windowAlt+Enter

The mouse stands in for the touch screen: click to tap, drag to swipe, wheel to pinch in the replay.

Options > Controls has a Touch Screen switch, Off by default. Off gives keyboard and pad options (camera tilt, manual or automatic gears, auto gas), the keys page (Options > Controls > Keyboard / Gamepad, with the PC menus), a race HUD without touch icons, and "press" or "click" in place of "touch" in the texts. On restores the game's touch controls.

Configuration

gtracing.ini next to the program holds KEY=VALUE lines; # starts a comment. An environment variable of the same name overrides the file.

  • A missing or blank key, or a value that is not a number (GT_FPS=abc), takes the default. A number outside a setting's range is clamped (GT_CURSOR_SIZE=9 is 6).
  • A UTF-8 byte order mark is skipped. Lines over 510 characters and keys that are not names (letters, digits, _) are skipped and logged.
  • GT_INI=<file> reads another file. GT_HOME (save folder) and GT_LOG (log file; 0: no log) are paths.
  • The in-game Display page writes back to the file. Full screen, anti-aliasing, anisotropic filtering, motion blur and PostFX apply at once; resolution and aspect ratio apply after a restart (Restart to Apply).
Keys in the release gtracing.ini
KeyDefaultMeaning
GT_DEVICEipad3ipad3: the iPad 3's Retina art; ipad2: the iPad 2's
GT_RESOLUTIONmonitorpicture height in pixels: monitor, a number such as 1080, or 0 for the device's own
GT_WIDEmonitorscreen shape: monitor, or the width in points: 1024 (4:3), 1229 (16:10), 1366 (16:9), 1792 (21:9)
GT_FULLSCREEN11 full screen, 0 a window
GT_MSAAautoanti-aliasing samples: 0, 2, 4, 8, or auto (4)
GT_ANISOTROPIC16anisotropic filtering: 1 (off), 2, 4, 8, 16
GT_FULL_BLURautomotion blur: 1 full, 0 light, auto (light on integrated GPUs)
GT_POSTFX40 Off (as shipped), 2 Classic, 3 Classic Natural, 4 Enhanced
GT_BACKGROUND_THROTTLE130 fps behind other windows, 10 fps and a paused race when minimized (never in multiplayer)
GT_CURSOR_SIZE3mouse pointer size, a multiple of 32 px (1 to 6)
GT_PAD_GLIDE140ms for the pad pointer to glide to the next button; 0 jumps
Other keys

These are not in the release file. A line added to it changes them.

KeyDefaultMeaning
GT_SOFT_REFLECTION3car reflections on the listed tracks: the windows' reflection and the reflection's sky and far mountains softened, the body's track reflection kept sharp; 1 to 6 = softer; 0 = the original
GT_SOFT_REFLECTION_TRACKSblanktracks by file name, comma-separated, or all; blank = snowrally,snowrallyalt (the two Scandinavia tracks)
GT_LAN_MULTIPLAYER1Local, Bluetooth and Online multiplayer
GT_LAN_PEERSblankextra addresses Local should reach, comma-separated
GT_P2P_PORT28200the UDP port an Online room opens on the router
GT_CLOUD_BOARD1share the Red Bull leaderboard through GT_CLOUD_BOARD_URL; 0 keeps it offline
GT_CLOUD_BOARD_URLhttps://gt-redbull-board.gtracing-pc.workers.devthe leaderboard server (blank: this default)
GT_FPS, GT_VSYNC60, 1frame cap (0: none); vsync (0: off)
GT_LANGenthe game's language (e.g. fr)
GT_GPU_PROFILEautoigpu or full skips the GPU detection that auto settings follow
Feature switches

Each port addition is on by default and 0 turns it off.

KeyFeature
GT_DISPLAY_MENUthe Display page in place of Customer Care
GT_WIDE_UI, GT_WIDE_HUDmenus and HUD kept in shape on wide screens; HUD at the screen's edges
GT_EVENT_SIDES, GT_UPGRADE_SIDESthe neighbouring carousel cards on wide screens
GT_MENU_3D, GT_MENU_CAR_RANDOMthe 3D scene behind the main menu, and a varied car in it
GT_UPGRADE_3Dthe 3D scene behind the upgrade menu (off by default; 1 turns it on)
GT_PC_CONTROLSthe Touch Screen switch and the keyboard / pad rows in Options > Controls
GT_TOUCH_SCREEN, GT_CAMERA_TILT_DEFAULT1: Touch Screen On, or Camera Tilt On, when no choice is saved yet
GT_HIDE_TOUCH_HUD, GT_NO_TOUCH_TEXTtouch icons hidden and "touch" texts reworded with Touch Screen Off
GT_PAD_MENU, GT_CURSORthe snapping pad pointer; the gold mouse pointer (0: the Windows arrow)
GT_RACE_LOOKthe 360-degree look (GT_RACE_LOOK_SMOOTH, ms, default 60)
GT_TILT_ROLL, GT_TILT_SMOOTHcamera tilt strength (percent, default 25) and smoothing (ms, default 400)
GT_REPLAY_UNDIM, GT_REPLAY_ZOOM, GT_REPLAY_PAD, GT_REPLAY_TOUCH_ICONS, GT_REPLAY_HINT_PADreplay fixes and controls
GT_EXIT_BUTTONthe Exit tile
GT_COIN_SHOP, GT_DYNAMIC_PRICEthe coin-for-cash shop and its changing rate (GT_COIN_RATE, default 1100)
GT_PRIZE_MULT, GT_REPEAT_PRIZEprize multiplier (default 3; 1 or a value outside 1 to 100 is the original); full prizes for repeated results
GT_SERVICE_PRICEcar service price in coins (default 250; 0 is the original service)
GT_TOP_CARS, GT_RED_BULL_BOARD, GT_FIRST_NAMETop 10 Cars; the local Red Bull leaderboard; the name asked at the first start
GT_ADDONS, GT_MISSING_CARSthe add-on folders; loading a save whose add-on cars are missing
GT_CRASH_DUMPthe crash minidump (Windows) or crash report (Linux)

Port fixes and optimisations (GT_SWAP_COPY, GT_UTF16_CSTRING, GT_GL_STATE_CACHE and the others) are also on by default, and 0 turns each off, for comparison or when a driver misbehaves. FIXES.md lists each key with the fault or cost it addresses.

Performance tips

A race runs at over 300 fps uncapped on the GPUs above; the cap is 60 fps (GT_FPS). On a slower PC, in this order:

  1. Set GT_MSAA to 2 or 0.
  2. Set PostFX to Classic Natural or Off, and Motion Blur to light (GT_FULL_BLUR=0).
  3. Lower GT_RESOLUTION, for example to 720.

Troubleshooting

ProblemWhat to do
"no GTRacingFreemiumHD.app next to the program (or give --app <folder>)"Put GTRacingFreemiumHD.app next to gtracing.exe (or up to three folders up), or name it with --app
"The GTRacingFreemiumHD.app folder next to gtracing.exe has no game in it"Copy your game's files into it, so that GTRacingFreemiumHD.app\GTRacingFreemiumHD exists
"loading the game: not ARM ..." or another loading errorThe file is not the iPad game's program. Check its SHA-1 (step 1)
"SDL3.dll was not found"Keep SDL3.dll next to gtracing.exe
"Windows protected your PC" (SmartScreen) or an antivirus warningThe exe is not signed. Click More info, then Run anyway, or build it from this source. The SHA-256 checks the download
No Display page, keys page, Exit or Name tilepatch\ is empty. The same settings are in gtracing.ini
A new resolution or aspect ratio does not showUse Restart to Apply on the Display page, or start the game again
Other players are not found in Local or BluetoothBoth PCs must be on one network or one VPN. Allow gtracing.exe on private networks in Windows Firewall. GT_LAN_PEERS can name the other PC's address
An Online room cannot be joinedThe host's router must open UDP GT_P2P_PORT (28200) through UPnP or NAT-PMP. Otherwise forward it by hand, or play Local over a VPN
The Red Bull leaderboard shows only local timesThe server is not reached: check the connection and that GT_CLOUD_BOARD=0 is not set
Linux: "error while loading shared libraries: libSDL3.so.0"Install libsdl3-0:i386 (step 1 of Linux)
Linux: "cannot execute: required file not found"The 32-bit loader is missing: install libc6:i386 with the libraries above
Linux: "Permission denied"chmod +x gtracing
Linux: the leaderboard log says "no 32-bit libcurl"Install libcurl4t64:i386, or leave the board offline
A black screen, a crash or an er