Raised This Month: $32 Target: $400
 8% 

[FIX] HLDS Starting Problem/Crashing/Initializing Steam!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blaqk
Junior Member
Join Date: Mar 2013
Old 09-27-2013 , 13:47   [FIX] HLDS Starting Problem/Crashing/Initializing Steam!
Reply With Quote #1

Well alot of people are facing this issue in newer version of HLDS downloaded through SteamCMD. Finally i solved the issue, Here is the solution.

This will fix:
- HLDS not starting\crashing instantly.
- Unable to initialize steam.
- Autorestart within seconds on server crash/close.

Code:
@ECHO OFF
:HLDS
REG ADD "HKCU\Software\Valve\Steam\ActiveProcess" /v SteamClientDll /t REG_SZ /d "" /f >nul
:CRASHED
ECHO N| Start /Wait /High hlds.exe -console -game cstrike >nul
CLS
ECHO :------------------------------------------------------------------------:
ECHO :Warning: HLDS Server Crashed At = Date:%Date% - Time:%Time%:
ECHO :------------------------------------------------------------------------:
IF ERRORLEVEL 2 GOTO :RESTART
:RESTART
CHOICE /D /N /T:N,0 >nul 2>&1
IF ERRORLEVEL 2 GOTO :CRASHED
1) Copy this code.
2) Paste it in a notepad.
3) Save file as > Desktop > Filename: "HLDS.bat"
4) Copy "HLDS.bat" in to server folder where HLDS is located.
5) Run "HLDS.bat" & Vola...your server is up and running.

-Cheers BK.

Last edited by Blaqk; 09-27-2013 at 13:56. Reason: Title Name Change!
Blaqk is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 09-27-2013 , 14:43   Re: [FIX] HLDS Starting Problem/Crashing/Initializing Steam!
Reply With Quote #2

1. It isn't a fix for HLDS start problems, it just starts HLDS every time it's closing.
2. You cann't just start HLDS without a map.
3. This script is only for windows. For linux, there is already build-in script - hlds_run
__________________
simanovich is offline
Blaqk
Junior Member
Join Date: Mar 2013
Old 09-28-2013 , 14:24   Re: [FIX] HLDS Starting Problem/Crashing/Initializing Steam!
Reply With Quote #3

Quote:
Originally Posted by simanovich View Post
1. It isn't a fix for HLDS start problems, it just starts HLDS every time it's closing.
2. You cann't just start HLDS without a map.
3. This script is only for windows. For linux, there is already build-in script - hlds_run
k
Blaqk is offline
xxturner
New Member
Join Date: Jun 2022
Old 06-13-2022 , 19:13   Re: [FIX] HLDS Starting Problem/Crashing/Initializing Steam!
Reply With Quote #4

Quote:
Originally Posted by simanovich View Post
1. It isn't a fix for HLDS start problems, it just starts HLDS every time it's closing.
2. You cann't just start HLDS without a map.
3. This script is only for windows. For linux, there is already build-in script - hlds_run
For anyone who comes across this thread, dont forget to add the map with "+map mapname", this will resolve crashes when someone joins your server.
xxturner is offline
Lanses
New Member
Join Date: Jan 2014
Old 08-14-2022 , 01:48   Re: [FIX] HLDS Starting Problem/Crashing/Initializing Steam!
Reply With Quote #5

I've even recovered my password to say THANK YOU!

I was skeptical at first, but trust me this stuff does work. After you run the script you can run HLDS again normally.
Lanses is offline
tfcdrdeath3
Junior Member
Join Date: Mar 2021
Old 12-28-2022 , 18:39   Re: [FIX] HLDS Starting Problem/Crashing/Initializing Steam!
Reply With Quote #6

Quote:
Originally Posted by Blaqk View Post
Well alot of people are facing this issue in newer version of HLDS downloaded through SteamCMD. Finally i solved the issue, Here is the solution.

This will fix:
- HLDS not starting\crashing instantly.
- Unable to initialize steam.
- Autorestart within seconds on server crash/close.

Code:
@ECHO OFF
:HLDS
REG ADD "HKCU\Software\Valve\Steam\ActiveProcess" /v SteamClientDll /t REG_SZ /d "" /f >nul
:CRASHED
ECHO N| Start /Wait /High hlds.exe -console -game cstrike >nul
CLS
ECHO :------------------------------------------------------------------------:
ECHO :Warning: HLDS Server Crashed At = Date:%Date% - Time:%Time%:
ECHO :------------------------------------------------------------------------:
IF ERRORLEVEL 2 GOTO :RESTART
:RESTART
CHOICE /D /N /T:N,0 >nul 2>&1
IF ERRORLEVEL 2 GOTO :CRASHED
1) Copy this code.
2) Paste it in a notepad.
3) Save file as > Desktop > Filename: "HLDS.bat"
4) Copy "HLDS.bat" in to server folder where HLDS is located.
5) Run "HLDS.bat" & Vola...your server is up and running.

-Cheers BK.
how do i set this up for Team Fortress Classic HLDS? map i want it to start is "dustbowl"


i tried doing what is above but server boot screen just glitches in start up loop
tfcdrdeath3 is offline
Infamanious
Senior Member
Join Date: Dec 2005
Old 01-20-2023 , 18:51   Re: [FIX] HLDS Starting Problem/Crashing/Initializing Steam!
Reply With Quote #7

./hlds_run -game tfc +map dustbowl -port 27015 -yada yada. Google how to setup an HLDS through console. Also learn how to use linux and host your server on linux cause windows sucks HE grenades.
Infamanious is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode