DreamWorks Shrek 2 Remastered (2523740)

Abierto
#10,366 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, linux
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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%
Lenguaje dominante
C++
Estrellas
33.4k
Forks
1.8k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/Proton

Todos los issues de ValveSoftware/Proton

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.