Having difficulty getting my Xinput controller to work with Tomb Raider 2. When I DISABLE the "Support for Xinput controllers" option in Help.exe, both the keyboard and controller work normally except that the game doesn't recognize my triggers. However, when I ENABLE "Support for Xinput controllers", the game will not recognize any input in the main menu from either the keyboard or the controller (although, I am able to skip the intro movies using both. But after that, nothing.) Below is my error log from when I have the support option ENABLED. I also have joysticks enabled in Tomb2.exe -setup, and I have translation and keyboard emulation settings disabled in Help.exe. Let me know if you need more info! Thanks in advance
UPDATE: My current workaround is using JoyToKey for controller input. It seems like both your Xinput support and Keyboard Emulation settings are not working - Xinput disables input completely, and keyboard emulation results in a "stuck key" type problem after a few moments in gameplay. Previous versions of your patch (I found one dated May 2018) have a different issue in keyboard emulation where certain keys remain bound to multiple actions at once.
Peixotos's patch remote settings:
#args: setup
32bit: 1
<GPad>: A=1;B=2;X=3;Y=4;LEFT_SHOULDER=5;RIGHT_SHOULDER=6;bLeftTrigger=7;bRightTrigger=8;Start=9;Back=10;LEFT_THUMB=11;RIGHT_THUMB=12;deadzone=0.00;
CompatLayer: WinXPSp2
D3D: 2
D3D_Driver: C:\WINDOWS\System32\DriverStore\FileRepository\nvami.inf_amd64_72390dc4652f28fa\nvldumd.dll
dshow: 1
dsk: 3840x2160
error_log: C:\Users\Ryan\Downloads\Peixoto\error.log
HD: 1
HDPI: 1
injector_dir: C:\Users\Ryan\Downloads\Peixoto
J2K: u=False;a=Up,Down,Left,Right,end,alt,space,ctrl,del,PgDn,shift,numpad0,esc,/,8,9,Up,Down,Left,Right;dz=0.25;
K2K: t0e=False;
max_4x3_res: 2048x1536
MCI: 1
Mydocs: C:\Users\Ryan\Documents
NEFS: 1
os_version: 10.000000
path: C:\Users\Ryan\Documents\Games\Tomb Raider\TR2\
rlst: 640x480 800x600 1024x768 1152x864 1176x664 1280x720 1280x960 1280x1024 1366x768 1400x1050 1600x900 1600x1024 1600x1200 1768x992 1920x1080 1920x1200 1920x1440 2048x1536 2560x1440 2560x1600 3840x2160 4096x2160 720x480 720x576
script: Scripts\Tomb2.ahk
script_hwnd: 0x170668
singlecore: 1
svs: 1
target: D:\Games\SteamLibrary\steamapps\common\Tomb Raider (II)\Tomb2.exe
target_dir: D:\Games\SteamLibrary\steamapps\common\Tomb Raider (II)
target_name: Tomb2.exe
Textswap: path=Textures\VOKSI;s=4;sz=256;n=];p=[;d=p;sw=i;c=o;q=q;l=0;
WHKS: 1
z24: 1
isobject 1
isobject 1
Found fileC:\Users\Ryan\Documents\Games\Tomb Raider\TR2\\saves\Dumps\dump0.dds
Collection size 1
isobject 1
Collection size 0
isobject 1
Collection size 0
Collection size 0
FileHooks 0
CreateFileA_Hook Hook : 0 <- 0 means no error
CreateProcessA Hook: 0
CreateProcessW Hook: 0
ShellExecuteA Hook :0
Desktop 3840x2160
OpenAdapter Hook 0
DDraw.dll : C:\WINDOWS\SYSTEM32\DDRAW.dll
DirectDrawCreate Hook : 0
Succeeded to create DirectDraw
Succeeded to create Direct3D
Succeeded to hook IDirectDraw4::CreateSurface
Succeeded to hook IDirectDraw2::CreateSurface
Succeeded to hook IDirectDraw::CreateSurface
Succeeded to hook IDirectDrawSurface::restore
Succeeded to hook IDirect3DDevice::EndScene
Succeeded to hook IDirect3DDevice3::EndScene
Succeeded to hook IDirect3D3::CreateDevice
Succeeded to hook IDirect3D2::CreateDevice
Succeeded to hook IDirectDraw::SetDisplayMode
Succeeded to hook IDirectDraw2::SetDisplayMode
Succeeded to hook IDirectDraw4::SetDisplayMode
Succeeded to hook IDirectDraw4::EnumDisplayModes
Succeeded to hook IDirect3DViewport3::SetViewPort2
Succeeded to hook IDirect3DViewport3::GetViewPort2
Succeeded to hook IDirect3DViewport3::Clear
Succeeded to hook IDirect3DViewport3::Clear2
Succeeded to hook IDirect3DViewport::SetViewPort
Succeeded to hook IDirect3DViewport::GetViewPort
Succeeded to hook IDirectDrawSurface4::GetSurfaceDesc
Succeeded to hook IDirectDraw::GetDisplayMode
Succeeded to hook IDirectDraw4::GetDisplayMode
Succeeded to hook IDirectDrawSurface::GetPixelFormat
Succeeded to hook IDirectDrawSurface::GetSurfaceDesc
Succeeded to hook IDirectDrawSurface::AddAttachedSurface
Succeeded to hook IDirectDrawSurface::GetPalette
Succeeded to hook IDirectDrawSurface::SetPalette
Succeeded to hook IDirectDrawPalette::SetEntries
Succeeded to hook IDirectDrawPalette::GetEntries
Succeeded to hook IDirectDrawSurface::QueryInterface
Succeeded to hook IDirectDrawSurface4::Lock
Succeeded to hook IDirectDrawSurface4::UnLock
Succeeded to hook IDirectDrawSurface::UnLock
Succeeded to hook IDirectDrawSurface4::Blt
Succeeded to hook IDirectDrawSurface4::Bltfast
Succeeded to hook IDirectDrawSurface4::GetDC
Succeeded to hook IDirectDrawSurface4::ReleaseDC
Succeeded to hook IDirect3DViewport3::TransformVertices
Succeeded to hook IDirect3DDevice3::DrawPrimitive
Succeeded to hook IDirect3DDevice3::DrawIndexedPrimitive
Succeeded to hook IDirect3DDevice3::DrawPrimitiveVB
Succeeded to hook IDirect3DDevice3::DrawIndexedPrimitiveVB
Succeeded to hook IDirect3DDevice2::DrawPrimitive
Succeeded to hook IDirect3DDevice2::DrawIndexedPrimitive
Succeeded to hook IDirect3DDevice::Execute
Succeeded to hook IDirect3DTexture2::Release
Succeeded to hook IDirect3DTexture2::Load
Succeeded to hook IDirect3DDevice3::SetTexture
Succeeded to hook IDirectDrawSurface4::Release
Succeeded to hook IDirect3DTexture2::GetHandle
Succeeded to hook IDirect3DDevice2::SetRenderState
Succeeded to hook IDirect3DTexture::Load
Succeeded to hook IDirect3DTexture::GetHandle
Succeeded to hook IDirect3DTexture::Release
Succeeded to hook IDirectDraw::SetCooperativeLevel
Succeeded to hook IDirectDraw2::SetCooperativeLevel
Succeeded to hook IDirectDraw4::SetCooperativeLevel
Succeeded to hook IDirectDrawSurface::flip
Succeeded to hook IDirectDrawSurface4::GetAttachedSurface
Succeeded to hook IDirectDrawSurface4::EnumAttachedSurfaces
Succeeded to hook IDirectDrawSurface::GetAttachedSurface
Succeeded to hook IDirectDrawSurface::EnumAttachedSurfaces
Succeeded to hook IDirect3DDevice2::BeginScene
Resolution\Viewport:
Requested : 1920 x 1080
Real : 3840 x 2160
Correction : 2.000000
Viewport width correction : 0.000000
Succeeded to hook IDirectDrawSurface4::blt
Succeeded to hook IDirectDrawSurface2::blt
Succeeded to hook IDirectDrawSurface::blt
Succeeded to hook IDirectDrawSurface4::lock
Succeeded to hook IDirectDrawSurface4::Unlock
Succeeded to hook IDirectDrawSurface::Unlock
Succeeded to hook IDirectDrawSurface::Unlock
Succeeded to hook IDirectDrawSurface2::lock
Succeeded to hook IDirectDrawSurface2::Unlock
ptr 47799448 use 48359520 sz 17120 hwnd 48359520
ptr 48129264 use 48358904 sz 4252 hwnd 48358904
ptr 47430360 use 48359128 sz 652 hwnd 48359128