Правила форума Гаранты форума
Размещение рекламы AMX-X компилятор

Здравствуйте, гость Вход | Регистрация

Наши новости:

14-дек
24-апр
10-апр
11-апр

> Информационная доска

Данный раздел предназначен для обсуждения, а также решения технических проблем связанных с серверной частью. Обсуждения касательно игровых клиентов ведутся здесь.

1. Во время создания новой темы аккуратно оформляйте её, не допускайте грамматических ошибок.
2. Описывая проблему старайтесь, как можно больше рассказать о ней, а так же о действиях с сервером после которых она возникла, по возможности подкрепите информацию логами.
3. Если вопрос касается проблемы в работе сервера, то обязательно прикрепляйте список плагинов (введите в консоли сервера: meta list и amxx plugins), настройки server.cfg, логи. Так же указывайте операционную систему, версию HLDS (введите к консоли сервера: version) и где хостится сервер.

Длинную информацию скрывайте под спойлер.
2 страниц V   1 2

Помогайте в оптимизации

, Нужна помощь так как я новичёк
Статус пользователя Fire F0x
сообщение 2.10.2010, 4:37
Сообщение #1
Стаж: 15 лет

Сообщений: 61
Благодарностей: 1
Полезность: < 0

Ну вобщем всем здравствйте.

Проблемма вот в чём: Я поставил сервер на хостинг,ОС Lunix. metamod.amxmod,dropto
Скорость вход:100мб исход:90мб
Проблема есть сомнения что мне поставить boosteri или mmtimer сервер 28 слотов.?
И сколько фпс нужно только точны значение,и чтоб без нагрузок.
Подскажите пожалуйста я новичёк.

ошибка
./hlds_run: line 321: 28677 Segmentation fault$HL_CMD

under certain conditions; type `meta gpl' for details.
This is free software, and you are welcome to redistribute it
Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
Metamod version 1.19 Copyright © 2001-2006 Will Day

Server IP address 92.50.238.234:27031
couldn't exec banned.cfg
couldn't exec listip.cfg
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:



И вот эта проблемма появилась.
i
Уведомление:
Уносите коды ошибок и т.д. в спойлер


Отредактировал: balaban, - 2.10.2010, 8:42
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   Цитировать сообщение
Статус пользователя Street1993
сообщение 2.10.2010, 7:40
Сообщение #2
Стаж: 15 лет

Сообщений: 5
Благодарностей: 2
Полезность: 0

цитата
Цитата(Fire F0x @ 2.10.2010, 6:30) *
./hlds_run: line 321: 28677 Segmentation fault$HL_CMD

under certain conditions; type `meta gpl' for details.
This is free software, and you are welcome to redistribute it
Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
Metamod version 1.19 Copyright © 2001-2006 Will Day

Server IP address 92.50.238.234:27031
couldn't exec banned.cfg
couldn't exec listip.cfg
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:


И вот эта проблемма появилась.

Как сервер запускаешь? если через коносль то нужно сделать параметр -master

Отредактировал: balaban, - 2.10.2010, 8:42
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
Поблагодарили 1 раз
   + Цитировать сообщение
Статус пользователя Fire F0x
сообщение 2.10.2010, 8:19
Сообщение #3
Стаж: 15 лет

Сообщений: 61
Благодарностей: 1
Полезность: < 0

Цитата(Street1993 @ 2.10.2010, 7:40) *
Как сервер запускаешь? если через коносль то нужно сделать параметр -master

А в другом месте можно написать этот параметр. Просто я не знаю какой ярлык запуска.
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя balaban
сообщение 2.10.2010, 8:46
Сообщение #4


Стаж: 18 лет

Сообщений: 2131
Благодарностей: 1074
Полезность: 1160

MyArena.ru
Меценат Меценат

Цитата
ОС Lunix

Но как на него можно поставить бустер лайт? О_О
Цитата
Setmaster unavailable, start a server first.

Возможно что сетмастр уже не работает...Выложи более подронее инфу.
Цитата
Как сервер запускаешь? если через коносль то нужно сделать параметр -master

Мда...На inux только консолька сервера,не зависимо от версии...

Отредактировал: balaban, - 2.10.2010, 8:47
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
Поблагодарили 1 раз
   + Цитировать сообщение
Статус пользователя нуб
сообщение 2.10.2010, 9:01
Сообщение #5


Стаж: 16 лет

Сообщений: 1966
Благодарностей: 580
Полезность: 37

Нет параметра -master


!
Аккаунт пользователя заблокирован до: 26.8.2285, 9:17
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Fire F0x
сообщение 2.10.2010, 10:02
Сообщение #6
Стаж: 15 лет

Сообщений: 61
Благодарностей: 1
Полезность: < 0

Цитата(нуб2 @ 2.10.2010, 10:01) *
Нет параметра -master

Куда его пихнуть? Кроме параметра запуска. Я там хз чё за чё отвечает.
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Awesomemz
сообщение 2.10.2010, 10:26
Сообщение #7
Стаж: 15 лет

Сообщений: 120
Благодарностей: 5
Полезность: < 0

Цитата(Fire F0x @ 2.10.2010, 6:37) *
Ну вобщем всем здравствйте.

Проблемма вот в чём: Я поставил сервер на хостинг,ОС Lunix. metamod.amxmod,dropto
Скорость вход:100мб исход:90мб
Проблема есть сомнения что мне поставить boosteri или mmtimer сервер 28 слотов.?
И сколько фпс нужно только точны значение,и чтоб без нагрузок.
Подскажите пожалуйста я новичёк.

ошибка
./hlds_run: line 321: 28677 Segmentation fault$HL_CMD

