Jump to content

Fix for source games on Windows 2012


gijs007

Recommended Posts

I'm hosting those games on server 2012, they all work fine except for garrys mod which needs to be ran in compatibility mode.

 

To fix this i've put this as a script to run after the server is created:

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ThisService_Executable%" /d "WIN7RTM"

 

And this as script before its removed:

reg.exe delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ThisService_Executable%" /f
Edited by gijs007
Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
How can you make it work for the tcadmin user?

 

Custom Scripting.

Event: After Created and After Move

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ThisService_Executable%" /d "WIN7RTM"
''

 

Event: After Deleted and Before Move

reg.exe delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%ThisService_Executable%" /f

 

That should work for you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 7 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use