JackUpTheSteam

A Config Script for Counter-Strike: Source

Attention Gamer! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending GrayTap points.
  • Post: Give GrayTap your thoughts on this Script.
  • Vote: Help GrayTap win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Stop Lurking!

Sign up

Already a Bananite? Login

25 lines | 989 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
'---COUNTER-STRIKE:SOURCE---DEDICATED-SERVER---
'
------------SET_PRIORITY_ABOVE_NORMAL----------------
'--------------------------------------------------------------------------
'
Script: JackUpTheSteam
' By: [Sin City: Source] GrayTap or just GrayTap
'
http://steamcommunity.com/id/graytap
' http://www.fpsbanana.com/members/321127
'
--------------------------------------------------------------------------
' Sets the priority for steam.exe and srcds.exe to
'
ABOVE_NORMAL giving it more processing
' power.
'
--------------------------------------------------------------------------

Const ABOVE_NORMAL = 32768

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colProcesses = objWMIService.ExecQuery _
    ("Select * from Win32_Process Where Name = 'steam.exe' OR Name = 'srcds.exe'")

For Each objProcess in colProcesses
    objProcess.SetPriority(ABOVE_NORMAL)
Next
Here is a double click solution to all the tutorials on setting up a Steam server, for this example I used this on my steam source dedicated server running counter strike: source... In most tutorials they tell you how to manually set the priority and there where a few failed attempts to do this with batch files. Here is a working script that’s as easy as double clicking and Icon. This script sets both steam.exe and srcds.exe to AboveNormal. This is because srcds.exe uses steam.dll and other steam resource and they should be on the same priority so the server doesn’t have to wait for steam to move up in the processor que. Remember the server has to be up and running before using this or it’s worthless since the processes will not be running. 1: to use this simply copy the 12 lines of script to a text file and save as priorities.vbs 2: with the server running double clip on priorities.vbs and that's it.

Posts

  • 10y
    AoM avatar
    AoM avatar Offline
    Moderator Joined 11y
    10,064 points Ranked 433rd
    25 medals 1 legendary 4 rare
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • Achieved Game Moderator clearance Medal icon
    • Became a Game Pioneer Medal icon
    • 3rd Place - 2017 Uberstyles Contest Medal icon
    • Became a Club Leader Medal icon
    Now that I look, I guess it's fine here until we actually get a section for non-game scripts (I think the FPSBanana section would still be best for this though).
    Thar be snow. avatar
    Mantra
    Thar be snow.
  • 10y
    GrayTap avatar
    GrayTap Offline
    Member Joined 10y
    615 points Ranked 7225th
    7 medals 1 rare
    • 6 years a member Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    I don't know, it is for Counter-Strike: Source dedicated Server Administration.

    where should I have posted this script?
    SinCity: Source
  • 10y
    AoM avatar
    AoM avatar Offline
    Moderator Joined 11y
    10,064 points Ranked 433rd
    25 medals 1 legendary 4 rare
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • Achieved Game Moderator clearance Medal icon
    • Became a Game Pioneer Medal icon
    • 3rd Place - 2017 Uberstyles Contest Medal icon
    • Became a Club Leader Medal icon
    According the coding, it's not really a CS:S scripts. You know that, right?
    Thar be snow. avatar
    Mantra
    Thar be snow.

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Key Authors
GrayTap
Unknown

Submitter

GrayTap avatar
GrayTap Offline
Member Joined 10y
615 points Ranked 7225th
7 medals 1 rare
  • 6 years a member Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • 1 year a member Medal icon
  • 2 years a member Medal icon

GrayTap
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Stats

Posts
3
Views
1,995
Date Added
10y
Date Modified
10y
bcp.crwdcntrl.net tracking pixel