under certain conditions; type `meta gpl' for details.
This is free software, and you are welcome to redistribute it
Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
Metamod version 1.19 Copyright © 2001-2006 Will Day

Server IP address 92.50.238.234:27031
couldn't exec banned.cfg
couldn't exec listip.cfg
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:
Setmaster unavailable, start a server first.
Usage:



И вот эта проблемма появилась.
i
Уведомление:
Уносите коды ошибок и т.д. в спойлер

Напиши в консоле сервера meta list, setmaster и полученные результаты напиши сюда. Так же выложи параметры запуска сервера, конфиг server.cfg. Только Rcon пароль скрой.

Отредактировал: Awesomemz, - 2.10.2010, 10:28
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Ser_UFL
сообщение 2.10.2010, 12:47
Сообщение #8


Стаж: 19 лет

Сообщений: 1632
Благодарностей: 637
Полезность: 819

нуб2, Street1993, такого параметра нет. Есть -nomaster, его просто убрать нужно, если прописан.
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
cs-portal
сообщение 2.10.2010, 13:01
Сообщение #9
Стаж: 16 лет

Сообщений: 8181
Благодарностей: 2709
Полезность: 0

у тебя ошибка описание которой я говорил - прописаны сетмастера в сервер кфг
они НЕ загрузятся потому что не стартовала функция в самой хлдс! для етого их надо кинуть в amxx.cfg который загружается позже чем server.cfg через команду amx_cvar "setmaster add ....."
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя нуб
сообщение 2.10.2010, 14:27
Сообщение #10


Стаж: 16 лет

Сообщений: 1966
Благодарностей: 580
Полезность: 37

Вы такие долгие. В конфиг, перед сетмастерами, добавь wait


!
Аккаунт пользователя заблокирован до: 26.8.2285, 9:17
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Fire F0x
сообщение 2.10.2010, 14:30
Сообщение #11
Стаж: 15 лет

Сообщений: 61
Благодарностей: 1
Полезность: < 0

Цитата(cs-portal @ 2.10.2010, 14:01) *
у тебя ошибка описание которой я говорил - прописаны сетмастера в сервер кфг
они НЕ загрузятся потому что не стартовала функция в самой хлдс! для етого их надо кинуть в amxx.cfg который загружается позже чем server.cfg через команду amx_cvar "setmaster add ....."

оп По подробней плзз:)
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя 330863
сообщение 2.10.2010, 20:56
Сообщение #12


Стаж: 16 лет

Сообщений: 4358
Благодарностей: 1079
Полезность: 497

cs-portal,
у него амх не стартовал епт ,и мапу при запуске он НЕ указал ......
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Fire F0x
сообщение 3.10.2010, 6:54
Сообщение #13
Стаж: 15 лет

Сообщений: 61
Благодарностей: 1
Полезность: < 0

проблема
Reason: Kicked :"Sorry but your ping is too high, try again later..."
Dropped sotik from server
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Reason: Client sent 'drop'
Dropped ALEXANDR from server
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
109.236.53.85:27005:reconnect
Reason: Client sent 'drop'
Dropped sc-On1.WhE.rnd from server
Reason: Client sent 'drop'
Dropped Light*Wish from server
Reason: Kicked :"Sorry but your ping is too high, try again later..."
Dropped -A[k]TiV-.tm STR_IKE from server
Reason: Client sent 'drop'
Dropped -A[k]TiV-.tm STR_IKE from server
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Reason: Client sent 'drop'
Dropped |D|I|A|M|O|N|D| from server
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Reason: Client sent 'drop'
Dropped < Nikk > from server
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Reason: Kicked :"Sorry but your ping is too high, try again later..."
Dropped Saledad from server
Reason: Client sent 'drop'
Dropped -=.P.l.a.y.e.r.=- from server
Reason: Kicked :"Sorry but your ping is too high, try again later..."
Dropped )))[cccp] Klassik from server
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Reason: Client sent 'drop'
Dropped galick from server
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
109.236.61.60:27005:reconnect
Reason: Timed out
Dropped Laming 2010 l maniak from server
SZ_GetSpace: overflow on Laming 2010 l maniak
SZ_GetSpace: overflow on Laming 2010 l maniak
Reason: Client sent 'drop'
Dropped |D|I|A|M|O|N|D| from server
SZ_GetSpace: overflow on Laming 2010 l maniak
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Reason: Client sent 'drop'
Dropped Mihasy from server
6oTuK : /rus
Warning: Unable to open overviews/de_dust2_2x2.txt for transfer
Warning: Unable to open overviews/de_dust2_2x2.tga for transfer
Menu item 19 added to Menus Front-End: "Plugin Commands" from plugin "pluginmenu.amxx"
Menu item 18 added to Menus Front-End: "Plugin Cvars" from plugin "pluginmenu.amxx"
Menu item 17 added to Menus Front-End: "БАН ПО КС" from plugin "amx_bancs.amxx"
Paused plugin "statsx.amxx"
Executing AMX Mod X Configuration File done...
Invalid address "65.73.232.253:27010", setmaster command ignored
Invalid address "65.73.232.251:27010", setmaster command ignored
Invalid address "207.173.177.12:27010", setmaster command ignored
Invalid address "207.173.177.11:27010", setmaster command ignored
Invalid address "208.111.171.83:27010", setmaster command ignored
Invalid address "208.111.171.82:27010", setmaster command ignored
Invalid address "208.111.158.53:27010", setmaster command ignored
Invalid address "208.111.158.52:27010", setmaster command ignored
Invalid address "208.111.133.85:27010", setmaster command ignored
Invalid address "208.111.133.84:27010", setmaster command ignored
Invalid address "72.165.61.188:27010", setmaster command ignored
Invalid address "72.165.61.187:27010", setmaster command ignored
Invalid address "72.165.61.186:27010", setmaster command ignored
Invalid address "72.165.61.185:27010", setmaster command ignored
Invalid address "69.28.156.250:27010", setmaster command ignored
Invalid address "69.28.145.172:27010", setmaster command ignored
Invalid address "69.28.145.171:27010", setmaster command ignored
Invalid address "69.28.145.170:27010", setmaster command ignored
Invalid address "68.142.116.179:27010", setmaster command ignored
Invalid address "68.142.116.178:27010", setmaster command ignored
Invalid address "68.142.91.36:27010", setmaster command ignored
Invalid address "68.142.91.35:27010", setmaster command ignored
Invalid address "68.142.91.34:27010", setmaster command ignored
Invalid address "68.142.64.165:27010", setmaster command ignored
Invalid address "68.142.64.164:27010", setmaster command ignored
Invalid address "72.165.61.190:27010", setmaster command ignored
Invalid address "72.165.61.189:27010", setmaster command ignored
Invalid address "69.28.151.178:27010", setmaster command ignored
Invalid address "69.28.151.162:27010", setmaster command ignored
Invalid address "69.28.140.247:27010", setmaster command ignored
Invalid address "69.28.140.246:27010", setmaster command ignored
Invalid address "68.142.72.250:27010", setmaster command ignored
Invalid address "213.239.209.221:27010", setmaster command ignored
Invalid address "188.40.40.201:27010", setmaster command ignored

____________________
Добавлено
____________________
Вот ещё чё стало вылазить

Вот видимо Параметры запуска
hlds_run
#!/bin/sh
#
# Copyright © 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=0
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=""
STEAM=""
STEAMERR=""
SIGINT_ACTION="quit 0" # exit normally on sig int
NO_TRAP=0
AUTO_UPDATE=""
BETA_VERSION=""
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
if test -z "$PID_FILE"; then
PID_FILE="hlds.$$.pid"
fi ;;
"-norestart")
RESTART="" ;;
"-pidfile")
PID_FILE="$2"
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 ;;
"-beta")
BETA_VERSION="$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 "$DEBUG" -eq 1; then
#turn on core dumps :) (if possible)
echo "Enabling debug mode"
if 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=0 # turn off debugging cause gdb isn't installed
fi
fi

PID_IN_PARAMS="`echo $PARAMS | grep -e -pidfile`"

if test -z "$PID_IN_PARAMS" && 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] [-beta <version>]"
echo " [-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 "-beta <version> Make use of a beta version of this server from Steam"
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 "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 "FreeBSD" = `uname`; then
PROC="/usr/compat/linux/proc"
else
PROC="/proc"
fi

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 -ge 15; then
# Core 2 or greater
echo "Using AMD Optimised binary."
HL=./hlds_amd
elif test $CPU_VERSION -ge 6; then
AMD="`grep AMD $PROC/cpuinfo`";
if test -n "$AMD"; then
echo "Using AMD Optimised binary."
HL=./hlds_amd
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`"
K8="`echo $CPU |grep K8`"
I686="`echo $CPU |grep 686`"
if test -n "$AMD"; then
echo "Using AMD Optimised binary."
HL=./hlds_amd
elif test -n "$K8" ; 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 "$BETA_VERSION"; then
CMD="$CMD -beta $BETA_VERSION";
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 "$DEBUG" -eq 0; 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 $$
}

