i'm trying to get scrds working

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
kingdeviant
New to forums
New to forums
Posts: 6
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Dec 02, 2011 10:36 pm

i'm trying to get scrds working

Post by kingdeviant »

but it just opens and closes instantly i need the pacific path as in ? "cmd.exe /c start /high /d"c:\game installs\sourcebase\css" "Game server" "c:\game installs\sourcebase\css\srcds.exe" -game cstrike -ip xxx.xxx.xxx.xxx" need the correct for dod source i tried to rewrite it for dods but i guess i coded it wrong need to set up three of these if u can help with string i can fix rest
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: i'm trying to get scrds working

Post by Edge100x »

DoD:S is run from a different folder. Its line would look more like:

Code: Select all

cmd.exe /c start /high /d"c:\game installs\sourcebase\orangebox" "Game server" "c:\game installs\sourcebase\orangebox\srcds.exe" -game dod -ip xxx.xxx.xxx.xxx
kingdeviant
New to forums
New to forums
Posts: 6
Joined: Fri Dec 02, 2011 10:36 pm

Re: i'm trying to get scrds working

Post by kingdeviant »

Edge100x wrote:DoD:S is run from a different folder. Its line would look more like:

Code: Select all

cmd.exe /c start /high /d"c:\game installs\sourcebase\orangebox" "Game server" "c:\game installs\sourcebase\orangebox\srcds.exe" -game dod -ip xxx.xxx.xxx.xxx
something in that line doesnt let it boot up it opens makes a black box then vanishes
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: i'm trying to get scrds working

Post by Edge100x »

Try running a simplified version directly from the command line.

1. Start->Run, and "cmd.exe"
2. Commands:

Code: Select all

cd\game installs\sourcebase\orangebox
srcds.exe -game dod -ip xxx.xxx.xxx.xxx
kingdeviant
New to forums
New to forums
Posts: 6
Joined: Fri Dec 02, 2011 10:36 pm

Re: i'm trying to get scrds working

Post by kingdeviant »

Edge100x wrote:Try running a simplified version directly from the command line.

1. Start->Run, and "cmd.exe"
2. Commands:

Code: Select all

cd\game installs\sourcebase\orangebox
srcds.exe -game dod -ip xxx.xxx.xxx.xxx
doesnt seem to do anything just refreshes the line in cmd no new windows or anything
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: i'm trying to get scrds working

Post by Edge100x »

Are you using files that were installed by us, or did you download them through hldsupdatetool?
kingdeviant
New to forums
New to forums
Posts: 6
Joined: Fri Dec 02, 2011 10:36 pm

Re: i'm trying to get scrds working

Post by kingdeviant »

Edge100x wrote:Are you using files that were installed by us, or did you download them through hldsupdatetool?
i did a reinstall not sure if the game files where uploaded and most of the configs and stuff r for css :( which we dont play could ytou setup one server in r server so i have something to base it off off im new to vps but i was tryin to learn and i understand we went unmanaged cause i wanted to take workload off u guys since i have a decent understandin of fixin and repairin server just i usaelly did linux but went windows since i use windows on a daily basis and didnt know how tough the linux desktop would be since ive useally just bought game servers but since we wanted multiple servers and we needed to save money we went with this once we get one up i can figure the rest out just completly new to remote client
kingdeviant
New to forums
New to forums
Posts: 6
Joined: Fri Dec 02, 2011 10:36 pm

Re: i'm trying to get scrds working

Post by kingdeviant »

i even made a steam account and tried to run dedicated from the steam and got lcoked to a lan server
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: i'm trying to get scrds working

Post by .=QUACK=.Major.Pain »

Using the above startup command lines, create a .bat file, add a line at the bottom that says "pause" without the quotes. Then save the .bat file and just double click it to start the server. That's assuming your using a windows server.

This will keep your black box open so you can actually see what is happening, and to close it, follow the instructions which should be "Hit any key to close"

This will allow you to see what's happening and better trouble shoot.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: i'm trying to get scrds working

Post by .=QUACK=.Major.Pain »

Sorry - can't edit the above, but you probably should remove the cmd.exe part, but here's an example of what I use.

Ceate a .bat file, add the lines:

srcds.exe -game left4dead2 -console -norestart -nocrashdialog +maxplayers 8 +tv_port 27025 +map "c3m1_plankcountry" +ip 74.201.57.240 +port 27015 +exec port27015.cfg
pause

This is an example of what I use for our l4d2.
(Off course edit the first line for your game type, ip and settings)
(Add/remove anything to it as you want to)

pause keeps the cmd box open so you can see the output.

Then save the .bat file and just double click it to start the server. That's assuming your using a windows server.

This will keep your black box open so you can actually see what is happening, and to close it, follow the instructions which should be "Hit any key to close"

This will allow you to see what's happening and better trouble shoot.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: i'm trying to get scrds working

Post by Edge100x »

Running it from the command prompt would also show any error with the command line. The fact that he's not seeing anything at all when the command is run tells me that the server is probably starting and then immediately crashing, which can happen for a variety of reasons.

* Check to make sure that c:\game installs\sourcebase\orangebox\dod is a valid folder
* Try running hldsupdatetool.exe to check the installation and make sure it is up to date:

Code: Select all

cd\game installs
hldsupdatetool.exe -game dods -command update -dir sourcebase -verify_all
* Try a different command line that specifies the map and the whole nine yards, just to be safe.

Code: Select all

cd\game installs\sourcebase\orangebox
srcds.exe -game dod -ip x.x.x.x -debug -port 27015 +maxplayers 32 +map dod_anzio
* Make sure that you're putting your actual, valid IP on the command line, instead of "xxx.xxx.xxx.xxx" or "x.x.x.x".
kingdeviant
New to forums
New to forums
Posts: 6
Joined: Fri Dec 02, 2011 10:36 pm

Re: i'm trying to get scrds working

Post by kingdeviant »

i finnally figured it out it is very sensitive to every letter in the paths
Larsen
New to forums
New to forums
Posts: 11
Joined: Mon Dec 05, 2011 11:01 am

Re: i'm trying to get scrds working

Post by Larsen »

Is there an advantage to running a shortcut to srcds.exe on the desktop with lines appended versus running a batch file with the path to the srcds.exe? I guess the batch file will also let me include the crash protection on a windows OS, correct?
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: i'm trying to get scrds working

Post by Edge100x »

If you run a batch file, you could have it loop to handle server crashes, that's correct. That would be the main benefit.

Using FireDaemon is even better, as that makes it into a system service. If you need a free solution, nssm is worth looking at, but it's not as feature-rich.
Larsen
New to forums
New to forums
Posts: 11
Joined: Mon Dec 05, 2011 11:01 am

Re: i'm trying to get scrds working

Post by Larsen »

I couldn't get any batch file running today by the way :( I tried ANSI and UTF-8 encoding.

I get the update working fine, and -verify_all works fine. But when it gets to the -game dod it says "cannot find -game" and the server won't start from the batch file. So I have it currently running from a shortcut to srcds.exe with my command line appended in the "target file" line.

*Edit: it won't make a difference that the cmd.exe is rooted in the C: drive and the server installation path is on the F: drive, would it? Just trying to figure out if the problem is with my batch coding or the actual files paths. I did put quotes around the paths that have spaces in them too.
Post Reply