Sonic Mania

Sonic Mania

View Stats:
Rings Jul 30, 2018 @ 3:21am
PS4 CONTROLLER FIX! No more crashing for DS4Windows users on Windows 10!
I've been having a very hard time trying to figure out what's wrong with the game, which I will spare you all the trouble of reading. As a TL;DR, the game would crash when using a PS4 controller except for when "Hide DS4 Controller" (or exclusive mode) was enabled in DS4Windows.

However, nVidia's In-Game Overlay interferes with this: when it is enabled, you CANNOT use exclusive mode in DS4Windows. You must disable the in-game overlay, which is quite tedious for those of us who actually use Shadowplay and thus need to re-enable it after turning on exclusive mode.

Fortunately, I've come up with a solution, which I will detail to the best of my ability.

First of all, open the task manager, go to the Services tab, click "Open Services" at the bottom, then scroll down to the service called "NvContainerLocalSystem." Double-click it to go to its properties. Test that this is your issue in the first place by clicking Stop, then try enabling "Hide DS4 Controller" in DS4Windows. If it does not give you an error, click Start then proceed to the rest of the guide. Keep this window open!

  1. First of all, you want to make a .bat file to stop the nVidia service in question. Open up wordpad or notepad++ and type
    Originally posted by Rings:
    sc stop NvContainerLocalSystem
    Save it, then locate the file and rename the extension to .bat. I named mine "stop.bat" without quotes.

  2. Next, download a batch to exe converter as a portable program (if you google "batch to exe converter" it will be the result from cnet) and convert your .bat to a .exe. Name it something meaningful (I named mine "Stop nVidia In-Game Overlay.exe")

  3. Then, create a task. Launch Task Scheduler, then at the top left, click the "Task Scheduler Library" icon to highlight it, then right-click it and select "Create Task"

  4. Under the General tab, type a name you will remember (I named mine "DS4 Stop nVidia In-Game Overlay") then click the option near the bottom that says "Run with Highest Privileges." If it asks for your username and password, enter it.

  5. Under the Actions tab, click "New..." near the bottom. A new window will appear; under the "Settings" heading, click the "Browse" button and select the executable you made ("Stop nVidia In-Game Overlay.exe"), click Open, then click OK.

  6. Under the Settings tab, un-check the option that says "Stop the task if it runs longer than:" (3 days). Click OK to add the task to Task Scheduler.

  7. Test this task by right-clicking the event you just created and selecting "Run." The window you kept open of the NvContainerLocalSystem service should change: the Stop button should become greyed out and Start should become clickable. If this works, so far so good! Go ahead and click on Start again and proceed with the guide

  8. Create another .bat file (name it "Stop nVidia In-Game Overlay.bat" for simplicity's sake), and type
    Originally posted by Rings:
    SCHTASKS /Run /TN "DS4 Stop nVidia In-Game Overlay"
    or whatever you may have named the task to. QUOTES ARE REQUIRED!

  9. Now, double-click this .bat. Look at the NvContainerLocalSystem service's window again. Stop should become greyed out again. If so, good work! Almost done!

  10. Now, copy-paste your batch file to create a duplicate. Name this one "Start nVidia In-Game Overlay.bat" and edit its contents so it only says
    Originally posted by Rings:
    sc start NvContainerLocalSystem
    Whenever you run this, it will start the service.
    The idea here is for you to stop the service, enable DS4Windows' exclusive mode, then start the service back up.

This was less a Sonic Mania exclusive fix and moreso a universal fix for any game that requires you be running DS4Windows with Hide DS4 Controller enabled (such as Dark Souls 3, etc.) Seeing as nVidia's in-game overlay has been interfering with DS4Window's exclusive mode, this is the best solution for those who want to use exclusive mode without sacrificing the in-game overlay (and in extension, Shadowplay).

You can take this one step further by assigning the two .bat files you just created to shortcut keys for easy deployment. I've set each of the .bats to a key on my secondary keyboard via Autohotkey so any time I need to run this fix I simply press the corresponding keys on my secondary keyboard to run each .bat for maximum convenience.

Let me know if you require clarification on any of the steps! And most importantly, let me know if this helped you!
Last edited by Rings; Jul 30, 2018 @ 3:38am
< >
Showing 1-12 of 12 comments
amnesia grunt Jul 31, 2018 @ 4:15am 
and i cant select filters anymore my game look horible cutscenes are black and white animated not in-game
Last edited by amnesia grunt; Jul 31, 2018 @ 4:15am
Dax Jackson Aug 8, 2018 @ 6:56pm 
I've tried disabling the nvidia overlay but Mania is still crashing when the controller connects. Also I'm not using ds4windows?
Dax Aug 10, 2018 @ 9:55am 
Originally posted by ARDACALISIR:
and i cant select filters anymore my game look horible cutscenes are black and white animated not in-game

That is another issue with an often posted solution. change the game's .ini file (forgot the exact name) to enable shadersupport
Chocice75 Aug 10, 2018 @ 11:03am 
Originally posted by ARDACALISIR:
i cant select filters anymore my game look horible cutscenes are black and white animated not in-game
https://steamcommunity.com/sharedfiles/filedetails/?id=1446848370
Rings Aug 12, 2018 @ 2:14am 
Originally posted by Dax Jackson:
I've tried disabling the nvidia overlay but Mania is still crashing when the controller connects. Also I'm not using ds4windows?
Well, use ds4windows then. Only solution I can give you.
Dax Jackson Aug 12, 2018 @ 1:27pm 
Originally posted by Rings | S> RL Keys:
Originally posted by Dax Jackson:
I've tried disabling the nvidia overlay but Mania is still crashing when the controller connects. Also I'm not using ds4windows?
Well, use ds4windows then. Only solution I can give you.

Sonic Mania and every other game i my steam library works fine without it... did something change recently to necessitate this?
Rings Aug 12, 2018 @ 5:07pm 
Originally posted by Dax Jackson:
Originally posted by Rings | S> RL Keys:
Well, use ds4windows then. Only solution I can give you.

Sonic Mania and every other game i my steam library works fine without it... did something change recently to necessitate this?
Yeah, they royally screwed something up with the update and introduced issues when using PS4 controllers.
Gogeta007yBro Aug 24, 2018 @ 12:45pm 
Any idea of how to fix the DS4 crashes, but without DS4Windows... and without having installed the nVidia's In-Game Overlay?
beth Feb 14, 2023 @ 9:22am 
i aint doing all that
Wagner Jul 26, 2024 @ 2:14pm 
I have a better idea. you need to download x360ce, then you need to completely close DS4Windows in x360ce all buttons with dualshock and assign to the buttons of the xbox360 gamepad (axis 1 horizontal line of output of the left stick, Iaxis 2 vertical line of output of the left stick, axis 3 horizontal line of output of the right stick, Iaxis 6 vertical line of output of the right stick. plz like this comment
Last edited by Wagner; Jul 26, 2024 @ 2:15pm
Rings Jul 26, 2024 @ 3:12pm 
Originally posted by Wagner:
I have a better idea. you need to download x360ce, then you need to completely close DS4Windows in x360ce all buttons with dualshock and assign to the buttons of the xbox360 gamepad (axis 1 horizontal line of output of the left stick, Iaxis 2 vertical line of output of the left stick, axis 3 horizontal line of output of the right stick, Iaxis 6 vertical line of output of the right stick. plz like this comment
That's not a better idea, this issue doesn't exist anymore in 2024, and you can't like comments on Steam.
Wagner Jul 27, 2024 @ 3:29am 
Originally posted by Rings:
Originally posted by Wagner:
I have a better idea. you need to download x360ce, then you need to completely close DS4Windows in x360ce all buttons with dualshock and assign to the buttons of the xbox360 gamepad (axis 1 horizontal line of output of the left stick, Iaxis 2 vertical line of output of the left stick, axis 3 horizontal line of output of the right stick, Iaxis 6 vertical line of output of the right stick. plz like this comment
That's not a better idea, this issue doesn't exist anymore in 2024, and you can't like comments on Steam.
ну, я долбаёбаёб
< >
Showing 1-12 of 12 comments
Per page: 1530 50