# Initialise
init $*

# Run
run

# Quit normally
quit 0


Отредактировал: balaban, - 3.10.2010, 8:50
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Street1993
сообщение 3.10.2010, 20:48
Сообщение #14
Стаж: 15 лет

Сообщений: 5
Благодарностей: 2
Полезность: 0

Цитата(Ser_UFL @ 2.10.2010, 13:47) *
нуб2, Street1993, такого параметра нет. Есть -nomaster, его просто убрать нужно, если прописан.

как нету , а что на всех сайтах в статьях про видимость интернета пишут обязательно +sv_lan 0 -master

hlds.exe -console +sv_lan 0 -insecure -game cstrike -master -noipx +maxplayers 21 +map de_dust +port 27015 +ip 255.255.255.255
ну у меня примерно такая строчка запуска, думаете нужно удолить значение -master и народ появится?

Отредактировал: Street1993, - 3.10.2010, 20:48
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя 330863
сообщение 3.10.2010, 21:06
Сообщение #15


Стаж: 16 лет

Сообщений: 4358
Благодарностей: 1079
Полезность: 497

Street1993,
у меня без неё забитый сервак :D:D
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя balaban
сообщение 3.10.2010, 21:15
Сообщение #16


Стаж: 18 лет

Сообщений: 2131
Благодарностей: 1074
Полезность: 1160

MyArena.ru
Меценат Меценат

Street1993,
Читать научись,какой нафиг hlds.exe если у него
Цитата
ОС Lunix
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Ser_UFL
сообщение 3.10.2010, 22:33
Сообщение #17


Стаж: 19 лет

Сообщений: 1632
Благодарностей: 637
Полезность: 819

Street1993, на всех заборах тоже пишут...
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Street1993
сообщение 4.10.2010, 8:38
Сообщение #18
Стаж: 15 лет

Сообщений: 5
Благодарностей: 2
Полезность: 0

Цитата(Ser_UFL @ 3.10.2010, 23:33) *
Street1993, на всех заборах тоже пишут...

Ну вот у меня виндус а не линукс , т.е просто удолить этот параметр?
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Ser_UFL
сообщение 4.10.2010, 11:15
Сообщение #19


Стаж: 19 лет

Сообщений: 1632
Благодарностей: 637
Полезность: 819

Да, просто убрать парамерт -nomaster..
Тоже самое и -insecure... (Параметра -secure на движке GoldSource не припоминаю)
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Fire F0x
сообщение 4.10.2010, 12:18
Сообщение #20
Стаж: 15 лет

Сообщений: 61
Благодарностей: 1
Полезность: < 0

Так что мне тоделать ?
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
2 страниц V   1 2
 
Тема закрытаНачать новую тему
 
0 пользователей и 1 гостей читают эту тему: