UWAGA
W związku z upgrade'em Forum Wiaderko do vB 4.x ewentualne błędy i nieprawidłowości proszę zgłaszać w tym temacie
Serwery Counter Strike 1.6 wiaderko.com

HashJama [TP] 193.33.176.148:27015 status serwera HashJama [TP] połącz

HashJama [FFA] 193.33.176.188:27015status serwera HashJama [FFA] połącz

HashJama [DM] 193.33.176.53:27015status serwera HashJama [DM] połącz

HashJama [Aim Hs] 193.33.176.15:27015status serwera HashJama [Aim Hs] połącz

HashJama [Flags] 193.33.176.111:27015status serwera HashJama  [Flags] połącz

HashJama [AWP/HG DM] 193.33.176.50:27015status serwera HashJama [AWP/HG DM] 193.33.176.50:27015 połącz

HashJama [TP #2] 193.33.176.54:27015status serwera HashJama [TP #2] 193.33.176.54:27015 połącz

wiaderko.com [Ventrilo] v1.svoice.pl:6416status serwera wiaderko.com [Ventrilo]

SPONSOR:
pukawka.pl

Wątek: HLDS - Port zajety (!?)

Pokaż wyniki od 1 do 12 z 12
  1. #1 HLDS - Port zajety (!?) 
    Lamka
    Dołączył
    Nov 2008
    Posty
    7
    Siema!

    Gralem na serwie (Hosting na HitMe) razem z kolega, i nagle serwer padl...
    patrze w panel a tam cos takiego:

    Kod:
    Wed Mar 18 17:00:58 CET 2009: Server restart in 10 seconds
    Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
    FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27020.
    WARNING: UDP_OpenSocket: port: 27020 bind: Address already in use
    <*S.W.A.T*** Server @ HitMe.pl> Zyczymy Wielu Fragow oraz Milej Gry"
    <*S.W.A.T*** Server @ HitMe.pl> Standardowe ustawienia HitMe.pl zaladowane :-)"
    couldn't exec language.cfg
    STEAM Auth Server
    
    Exe build: 20:02:49 Oct 24 2006 (3651)
    Exe version 1.1.2.5/Stdio (cstrike)
    Protocol version 47
    scandir failed:/home/lante/91.203.134.97-27020/hlds_l/./platform/SAVE
    Console initialized.
    wiem ze temat by juz poruszany tutaj:
    http://www.forum.wiaderko.com/instal...html#post81591

    ale czy moglby mi ktos wytlumaczyc co mam robic i gdzie?
    pisalem do Seby zeby mi to rozszyfrowal ale zignorowal moje PM -_-

    Z gory wielkie dzieki :D
    jak uzbieram te 15 postow to obiecuje dac nagrode za pomoc ;)

    PS: nie chodzi mi u serwer ze zmiennym ip (widzialem ten problem u innych, moj serwer jest zalozony na hostingu ze stalym ip...)
     

  2. #2 Odp: HLDS - Port zajety (!?) 
    Moderator Awatar bakul. <3
    Dołączył
    May 2008
    Wiek
    18
    Posty
    4,210
    HitMe o ile pamiętam jako panel używa GameCP. Jest tam opcja dodania polecenia startowego, więc pogrzeb trochę i dodaj linijkę
    Kod:
    -debug
     

  3. #3 Odp: HLDS - Port zajety (!?) 
    Lamka
    Dołączył
    Nov 2008
    Posty
    7
    do hlds_run?
    i jesli tam to na sam koniec?
     

  4. #4 Odp: HLDS - Port zajety (!?) 
    Moderator Awatar bakul. <3
    Dołączył
    May 2008
    Wiek
    18
    Posty
    4,210
    Tak, dokładnie tam.
     

  5. #5 Odp: HLDS - Port zajety (!?) 
    Lamka
    Dołączył
    Nov 2008
    Posty
    7
    Dodalem i nic nowego sie nie dzieje :/

    teraz to hlds_run wyglada tak:

    Kod:
    #!/bin/sh
    #
    #       Copyright (c) 2002, Valve LLC. All rights reserved.
    #
    #	a wrapper script for the main hl dedicated server binary.
    #	Performs auto-restarting of the server on crash. You can
    #	extend this to log crashes and more.
    #
    
    # setup the libraries, local dir first!
    export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
    
    init() {
    	# Initialises the various variables
    	# Set up the defaults
    	GAME="valve"
    	DEBUG=""
    	RESTART="yes"
    	HL=./hlds_i486
    	HL_DETECT=1
    	TIMEOUT=10 # time to wait after a crash (in seconds)
    	CRASH_DEBUG_MSG="email debug.log to linux@valvesoftware.com"
    	GDB="gdb" # the gdb binary to run
    	DEBUG_LOG="debug.log"
    	PID_FILE="" # only needed it DEBUG is set so init later
    	STEAM=""
    	PID_FILE_SET=0
    	STEAMERR=""
    	SIGINT_ACTION="quit 0" # exit normally on sig int
    	NO_TRAP=0
    	AUTO_UPDATE=""
    	STEAM_USER=""
    	STEAM_PASSWORD=""
    	PARAMS=$*
    
    	# Remove any old default pid files
    	# Cant do this as they may be still running
    	#rm -f hlds.*.pid
    
    	# use the $FORCE environment variable if its set
    	if test -n "$FORCE" ; then
    		# Note: command line -binary will override this
    		HL=$FORCE
    		HL_DETECT=0
    	fi
    
    	while test $# -gt 0; do
    		case "$1" in
    		"-game")
    			GAME="$2"
    			shift ;;
    		"-debug")
    			DEBUG=1
    			# Ensure that PID_FILE is set
    			PID_FILE_SET=1
    			if test -z "$PID_FILE"; then
    				PID_FILE="hlds.$$.pid"
    			fi ;;
    		"-norestart")
    			RESTART="" ;;
    		"-pidfile")
    			PID_FILE="$2"
    			PID_FILE_SET=1
    			shift ;;
    		"-binary")
    			HL="$2"
    			HL_DETECT=0
    			shift ;;
    		"-timeout")
    			TIMEOUT="$2"
    			shift ;;
    		"-gdb")
    			GDB="$2"
    			shift ;;
    		"-debuglog")
    			DEBUG_LOG="$2"
    			shift ;;
    		"-autoupdate")
    			AUTO_UPDATE="yes"
    			STEAM="./steam"
    			RESTART="yes" ;;
    		"-steamerr")
    			STEAMERR=1 ;;
    		"-ignoresigint")
    			SIGINT_ACTION="" ;;
    		"-notrap")
    			NO_TRAP=1 ;;
    		"-steamuser")
    			STEAM_USER="$2";
    			shift ;;
    		"-steampass")
    			STEAM_PASSWORD="$2";
    			shift ;;
    		"-help")
    			# quit with syntax
    			quit 2
    			;;
    		esac
    		shift
    	done
    
    	# Ensure we have a game specified
    	if test -z "$GAME"; then
    		echo "Unable to determine game type from command line."
    		quit 1
    	elif test ! -d "$GAME"; then
    		echo "Invalid game type '$GAME' sepecified."
    		quit 1
    	fi
    
    	if test 0 -eq "$NO_TRAP"; then
    		# Set up the int handler
    		# N.B. Dont use SIGINT symbolic value
    		#  as its just INT under ksh
    		trap "$SIGINT_ACTION" 2
    	fi
    
    	# Only detect the CPU if it hasnt been set with
    	# either environment or command line
    	if test "$HL_DETECT" -eq 1; then
    		detectcpu
    	fi
    
    	if test ! -f "$HL"; then
    		echo "Half-life binary '$HL' not found, exiting"
    		quit 1
    	elif test ! -x "$HL"; then
    		# Could try chmod but dont know what we will be
    		# chmoding so just fail.
    		echo "Half-life binary '$HL' not executable, exiting"
    		quit 1
    	fi
    
    	# Setup debugging
    	if test -n "$DEBUG" ; then
    		#turn on core dumps :) (if possible)
    		echo "Enabling debug mode"
    		if test "unlimited" != `ulimit -c` && test "`ulimit -c`" -eq 0 ; then
    			ulimit -c 2000
    		fi
    		GDB_TEST=`$GDB -v`
    		if test -z "$GDB_TEST"; then
    			echo "Please install gdb first."
    			echo "goto http://www.gnu.org/software/gdb/ "
    			DEBUG="" # turn off debugging cause gdb isn't installed
    		fi
    	fi
    
    	if test -n "$STEAM_PASSWORD" && test -z "$STEAM_USER"; then
    		echo "You must set both the steam username and password."
    		quit 1
    	fi
    
    	if test 1 -eq $PID_FILE_SET && test -n "$PID_FILE"; then
    		HL_CMD="$HL $PARAMS -pidfile $PID_FILE"
    	else
    		HL_CMD="$HL $PARAMS"
    	fi
    }
    
    syntax () {
    	# Prints script syntax
    
    	echo "Syntax:"
    	echo "$0 [-game <game>] [-debug] [-norestart] [-pidfile]"
    	echo "	[-binary [hlds_i486|hlds_i686|hlds_amd]"
    	echo "	[-timeout <number>] [-gdb <gdb>] [-autoupdate]"
    	echo "	[-steamerr] [-ignoresigint] [-steamuser <username>]"
    	echo "	[-steampass <password>] [-debuglog <logname>]"
    	echo "Params:"
    	echo "-game <game>        	Specifies the <game> to run."
    	echo "-debug              	Run debugging on failed servers if possible."
    	echo "-debuglog <logname>	Log debug output to this file."
    	echo "-norestart          	Don't attempt to restart failed servers."
    	echo "-pidfile <pidfile>  	Use the specified <pidfile> to store the server pid."
    	echo "-binary <binary>    	Use the specified binary ( no auto detection )."
    	echo "-timeout <number>   	Sleep for <number> seconds before restarting"
    	echo "			a failed server."
    	echo "-gdb <gdb>          	Use <dbg> as the debugger of failed servers."
    	echo "-steamerr     	  	Quit on steam update failure."
    	echo "-steamuser <username>	Use this username for steam updates."  
    	echo "-steampass <password>	Use this password for steam updates" 
    	echo "			(-steamuser must be specified as well)."
    	echo "-ignoresigint       	Ignore signal INT ( prevents CTRL+C quitting"
    	echo "			the script )."
    	echo "-notrap             	Don't use trap. This prevents automatic"
    	echo "			removal of old lock files."
    	echo ""
    	echo "Note: All parameters specified as passed through to the server"
    	echo "including any not listed."
    }
    
    debugcore () {
    	# Debugs any core file if DEBUG is set and
    	# the exitcode is none 0
    
    	exitcode=$1
    
    	if test $exitcode -ne 0; then
    		if test -n "$DEBUG" ; then 
    			echo "bt" > debug.cmds;
    			echo "info locals" >> debug.cmds;
    			echo "info sharedlibrary" >> debug.cmds
    			echo "info frame" >> debug.cmds;  # works, but gives an error... must be last
    			echo "----------------------------------------------" >> $DEBUG_LOG
    			echo "CRASH: `date`" >> $DEBUG_LOG
    			echo "Start Line: $HL_CMD" >> $DEBUG_LOG
    
    			# check to see if a core was dumped
    			if test -f core ; then
    				CORE="core"
    			elif test -f core.`cat $PID_FILE`; then
    				CORE=core.`cat $PID_FILE`
    			elif test -f "$HL.core" ; then
    				CORE="$HL.core"
    			fi
    			
    			if test -n "$CORE"; then
    				$GDB $HL $CORE -x debug.cmds -batch >> $DEBUG_LOG
    			fi
    		
    			echo "End of crash report" >> $DEBUG_LOG
    			echo "----------------------------------------------" >> $DEBUG_LOG
    			echo $CRASH_DEBUG_MSG
    			rm debug.cmds
    		else
    			echo "Add \"-debug\" to the $0 command line to generate a debug.log to help with solving this problem"
    		fi
    	fi
    }
    
    detectcpu() {
    	# Attempts to auto detect the CPU
    	echo "Auto detecting CPU"
    
    	if test -e /proc/cpuinfo; then
    		CPU_VERSION="`grep "cpu family" /proc/cpuinfo | cut -f2 -d":" | tr -d " " | uniq`";
    		if test $CPU_VERSION -lt 4; then
    			echo "Error: hlds_l REQUIRES a 486 CPU or better";
    			quit 1
    	#	elif  test $CPU_VERSION -eq 15; then
    	#		# P4 CPU version
    	#		echo "Using Pentium II Optimised binary."
    	#		HL=./hlds_i686
    	#
    		elif test $CPU_VERSION -ge 6; then
    			AMD="`grep AMD /proc/cpuinfo`";
    			if test -n "$AMD"; then
    				OPTERON="`grep Opteron /proc/cpuinfo`";
    				PLATFORM="`uname -m`"
    				if test -z "$OPTERON"; then
    					OPTERON="`grep "Athlon HX" /proc/cpuinfo`";
    					if test -z "$OPTERON"; then
    						OPTERON="`grep "Athlon(tm) 64" /proc/cpuinfo`";
    					fi
    				fi
    
    				if test -n "$OPTERON" && test "x86_64" = "$PLATFORM"; then
    					echo "Using AMD-Opteron (64 bit) Optimised binary."
    					HL=./hlds_amd
    				else
    					echo "Using AMD Optimised binary."
    					HL=./hlds_amd
    				fi
    			else
    				echo "Using Pentium II Optimised binary."
    
    				# there is a CPU manufactured by VIA that
    				# doesn't support some PII instructions...
    				# detect this.
    				VIACHIP=`grep CentaurHauls /proc/cpuinfo`
    			
    				if test -z "$VIACHIP"; then
    					HL=./hlds_i686
    				fi
    			fi		
    		else
    			echo "Using default binary."
    		fi
    
    	elif test "FreeBSD" = `uname`; then
    		CPU="`grep 'CPU:' /var/run/dmesg.boot`"
    		AMD="`echo $CPU |grep AMD`"
    		I686="`echo $CPU |grep 686`"
    		if test -n "$AMD"; then
    			echo "Using AMD Optimised binary."
    			HL=./hlds_amd
    		elif test -n "$I686" ; then
    			echo "Using Pentium II Optimised binary."
    			HL=./hlds_i686
    		else
    			echo "Using default binary."
    		fi
    	else
    		echo "Using default binary."
    	fi
    }
    
    update() {
    	updatesingle
    }
    
    updatesingle() {
    	# Run the steam update
    	# exits on failure if STEAMERR is set
    
    	if test -n "$AUTO_UPDATE"; then
    		if test -f "$STEAM"; then
    			echo "Updating server using Steam."
    			CMD="$STEAM -command update -game $GAME -dir ."; 
    			if test -n "$STEAM_USER"; then
    				CMD="$CMD -username $STEAM_USER";
    			fi 
    			if test -n "$STEAM_PASSWORD"; then
    				CMD="$CMD -password $STEAM_PASSWORD";
    			fi 
    
    			$CMD
    			if test $? -ne 0; then
    				if test -n "$STEAMERR"; then
    					echo "`date`: Steam Update failed, exiting."
    					quit 1
    				else
    					echo "`date`: Steam Update failed, ignoring."
    					return 0
    				fi
    			fi
    		else
    			if test -n "$STEAMERR"; then
    				echo "Could not locate steam binary:$STEAM, exiting.";
    				quit 1
    			else
    				echo "Could not locate steam binary:$STEAM, ignoring.";
    				return 0
    			fi
    		fi
    	fi
    
    	return 1
    }
    	
    run() {
    	# Runs the steam update and server
    	# Loops if RESTART is set
    	# Debugs if server failure is detected
    	# Note: if RESTART is not set then
    	# 1. DEBUG is set then the server is NOT exec'd
    	# 2. DEBUG is not set the the server is exec'd
    
    	if test -n "$RESTART" ; then
    		echo "Auto-restarting the server on crash"
    
    		#loop forever
    		while true
    		do
    			# Update if needed
    			update
    
    			# Run the server
    			$HL_CMD
    			retval=$?
    			if test $retval -eq 0 && test -z "$AUTO_UPDATE"; then
    				break; # if 0 is returned then just quit
    			fi
    
    			debugcore $retval
    
    			echo "`date`: Server restart in $TIMEOUT seconds"
    
    			# don't thrash the hard disk if the server dies, wait a little
    			sleep $TIMEOUT
    		done # while true 
    	else
    		# Update if needed
    		update
    
    		# Run the server
    		if test -z "$DEBUG"; then
    			# debug not requested we can exec
    			exec $HL_CMD
    		else
    			# debug requested we can't exec
    			$HL_CMD
    			debugcore $?
    		fi
    	fi
    }
    
    quit() {
    	# Exits with the give error code, 1
    	# if none specified.
    	# exit code 2 also prints syntax
    	exitcode="$1"
    
    	# default to failure
    	if test -z "$exitcode"; then
    		exitcode=1
    	fi
    
    	case "$exitcode" in
    	0)
    		echo "`date`: Server Quit" ;;
    	2)
    		syntax ;;
    	*)
    		echo "`date`: Server Failed" ;;
    	esac
    
    	# Remove pid file
    	if test -n "$PID_FILE" && test -f "$PID_FILE" ; then
    		# The specified pid file
    		rm -f $PID_FILE
    	fi
    
    	# reset SIGINT and then kill ourselves properly
    	trap - 2
    	kill -2 $$
    	-debug
    }
    
    # Initialise
    init $*
    
    # Run
    run
    
    # Quit normally
    quit 0
    
    -debug
    debug dodalem w dwoch miejscach, wkleilem na koniec, bez z efektu, wkleilem przed "}" dalej nic....
     

  6. #6 Odp: HLDS - Port zajety (!?) 
    Adminus pospolitus
    Dołączył
    Jan 2008
    Wiek
    20
    Posty
    9,220
    zmień port na inny
    Najlepszy hosting www tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na www.naven.com.pl
    Jebać steama.
     

  7. #7 Odp: HLDS - Port zajety (!?) 
    Lamka
    Dołączył
    Nov 2008
    Posty
    7
    a mozna tak zrobic jesli serwer jest hostingowany u jakiejs firmy?
     

  8. #8 Odp: HLDS - Port zajety (!?) 
    Adminus pospolitus
    Dołączył
    Jan 2008
    Wiek
    20
    Posty
    9,220
    Skoro ktoś postawił sobie serwer na twoim porcie, to dlaczego ma twój serwer nie działać. Napisz do firmy meila że ktoś ci port podkosił, jak nie odpowiedzą to sobie sam zmień
    Najlepszy hosting www tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na www.naven.com.pl
    Jebać steama.
     

  9. #9 Odp: HLDS - Port zajety (!?) 
    Moderator Awatar bakul. <3
    Dołączył
    May 2008
    Wiek
    18
    Posty
    4,210
    Cytat Zamieszczone przez Zdzichu Sztacheta Zobacz posta
    Dodalem i nic nowego sie nie dzieje :/

    teraz to hlds_run wyglada tak:

    Kod:
    #!/bin/sh
    #
    #       Copyright (c) 2002, Valve LLC. All rights reserved.
    #
    #	a wrapper script for the main hl dedicated server binary.
    #	Performs auto-restarting of the server on crash. You can
    #	extend this to log crashes and more.
    #
    
    # setup the libraries, local dir first!
    export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
    
    init() {
    	# Initialises the various variables
    	# Set up the defaults
    	GAME="valve"
    	DEBUG=""
    	RESTART="yes"
    	HL=./hlds_i486
    	HL_DETECT=1
    	TIMEOUT=10 # time to wait after a crash (in seconds)
    	CRASH_DEBUG_MSG="email debug.log to linux@valvesoftware.com"
    	GDB="gdb" # the gdb binary to run
    	DEBUG_LOG="debug.log"
    	PID_FILE="" # only needed it DEBUG is set so init later
    	STEAM=""
    	PID_FILE_SET=0
    	STEAMERR=""
    	SIGINT_ACTION="quit 0" # exit normally on sig int
    	NO_TRAP=0
    	AUTO_UPDATE=""
    	STEAM_USER=""
    	STEAM_PASSWORD=""
    	PARAMS=$*
    
    	# Remove any old default pid files
    	# Cant do this as they may be still running
    	#rm -f hlds.*.pid
    
    	# use the $FORCE environment variable if its set
    	if test -n "$FORCE" ; then
    		# Note: command line -binary will override this
    		HL=$FORCE
    		HL_DETECT=0
    	fi
    
    	while test $# -gt 0; do
    		case "$1" in
    		"-game")
    			GAME="$2"
    			shift ;;
    		"-debug")
    			DEBUG=1
    			# Ensure that PID_FILE is set
    			PID_FILE_SET=1
    			if test -z "$PID_FILE"; then
    				PID_FILE="hlds.$$.pid"
    			fi ;;
    		"-norestart")
    			RESTART="" ;;
    		"-pidfile")
    			PID_FILE="$2"
    			PID_FILE_SET=1
    			shift ;;
    		"-binary")
    			HL="$2"
    			HL_DETECT=0
    			shift ;;
    		"-timeout")
    			TIMEOUT="$2"
    			shift ;;
    		"-gdb")
    			GDB="$2"
    			shift ;;
    		"-debuglog")
    			DEBUG_LOG="$2"
    			shift ;;
    		"-autoupdate")
    			AUTO_UPDATE="yes"
    			STEAM="./steam"
    			RESTART="yes" ;;
    		"-steamerr")
    			STEAMERR=1 ;;
    		"-ignoresigint")
    			SIGINT_ACTION="" ;;
    		"-notrap")
    			NO_TRAP=1 ;;
    		"-steamuser")
    			STEAM_USER="$2";
    			shift ;;
    		"-steampass")
    			STEAM_PASSWORD="$2";
    			shift ;;
    		"-help")
    			# quit with syntax
    			quit 2
    			;;
    		esac
    		shift
    	done
    
    	# Ensure we have a game specified
    	if test -z "$GAME"; then
    		echo "Unable to determine game type from command line."
    		quit 1
    	elif test ! -d "$GAME"; then
    		echo "Invalid game type '$GAME' sepecified."
    		quit 1
    	fi
    
    	if test 0 -eq "$NO_TRAP"; then
    		# Set up the int handler
    		# N.B. Dont use SIGINT symbolic value
    		#  as its just INT under ksh
    		trap "$SIGINT_ACTION" 2
    	fi
    
    	# Only detect the CPU if it hasnt been set with
    	# either environment or command line
    	if test "$HL_DETECT" -eq 1; then
    		detectcpu
    	fi
    
    	if test ! -f "$HL"; then
    		echo "Half-life binary '$HL' not found, exiting"
    		quit 1
    	elif test ! -x "$HL"; then
    		# Could try chmod but dont know what we will be
    		# chmoding so just fail.
    		echo "Half-life binary '$HL' not executable, exiting"
    		quit 1
    	fi
    
    	# Setup debugging
    	if test -n "$DEBUG" ; then
    		#turn on core dumps :) (if possible)
    		echo "Enabling debug mode"
    		if test "unlimited" != `ulimit -c` && test "`ulimit -c`" -eq 0 ; then
    			ulimit -c 2000
    		fi
    		GDB_TEST=`$GDB -v`
    		if test -z "$GDB_TEST"; then
    			echo "Please install gdb first."
    			echo "goto http://www.gnu.org/software/gdb/ "
    			DEBUG="" # turn off debugging cause gdb isn't installed
    		fi
    	fi
    
    	if test -n "$STEAM_PASSWORD" && test -z "$STEAM_USER"; then
    		echo "You must set both the steam username and password."
    		quit 1
    	fi
    
    	if test 1 -eq $PID_FILE_SET && test -n "$PID_FILE"; then
    		HL_CMD="$HL $PARAMS -pidfile $PID_FILE"
    	else
    		HL_CMD="$HL $PARAMS"
    	fi
    }
    
    syntax () {
    	# Prints script syntax
    
    	echo "Syntax:"
    	echo "$0 [-game <game>] [-debug] [-norestart] [-pidfile]"
    	echo "	[-binary [hlds_i486|hlds_i686|hlds_amd]"
    	echo "	[-timeout <number>] [-gdb <gdb>] [-autoupdate]"
    	echo "	[-steamerr] [-ignoresigint] [-steamuser <username>]"
    	echo "	[-steampass <password>] [-debuglog <logname>]"
    	echo "Params:"
    	echo "-game <game>        	Specifies the <game> to run."
    	echo "-debug              	Run debugging on failed servers if possible."
    	echo "-debuglog <logname>	Log debug output to this file."
    	echo "-norestart          	Don't attempt to restart failed servers."
    	echo "-pidfile <pidfile>  	Use the specified <pidfile> to store the server pid."
    	echo "-binary <binary>    	Use the specified binary ( no auto detection )."
    	echo "-timeout <number>   	Sleep for <number> seconds before restarting"
    	echo "			a failed server."
    	echo "-gdb <gdb>          	Use <dbg> as the debugger of failed servers."
    	echo "-steamerr     	  	Quit on steam update failure."
    	echo "-steamuser <username>	Use this username for steam updates."  
    	echo "-steampass <password>	Use this password for steam updates" 
    	echo "			(-steamuser must be specified as well)."
    	echo "-ignoresigint       	Ignore signal INT ( prevents CTRL+C quitting"
    	echo "			the script )."
    	echo "-notrap             	Don't use trap. This prevents automatic"
    	echo "			removal of old lock files."
    	echo ""
    	echo "Note: All parameters specified as passed through to the server"
    	echo "including any not listed."
    }
    
    debugcore () {
    	# Debugs any core file if DEBUG is set and
    	# the exitcode is none 0
    
    	exitcode=$1
    
    	if test $exitcode -ne 0; then
    		if test -n "$DEBUG" ; then 
    			echo "bt" > debug.cmds;
    			echo "info locals" >> debug.cmds;
    			echo "info sharedlibrary" >> debug.cmds
    			echo "info frame" >> debug.cmds;  # works, but gives an error... must be last
    			echo "----------------------------------------------" >> $DEBUG_LOG
    			echo "CRASH: `date`" >> $DEBUG_LOG
    			echo "Start Line: $HL_CMD" >> $DEBUG_LOG
    
    			# check to see if a core was dumped
    			if test -f core ; then
    				CORE="core"
    			elif test -f core.`cat $PID_FILE`; then
    				CORE=core.`cat $PID_FILE`
    			elif test -f "$HL.core" ; then
    				CORE="$HL.core"
    			fi
    			
    			if test -n "$CORE"; then
    				$GDB $HL $CORE -x debug.cmds -batch >> $DEBUG_LOG
    			fi
    		
    			echo "End of crash report" >> $DEBUG_LOG
    			echo "----------------------------------------------" >> $DEBUG_LOG
    			echo $CRASH_DEBUG_MSG
    			rm debug.cmds
    		else
    			echo "Add \"-debug\" to the $0 command line to generate a debug.log to help with solving this problem"
    		fi
    	fi
    }
    
    detectcpu() {
    	# Attempts to auto detect the CPU
    	echo "Auto detecting CPU"
    
    	if test -e /proc/cpuinfo; then
    		CPU_VERSION="`grep "cpu family" /proc/cpuinfo | cut -f2 -d":" | tr -d " " | uniq`";
    		if test $CPU_VERSION -lt 4; then
    			echo "Error: hlds_l REQUIRES a 486 CPU or better";
    			quit 1
    	#	elif  test $CPU_VERSION -eq 15; then
    	#		# P4 CPU version
    	#		echo "Using Pentium II Optimised binary."
    	#		HL=./hlds_i686
    	#
    		elif test $CPU_VERSION -ge 6; then
    			AMD="`grep AMD /proc/cpuinfo`";
    			if test -n "$AMD"; then
    				OPTERON="`grep Opteron /proc/cpuinfo`";
    				PLATFORM="`uname -m`"
    				if test -z "$OPTERON"; then
    					OPTERON="`grep "Athlon HX" /proc/cpuinfo`";
    					if test -z "$OPTERON"; then
    						OPTERON="`grep "Athlon(tm) 64" /proc/cpuinfo`";
    					fi
    				fi
    
    				if test -n "$OPTERON" && test "x86_64" = "$PLATFORM"; then
    					echo "Using AMD-Opteron (64 bit) Optimised binary."
    					HL=./hlds_amd
    				else
    					echo "Using AMD Optimised binary."
    					HL=./hlds_amd
    				fi
    			else
    				echo "Using Pentium II Optimised binary."
    
    				# there is a CPU manufactured by VIA that
    				# doesn't support some PII instructions...
    				# detect this.
    				VIACHIP=`grep CentaurHauls /proc/cpuinfo`
    			
    				if test -z "$VIACHIP"; then
    					HL=./hlds_i686
    				fi
    			fi		
    		else
    			echo "Using default binary."
    		fi
    
    	elif test "FreeBSD" = `uname`; then
    		CPU="`grep 'CPU:' /var/run/dmesg.boot`"
    		AMD="`echo $CPU |grep AMD`"
    		I686="`echo $CPU |grep 686`"
    		if test -n "$AMD"; then
    			echo "Using AMD Optimised binary."
    			HL=./hlds_amd
    		elif test -n "$I686" ; then
    			echo "Using Pentium II Optimised binary."
    			HL=./hlds_i686
    		else
    			echo "Using default binary."
    		fi
    	else
    		echo "Using default binary."
    	fi
    }
    
    update() {
    	updatesingle
    }
    
    updatesingle() {
    	# Run the steam update
    	# exits on failure if STEAMERR is set
    
    	if test -n "$AUTO_UPDATE"; then
    		if test -f "$STEAM"; then
    			echo "Updating server using Steam."
    			CMD="$STEAM -command update -game $GAME -dir ."; 
    			if test -n "$STEAM_USER"; then
    				CMD="$CMD -username $STEAM_USER";
    			fi 
    			if test -n "$STEAM_PASSWORD"; then
    				CMD="$CMD -password $STEAM_PASSWORD";
    			fi 
    
    			$CMD
    			if test $? -ne 0; then
    				if test -n "$STEAMERR"; then
    					echo "`date`: Steam Update failed, exiting."
    					quit 1
    				else
    					echo "`date`: Steam Update failed, ignoring."
    					return 0
    				fi
    			fi
    		else
    			if test -n "$STEAMERR"; then
    				echo "Could not locate steam binary:$STEAM, exiting.";
    				quit 1
    			else
    				echo "Could not locate steam binary:$STEAM, ignoring.";
    				return 0
    			fi
    		fi
    	fi
    
    	return 1
    }
    	
    run() {
    	# Runs the steam update and server
    	# Loops if RESTART is set
    	# Debugs if server failure is detected
    	# Note: if RESTART is not set then
    	# 1. DEBUG is set then the server is NOT exec'd
    	# 2. DEBUG is not set the the server is exec'd
    
    	if test -n "$RESTART" ; then
    		echo "Auto-restarting the server on crash"
    
    		#loop forever
    		while true
    		do
    			# Update if needed
    			update
    
    			# Run the server
    			$HL_CMD
    			retval=$?
    			if test $retval -eq 0 && test -z "$AUTO_UPDATE"; then
    				break; # if 0 is returned then just quit
    			fi
    
    			debugcore $retval
    
    			echo "`date`: Server restart in $TIMEOUT seconds"
    
    			# don't thrash the hard disk if the server dies, wait a little
    			sleep $TIMEOUT
    		done # while true 
    	else
    		# Update if needed
    		update
    
    		# Run the server
    		if test -z "$DEBUG"; then
    			# debug not requested we can exec
    			exec $HL_CMD
    		else
    			# debug requested we can't exec
    			$HL_CMD
    			debugcore $?
    		fi
    	fi
    }
    
    quit() {
    	# Exits with the give error code, 1
    	# if none specified.
    	# exit code 2 also prints syntax
    	exitcode="$1"
    
    	# default to failure
    	if test -z "$exitcode"; then
    		exitcode=1
    	fi
    
    	case "$exitcode" in
    	0)
    		echo "`date`: Server Quit" ;;
    	2)
    		syntax ;;
    	*)
    		echo "`date`: Server Failed" ;;
    	esac
    
    	# Remove pid file
    	if test -n "$PID_FILE" && test -f "$PID_FILE" ; then
    		# The specified pid file
    		rm -f $PID_FILE
    	fi
    
    	# reset SIGINT and then kill ourselves properly
    	trap - 2
    	kill -2 $$
    	-debug
    }
    
    # Initialise
    init $*
    
    # Run
    run
    
    # Quit normally
    quit 0
    
    -debug
    debug dodalem w dwoch miejscach, wkleilem na koniec, bez z efektu, wkleilem przed "}" dalej nic....
    Znajdź w panelu gdzieś w konfiguracji polecenie startowe lub element docelowy i tam dopisz
    Kod:
    -debug
     

  10. #10 Odp: HLDS - Port zajety (!?) 
    Lamka
    Dołączył
    Nov 2008
    Posty
    7
    I tu zaczyna sie drugi problem.....

    Gdzie na moim kochanym Hitme jest linia/sciezka komend....

    W google widze tylko "Gdzie jest linia polecen HitMe.pl?"
    Aha, i moglby ktos opisac jak sie zmienia port? Bo chyba przez ta hlds_run +ip +port itd....
    Sry ze Wam truje ale juz nie mam pojecia co robic z tym fantem.... chyba skonczy sie na nieosiagalnym bok@hitme.pl.....
     

  11. #11 Odp: HLDS - Port zajety (!?) 
    Moderator Awatar bakul. <3
    Dołączył
    May 2008
    Wiek
    18
    Posty
    4,210
    Tak z miejsca to Ci nie powiem, bo nie znam na pamięć rozkładu różnych paneli, które dotychczas widziałem. Musiałbym mieć dane do panelu i sam to zrobić.
     

  12. #12 Odp: HLDS - Port zajety (!?) 
    Lamka
    Dołączył
    Nov 2008
    Posty
    7
    Wiem :D
    Kazdy panel jest inny a ten podobno nietypowy....
    Pogoogluje, zobacze co z tego wyjdzie...
    A jakby mi nie wyszlo, moglbym Cie poprosic o pomoc? :P

    // EDIT
    HitMe juz naprawilo problem, temat do zamkniecia

    PS, thx za checi :D
    Ostatnio edytowane przez Zdzichu Sztacheta ; 19-03-2009 o 17:57
     

Podobne wątki

  1. [Non Steam] port problem
    By fer123 in forum Problemy z CS 1.6
    Odpowiedzi: 1
    Ostatni post / autor: 05-10-2010, 21:06
  2. Problem (port/ip)
    By marian200 in forum Problemy i konfiguracja AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 06-07-2010, 23:57
  3. Scan Port 1.3
    By Nudzi Mi Sie -_- in forum Darmowe i legalne programy do pobrania
    Odpowiedzi: 0
    Ostatni post / autor: 06-06-2009, 16:24
  4. Port Detective 2
    By fReeBuck3T in forum Darmowe i legalne programy do pobrania
    Odpowiedzi: 0
    Ostatni post / autor: 11-05-2009, 11:13
  5. Port Mapper 1.40
    By fReeBuck3T in forum Darmowe i legalne programy do pobrania
    Odpowiedzi: 0
    Ostatni post / autor: 24-02-2009, 21:42
  6. Port Scanner 2.0
    By fReeBuck3T in forum Darmowe i legalne programy do pobrania
    Odpowiedzi: 0
    Ostatni post / autor: 16-02-2009, 14:10
  7. Odpowiedzi: 3
    Ostatni post / autor: 21-08-2008, 12:10
  8. port 27015
    By Shiji in forum Problemy z CS 1.6
    Odpowiedzi: 2
    Ostatni post / autor: 15-05-2008, 19:39
  9. Jaki port?
    By Arytmetyk in forum Problemy związane z CS:CZ Steam i Non Steam
    Odpowiedzi: 9
    Ostatni post / autor: 24-03-2008, 09:50
  10. HLDS router port
    By Peter_4 in forum Konfiguracja serwera HLDS Counter Strike 1.6
    Odpowiedzi: 1
    Ostatni post / autor: 02-12-2007, 00:35

Odwiedzający znaleźli tę stronę szukając:

hlds_run dowload

couldnt exec language.cfg warning: udp_opensocket: port: 27015 bind: address already in use fatal error (shutting down): couldnt allocate dedicated server ip port 27015.

Uprawnienia umieszczania postów
  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •