SRCDS Steam group


Gmod Srcds server instant crashes
#1
Sad 
Well I have been running a garrysmod server (not listening but dedicated) for quite a while now but then something happened. It needed an update. So, I had to read up on how to update the server, and found out how, so my hldsUpdateTool.exe was in my C:/scrds folder so i went to the cmd and went to the directory

My server was in a DIFFERENT folder entitled C:/srcds ("srcds" not "scrds") and so i wrote the following command

"HldsUpdateTool.exe -command Update -game garrysmod -dir C:/srcds"

A new window opened and it looked like it was updating, but then it repeated a command (cannot remember the command completely) and it went something like, CANNOT FIND UPDATE DIRECTORY IN C:/SRCDS...

so i stopped updating and tried it again, and again and again, using different directories and etc.

Then finally it happened, out of the blue, when i tried it one more time, it came up with an alert saying "HldsUpdateTool.exe is not seen as a Win32 operation" and in the cmd it said "Access is denied"

A was a little scared, but then i tried to run my server again... in seconds of starting up it instantly crashes, when ever i do it, the pop up runs, 2 lines get made and then POOF its gone...

I am nervous and was planning a server event in three days (Saturday Easter Australian Time) anyone have any idea what is going on and how to fix it, i would prefer not reinstalling the server

yea any help even a little help would be greatly appreciated,

EDIT: for people who need more information about the server and the system it is being run on here you go

OS: Windows 7 64 bit
RAM: 6 GB 2000p
Processor: i7 960
Motherboard: 1366p
Graphics Card: 460 GTX (1GB)

There is also another complication here. I run the server on my SSD (Solid State Driver) to make the server run faster, due to my SSD being only 64GB i only have windows and the server on it, my STEAM folder is on my HDD E: drive which has 2TB of ram, (1.81 TB if you count in 1024's Toungue) so if that has any issues then please reply... When i get time ill reinstall hldsUpdateTool.exe, but the fact the console says its not a Win32 operation makes me a little worried.

EDIT2: Oh and here is some more information

The batch file i use to start my server goes as follows:

Code:
    @echo off
cd c:\srcds/orangebox
echo Starting game server.
echo Beginning "Garry's Mod"
srcds.exe -console -game garrysmod -port 27015 +map gm_construct +maxplayers 15
echo "Garry's Mod" has now started.
echo It is recommended that you start Server Crash Recovery aswell.

The SRCDS batch file (i forget what this is actually, but it does not work... if i start it it keeps spamming alerts at me and i have to restart my computer... probably has something to do with the problem i am not sure) goes like this:

Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

Oh... yea the crash protection did not work... if anyone knows how to fix that it would be great. EDIT 3: and yea, after looking at the batch file i can see what i did wrong... wrong game.. wrong map... wrong amount of players i am fixing now. EDIT4: nope... still does not work, says it can't find Srcds.exe and spams me with alerts until i restart my computer... weird

My server_download.bat is this:

Code:
@echo off
cd c:\srcds\
echo This will take a long time, I would recommend you go do something else.
echo Updating/installing CS:S
hldsupdatetool -command update -game "Counter-Strike Source" -dir C:\srcds
echo Updating/installing dods
hldsupdatetool -command update -game "dods" -dir C:\srcds
echo Updating/installing hl2mp
hldsupdatetool -command update -game "hl2mp" -dir C:\srcds
echo Updating/installing tf
hldsupdatetool -command update -game "tf" -dir C:\srcds
echo Updating/installing Garrysmod
hldsupdatetool -command update -game garrysmod -verify_all -retry -dir C:\srcds
echo Update/installation Complete
echo Installed to c:\srcds\
echo Your server is now ready to use!
echo To add extra addons or maps etc. place them in c:\srcds\orangebox\garrysmod\
echo This installer can also update necessary server files, so it is recommended that you run it often.
pause

that's about it that i can view

Reply
#2
Is your server installed to C:\srcds?
If so, put the "server_download.bat" into that folder and remove the "cd" command in the script. Then the server starter should be put into c:\srcds\orangebox\

Try running both batch files as an administrator.
Reply
#3
(02-10-2011, 12:47 AM)realchamp Wrote:  Is your server installed to C:\srcds?
If so, put the "server_download.bat" into that folder and remove the "cd" command in the script. Then the server starter should be put into c:\srcds\orangebox\

Try running both batch files as an administrator.

I have done exactly that, and the server continues to not work... When i run the server_download.bat it says, "press any key to continue" instantly, when i press a key it writes one line (to quick for me to see) and then closes... When i try to start the server again it writes around 2 lines (again to quick for me to see) and crashes, even when i run both .bat files as an administrator

The new server_download.bat goes.
Code:
@echo off
c:\srcds\
echo This will take a long time, I would recommend you go do something else.
echo Updating/installing CS:S
hldsupdatetool -command update -game "Counter-Strike Source" -dir C:\srcds
echo Updating/installing dods
hldsupdatetool -command update -game "dods" -dir C:\srcds
echo Updating/installing hl2mp
hldsupdatetool -command update -game "hl2mp" -dir C:\srcds
echo Updating/installing tf
hldsupdatetool -command update -game "tf" -dir C:\srcds
echo Updating/installing Garrysmod
hldsupdatetool -command update -game garrysmod -verify_all -retry -dir C:\srcds
echo Update/installation Complete
echo Installed to c:\srcds\
echo Your server is now ready to use!
echo To add extra addons or maps etc. place them in c:\srcds\orangebox\garrysmod\
echo This installer can also update necessary server files, so it is recommended that you run it often.
pause

I am going to perhaps redownload hldsUpdateTool.exe but i dont understand when the server crashes! it does not even say an alert! it just closes the command prompt

Oh and for people who want to give me more help and maybe this could be a problem i dunno

The server starter is called "Server_run.bat" and is now in the C:/srcds/Orangebox folder

The server Auto Crash Recovery is called "srcds.bat" and, does not work at all

The Server downloader is called "Server_download.bat"

Thanks for the help though! any help is good help
EDIT5: Nope even reinstalling hldsUpdateTool did not help, i am very nervous now because if that means that, then reinstalling my server might not help and that means i can never run a server on my computer again!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reply
#4
Delete all your current installations and do a completely fresh installation.

Try the following script. Place this in C:\srcds - just right besides your HLDSUpdateTool.exe
Code:
hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir .
Reply
#5
hey i have another question, is there a way to make it so on server crash the autorestart thing makes it so when the server crashes people instantly transfer over to the restarted server instead of continuing to countdown untill lost connection?

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)