DreamWorks Shrek 2 Remastered (2523740)

Aperta
#10,366 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, linux
Ambito
backend

Direzione di ricerca

Start by tracing Proton's gameinput.dll implementation and its GameInputCreate support; the report says Shrek needs IGameInput_v1 and specific gamepad methods, while the current stub fails. Compare the required interface calls with the available implementation and tests. Done means the game can create the interface and use the listed gamepad functions without crashing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Game compatibility - Unofficial

Compatibility Report

  • Name of the game with compatibility issues: DreamWorks Shrek 2 Remastered
  • Steam AppID of the game: 2523740

System Information

  • GPU: NVIDIA GeForce RTX 5090 Laptop GPU
  • Kernel: Linux 7.2.9-2-cachyos
  • Proton: proton-cachyos 11.0-20261005 (gameinput.dll behaves the same as Proton 11)
  • Game build: 26575938

Symptoms

The game crashes with an access violation right after start, before showing a window.
Game log (logs/Shrek-*.log) has the stack:

LuxWindowsPlatformInput::LuxWindowsPlatformInput (LuxWindowsPlatformInput.cpp:40)
Lux::Platform::InitInput (Platform_Win64.cpp:524)
Lux::InputManager::Init / InitAll

PROTON_LOG shows fixme:ginput:GameInputCreate ... stub! followed by EXCEPTION_ACCESS_VIOLATION at Shrek.exe+0x2FAF21.

Analysis

Shrek.exe statically imports GameInputCreate (ordinal 1), then calls QueryInterface on the result for IGameInput v1 {40FFB7E4-6150-407A-B439-132BADC08D2D} and uses it without checking the HRESULT. Proton's gameinput.dll fails GameInputCreate for every appid except 1771300, and even when enabled it only exposes IGameInput_v0, so the game dereferences NULL.

The game uses the GameInput backend only on desktop. It picks XInput when ISteamInput::GetInputTypeForHandle reports a Steam Controller / Xbox 360 / Xbox One controller, and GameInput otherwise. An earlier build checked IsSteamRunningOnSteamDeck instead, so SteamDeck=1 worked as a workaround until build 26575938. It no longer does.

What it needs

GameInputCreate returning an object that answers QI for IGameInput_v1 with: RegisterDeviceCallback (GameInputKindGamepad), IGameInputDevice_v1::GetDeviceInfo, GetCurrentReading + IGameInputReading_v1::GetGamepadState, and SetRumbleState.

Workaround (tested: game launches and the gamepad works)

A small native GameInput.dll implementing IGameInput v1 on top of XInput, placed next to Shrek.exe, with launch options:

WINEDLLOVERRIDES="gameinput=n,b" %command%
Lingua principale
C++
Stelle
33.4k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ValveSoftware/Proton

Tutte le issue di ValveSoftware/Proton

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.