Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Games that UPB doesn't support #29

Open
seljuklu opened this issue Apr 20, 2024 · 6 comments
Open

Games that UPB doesn't support #29

seljuklu opened this issue Apr 20, 2024 · 6 comments

Comments

@seljuklu
Copy link

it doesn't work with medieval 2 total war

@seljuklu seljuklu changed the title total war medieval 2 Games that UPB doesn't support May 9, 2024
@seljuklu
Copy link
Author

seljuklu commented May 9, 2024

it doesn't work with battlefield bad company 2

@clausagerskov
Copy link

doesnt work for the witcher 1 enhanced edition

@ZcheK
Copy link

ZcheK commented Jun 14, 2024

It was working in Skyrim SE but it's not working in the Aniversary Edition.

@d4ws
Copy link

d4ws commented Jul 28, 2024

works on dark souls 3 but not on elden ring

@clausagerskov
Copy link

interestingly it works on NWN2 which has the same engine as witcher 1, so must be something to do with how witcher intercepts keypresses. can manually suspend just fine using resmon

@clausagerskov
Copy link

clausagerskov commented Aug 13, 2024

can confirm that it works fine on witcher 1 if one sets the "ProcessNameToPause" to "witcher.exe" and alt-tabs before pressing the pause button so must be a problem of the process intercepting key presses
I have created the following batch scripts:
run_pause_button.bat (runs the other bat file and resets the regex processnametopause after closing):

@echo off              
echo "Starting UPB with witcher mod"             
CALL run_upb_witcher.bat < nul            
echo "Resetting witcher mod"      
SET KEY_NAME="HKEY_CURRENT_USER\Software\UniversalPauseButton"  
SET VALUE_NAME="ProcessNameToPause"  
SET DATA=  
reg add "%KEY_NAME%" /v "%VALUE_NAME%" /d "%DATA%" /f

and run_upb_witcher.bat (sets the processnametopause to witcher.exe and runs the upb exe):

@echo off  
SET KEY_NAME="HKEY_CURRENT_USER\Software\UniversalPauseButton"  
SET VALUE_NAME="ProcessNameToPause"  
SET DATA="witcher.exe"  
reg add "%KEY_NAME%" /v "%VALUE_NAME%" /d "%DATA%" /f  
CALL UniversalPauseButton.exe  

still need to alt-tab first before pressing pause though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants