make a step by step plan for ripping my livery i created in forza horizon 5, i have steam version, ninja ripper works fine, special K doesnt have d3d12 texture dump currently, renderdoc doesnt launch, i wanna make a custom dll or something to make it work, make a plan, library usage, how fh5 handles liveries (its downloaded into the memory from internet), send code too.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Ripping a livery from Forza Horizon 5 (FH5), especially the Steam version, is a complex task due to the game’s use of Direct3D 12, online content delivery, and anti-cheat protections. Since you already have Ninja Ripper working but want a more custom or automated approach (e.g., a custom DLL injector or texture dumper), here’s a detailed step-by-step plan including technical insights, libraries, and a rough code outline.
Step-by-Step Plan for Ripping FH5 Liveries
1. Understand FH5 Livery Handling and Rendering Pipeline
Liveries in FH5 are user-created and stored server-side, downloaded dynamically into memory when you load the car.
Liveries are applied as textures or texture arrays on the car’s mesh.
FH5 uses Direct3D 12 (D3D12) for rendering.
Textures are likely stored in GPU memory as ID3D12Resource objects.
The game uses streaming to load livery textures dynamically from the internet.
2. Choose Your Approach
Ninja Ripper works by hooking the graphics API and dumping textures and meshes.
RenderDoc doesn’t launch (common with D3D12 and anti-cheat).
Special K lacks D3D12 texture dump support.
You want a custom DLL injector that hooks D3D12 calls to capture textures.
3. Set Up Your Development Environment
Use Visual Studio 2022+ with C++.
Use Microsoft’s DirectX 12 SDK headers.
Use MinHook or Detours for API hooking.
Use Steam API if needed for integration (optional).
4. Hooking Direct3D 12 to Capture Textures
Hook the ID3D12Device::CreateCommittedResource or ID3D12Resource::Map calls to detect when textures are created or updated.
Alternatively, hook ID3D12GraphicsCommandList::CopyResource or CopyTextureRegion to intercept texture copies.
Capture the texture resource pointer and dump its contents to disk.
5. Handling FH5’s Dynamic Livery Textures
Liveries are likely updated frequently; hook UpdateSubresources or CopyTextureRegion to catch texture uploads.
Use ID3D12Resource::ReadFromSubresource or map the resource to CPU memory to read texture data.
Save textures in a standard format (DDS, PNG).
6. Bypass or Handle Anti-Cheat
FH5 uses Easy Anti-Cheat (EAC).
Injecting DLLs or hooking may trigger anti-cheat.
Use external injection before launching the game or use trusted injection methods.