Jump to content
We promise no intrusive ads, Please help keep the community alive
Consider supporting us by disabling your ad blocker / add to whitelist / purchasing VIP.

Katie Cookie

  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Katie Cookie

  1. Version 2023-05-25


    Features Toggle on/offline Edit nickname, email and password Import progress from other saves (playersave files more specifically) ** you are advised to manually back up your saves at %USERPROFILE%/Documents/Test Drive Unlimited/savegame as well in case of unforeseen file corruptions ** Ghidra, x64dbg, ghex and vbindiff were used to inspect save file serialization, see https://github.com/Kethen/TDU_savegame_account_editor/blob/main/offsets_and_formats.md for a summary. iced-rs is used for the user interface, fs_extra is used for recursive file copying, rfd is used for providing a file picker, tar-rs is used for preserving bookmarks. tdudec on rust is ported from the source release of tdudec at http://aluigi.altervista.org/papers.htm#others-file. .exe for windows (win32 and win64), without for linux (x86_64 glibc). Alternatively the project can be built using cargo like other rust projects, it should build in MacOS as well. Alternative andraste plugin that allows loading any playersave on any profile: https://github.com/Kethen/tdu_andraste_playersave_validation_skip
  2. Version 2023-06-07


    Supports only 1.66A exe currently. Features Adjust global gravity Adjust normal mode additional gravity when a wheel is lifted off the ground Force HC mode physics on player and racing bots in normal mode Besides the exe patcher, this also comes in the form of an andraste modding framework plugin, https://github.com/Kethen/TDU_andraste_physics_tweaks/releases By default, when a wheel is lifted off the ground in normal (non hardcore) mode, an extra gravity modifier of 1.0 is added to the vehicle to quickly put the vehicle back onto the ground. The value is statically saved in the exe, and this patcher changes that value by changing an instruction. Additionally gravity used by havok and other bits of the game can also be changed from the default of -9.81, which might be useful for hardcore mode. 0.0 gravity modifier adds no additional gravity, negative values such as -10.0 that overcomes default gravity will send the car upward at curbs and jumps. 0.0 gravity modifier demo: https://streamable.com/ldur6j Ghidra and x64dbg were used to seek out the instruction for patching as well as assembling the new instruction, patching methodology can be found at https://github.com/Kethen/TDU_normal_mode_gravity_changer/blob/main/src/util.rs iced-rs is used for the user interface, checksums is used for identifying exe files, rfd is used for providing a file picker. .exe for windows (win32 and win64), without for linux (x86_64 glibc). Alternatively the project can be built using cargo like other rust projects, it should build in MacOS as well.
  3. With the help of ghidra and x86dbg, I think I found a modifier on the game exe for changing non-hardcore vehicle gravity While the game exe is sadly stripped of symbols, by searching for "gravity" strings, there exists a "Gravity Coef" string, around where the game seems to set boundries for car handling during game start such as "Gravity Height Max", for the non hardcore car physics engine The "Gravity Coef" is taken from a static variable, and that static variable is set from a 4 byte floating point constant at 0x00f8a21c (memory address in ghidra, on a drm-less 1.66a exe) Patching that constant before it is used can effect car gravity when a wheel is lifted off the ground; the current value is 1.0, setting it to 0.0 leads to what it seems to be pretty reasonable gravity instead of having artificial down force pushing the car back to the floor, -10.0 sends the car upward which then respawns on the ground It might be possible to change that with cheat engine as well, I'm not familiar with cheat engine however but it has to be set very early on during game initialization, before the value is set to car handling (that happens even before the game window is shown) I'll play with that a little bit in a few races then maybe post a non-hardcore gravity patched exe Edit: Gravity patching tool can now be found at, a list of related memory offset can be found at https://github.com/Kethen/TDU_normal_mode_gravity_changer/blob/main/memory_offsets.md
  4. Make sure to load native d3d9.dll on wine Either create a new d3d9.dll override and set it to native in winecfg, or $ WINEPREFIX=<wine prefix path> wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v d3d9 /d native /f As long as 32 bit dxvk d3d9.dll is installed in <wine win32 prefix>/drive_c/windows/system32 or <wine win64 prefix>/drive_c/windows/syswow64, dxvk will also work With the dll override it'll hook just fine with the 1.66a exe (I don't think it works with the initial release exe), you probably also need the following to add d3dx9_<x> dlls to your prefix for the mod $ WINEPREFIX=<wine prefix path> winetricks -f d3dx9
  • Create New...