AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   HLTV Autorecord (https://forums.alliedmods.net/showthread.php?t=109583)

draft 11-18-2009 21:19

HLTV Autorecord
 
6 Attachment(s)
Description:
This is a simple and usefull plugin designed for servers, that want to use autorecording hltv, but dont want to have empty demos when there are no players (at night, for example).
So, when hltv is connected, plugin will check minimal amount of players defined by the cvar and if it is not recording, it will start record. When the amount of players is lower than this cvar, hltv stops recording.
You can also define the path, where the demo will be stored.
Note:
1. If u have 2 or more HLTV in server, the only first connected will record.
2. To enable plugin without reading this flood about cvars just do:
2.1 Create cstrike/demos folder.
2.2 Find hltv.cfg and change adminpassword "hltvadminpass"
2.3 Add hltv_autorecord.amxx into cstrike/addons/configs/plugins.ini
Cvars:
autohltv_record 1 - enables autorecording
autohltv_path "demos/HLTV" - it means, that you will have "cstrike/demos/HLTV-12389034.dem". If you want to put the demos into ctrike folder, just make this cvar empty.
autohltv_ignorebots 1 - ignore bots as real players, it means that plugin will not count them at all (look next cvar). If you have bots, then change this cvar to 0 and change map on the server (or restart).
autohltv_minplayers 2 - minimum number of players in game to start recording hltv
autohltv_pass "hltvadminpass" - the pass to control hltv. Go to the hltv.cfg and find adminpassword there. Now you can change it to this or any other that you define by this cvar.
autohltv_recording 1|0 - automatic cvar, dont touch it if you dont know what you do. You can use it in server monitoring to find whether hltv is recording or not.
autohltv_time 0|1|2, 2 is default. 0 - no timer show as hudmessage. 1 - timer only for hltv. 2 - for all players. This may be usefull to set 2 for public servers, because it is not bad to know every second what the time is and you can use 1 for showing the time only for hltv, so you will see it in hltv demo and check the real time and match with time in your logs.
autohltv_delay 30.0 - delay should be equal to delay in hltv.cfg (director.cfg) of HLTV-server configuration file.
Required modules:
<sockets>
Credits:
Infra
Changelog:
1.7 - major update and added "autohltv_delay 30.0" cvar
1.6 - update of this plugin (final fix versus server crashing).
1.5 - Final fix versus server crash and added time showing feature for hltv or for all players set by default (configured by the cvar - read above). This will work as soon, as hltv is connected to server (so do not expect any if you dont have hltv)
1.3 - Fix versus server crashing (hope, the last one)
1.2 - Fix versus server crashing
1.1 - Fix versus server crash and added cvar for announcing, that hltv is recording.
1.0 - Initial release.

p.s. For hltv correct storage, there is php script in russian language. To correctly split demo name, use the autohltv_path "demos/HLTV" or just "HLTV". Credits to One, Timmy and a little bit for me :)

p.p.s Arch.php.gz is a crontab-usage php-script if you have hltv server and web-server on the same machine. It will automatically compress the demos into zip and put them from your hlds/cstrike/demos/server1 folder into /srv/http/demos/server1 (i mean, to your http path). Before using change the pathes inside the script. After it is ready, simply create a file, for example, "cron_demos"
Code:

SHELL=/bin/bash
0-59 * * * * php /path_to_arch.php/arch.php

and execute
Code:

crontab cron_demos
That is full auto demo routine, you can see, how it works here http://demo.overpro.ru/demos/pub (russian language only) :)

Zombiezzz 11-18-2009 22:05

Re: HLTV Autorecord
 
Nice!

soolt 11-19-2009 00:26

Re: HLTV Autorecord
 
simple and usefull

worldspawn 11-19-2009 13:37

For mother Russia
 
:up:good job, usefull

#8 SickneSS 11-19-2009 20:08

Re: HLTV Autorecord
 
I Like It,Good Job

HUNTERxp 11-19-2009 23:11

Re: HLTV Autorecord
 
Thank you!

Было супер, если бы ещё имя демки содержало ВРЕМЯ начала записи. Заранее спасибо!
If you can add TIMESTAMP in demoname, it will be wonderful! Thanks in advance!

One 11-20-2009 05:05

Re: HLTV Autorecord
 
GJ but i will never play on a war server with amxx.

worldspawn 11-20-2009 05:25

Re: HLTV Autorecord
 
Quote:

Было супер, если бы ещё имя демки содержало ВРЕМЯ начала записи. Заранее спасибо!
А разве когда демка начинает записыватся, её имя не содержит этого?

HUNTERxp 11-20-2009 05:45

Re: HLTV Autorecord
 
Quote:

Originally Posted by worldspawn (Post 993962)
А разве когда демка начинает записыватся, её имя не содержит этого?

Вот что на тесте получилось: HLTV-0911200727-de_dust2.dem
Необъяснимое число 27

draft 11-20-2009 07:29

Re: HLTV Autorecord
 
Формат демки HLTV-годмесяцденьЧАСЫМИНУТЫ-карта.dem
Вот и получилось 2009.11.20 07:27

One 11-20-2009 07:50

Re: HLTV Autorecord
 
HELLO????
EN PLEASE?

HUNTERxp 11-20-2009 08:01

Re: HLTV Autorecord
 
Спасибо за разъяснения.
Затупил.

draft 11-20-2009 10:55

Re: HLTV Autorecord
 
I just explained for russians the format of autorecorded demo-file.
HLTV-year+month+day+hour+minute-map.dem

One 11-20-2009 10:57

Re: HLTV Autorecord
 
if you like, pm me & we do a php script for this. :D so that the demos can be downloaded from homepage too :P

X49-Malcolm 11-27-2009 07:18

Re: HLTV Autorecord
 
Плагин конечно супер, но было бы удобнее сразу сделать нормальный формат вывода даты. (ведь мы тоже не сразу поняли что и как)

Пример:
HLTV-09.11.27_15.20.dem

Уважаемый draft, не могли бы вы подсказать, что нужно для этого поправить в коде?

SHLAKBAUM 11-27-2009 11:02

Re: HLTV Autorecord
 
Quote:

Originally Posted by X49-Malcolm (Post 1000160)
Плагин конечно супер, но было бы удобнее сразу сделать нормальный формат вывода даты. (ведь мы тоже не сразу поняли что и как)

Пример:
HLTV-09.11.27_15.20.dem

Уважаемый draft, не могли бы вы подсказать, что нужно для этого поправить в коде?

:nono: Плагин тут ни при чём, в самом HLTV заложено так выводить дату
p.s. форум потихоньку становиться русскоязычным xD

X49-Malcolm 11-27-2009 12:38

Re: HLTV Autorecord
 
Действительно =( Очень жаль =(

One 11-27-2009 13:00

Re: HLTV Autorecord
 
!"§$)!/$(/$§!="§/$%)!/"§$!$=/=)§/%$="&ääüüöäöüöäöäüpvагин тут ни при чём, в самом HLTV заложенк выводить дату
p.s. форзаложенк выводить дату
p.s. фор поу стамом HLьку становирусскоязычным xD
Spam thread?

Lambor 11-27-2009 22:40

Re: HLTV Autorecord
 
nice plugin :D!!

HUNTERxp 11-28-2009 14:56

Re: HLTV Autorecord
 
Сервер зависает.

Есть игровой сервер (только STEAM) под линухом, к нему цепляется HLTV с другого сервера из под Win2003 (характеристики серверов и точные версии ОСей, смогу привести позже). Подключение HLTV происходит нормально, то есть, его видно в спектаторах.

Если количество игроков меньше, чем в кваре "autohltv_minplayers", то соответственно запись демки не начинается, и сервер вместе с HLTV продолжает работать нормально. Но если количество игроков больше, чем в кваре "autohltv_minplayers", то сервер HLDS вешается

Что было испробовано:
-менял metamod 1.19p и metamod 1.19
-использовал самые свежие .so-шки модуля Sockets

Содержимое Plugins.ini

; AMX Mod X plugins

; Admin Base - Always one has to be activated
;admin.amxx ; admin base (required for any admin-related)
admin_sql.amxx ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management

; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
pluginmenu.amxx ; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
;scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands

; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map

; Configuration
restmenu.amxx ; restrict weapons menu
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands

; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer

; Custom - Add 3rd party plugins here
hltv_autorecord.amxx ; Автоматическая запись демо

Содержимое modules.ini
mysql
;sqlite
;fun
;engine
;fakemeta
;geoip
sockets
;regex
;nvault
;hamsandwich

В чём может быть причина? Куда копать?

For English: I have some trouble with HLDS on Linux, and HLTV on Win2003. When autohltv_minplayers > X, HLDS is crashed...

draft 11-29-2009 14:43

Re: HLTV Autorecord
 
Фикс выложен.
Fixed server crash, that happenes when server is changing map and after that is sending recording to hltv that is already recording.

draft 11-29-2009 15:17

Re: HLTV Autorecord
 
Quote:

Originally Posted by One (Post 994120)
if you like, pm me & we do a php script for this. :D so that the demos can be downloaded from homepage too :P

If you can make a script, that will sort the demos, it would be great job.
You can see, how they look, here:
http://demo.overpro.ru/demos/pub/

rapot 11-29-2009 16:38

Re: HLTV Autorecord
 
1) я так понимаю, что есть ещё некий скрипт, который забирает демку из директории cstrike, архивирует и кладёт в pub, можно его получить ? =)
2) если hltv сервер удалённый, можно как-либо указать ip/port ?
спасибо за плагин, как раз такой ищу.

One 11-29-2009 17:45

Re: HLTV Autorecord
 
Quote:

Originally Posted by draft (Post 1002295)
If you can make a script, that will sort the demos, it would be great job.
You can see, how they look, here:
http://demo.overpro.ru/demos/pub/

my root server is down, ill show you later the page and you can see how i sort the demos.
the bigger first...
the smaller last...
also from big > small

draft 11-29-2009 20:24

Re: HLTV Autorecord
 
Quote:

Originally Posted by rapot (Post 1002354)
1) я так понимаю, что есть ещё некий скрипт, который забирает демку из директории cstrike, архивирует и кладёт в pub, можно его получить ? =)
2) если hltv сервер удалённый, можно как-либо указать ip/port ?
спасибо за плагин, как раз такой ищу.

1) Ну я использую PHP-скрипт, который просто копирует каждую минуту (crontab) готовые демки в веб-серверную папку на одной и той же локальной машине.
2) HLTV будет распознан автоматически, как только приконнектится.
3) Просьба придерживаться английского языка, а то нам скоро выдадут бан :)

2One, It would be great to sort the demos by their date of creation using the date/time in their automatically created by HLTV-engine name.

One 11-30-2009 07:50

Re: HLTV Autorecord
 
my script is on my root server and its down. ill pm you after i got my server on and post the script and a tut how users can change the root folder of apache.

worldspawn 11-30-2009 08:12

Re: HLTV Autorecord
 
О великий русский народ! предлагаю общаться в пм)

One
Waiting the script:crab:

draft 12-01-2009 07:45

Re: HLTV Autorecord
 
Here is another fix against server crash

p.s. Hope, it is the last one

Lambor 12-03-2009 18:45

Re: HLTV Autorecord
 
Why I get this on the server?

[IMG]http://img18.**************/img18/8539/saddd.jpg[/IMG]

draft 12-05-2009 18:08

Re: HLTV Autorecord
 
You have to set up not player password, but adminpassword of your hltv (it is in hltv.cfg).

One 12-05-2009 18:18

Re: HLTV Autorecord
 
2 Attachment(s)
so here the php file :D

Any problems with the Time or Date? see here

Lambor 12-05-2009 22:29

Re: HLTV Autorecord
 
Quote:

Originally Posted by draft (Post 1007870)
You have to set up not player password, but adminpassword of your hltv (it is in hltv.cfg).




I did, using a password and without password, and that I get
:|

draft 12-05-2009 22:30

Re: HLTV Autorecord
 
What im doing wrong?
http://demo.overpro.ru/demos/pub

I mean, we wanted sort of demos by time of creation and i dont understand what is
-d.57.23 e_:in


p.s. 1.3 version is the fix against server crashes. Lets hope, it is really the last one.

One 12-06-2009 00:01

Re: HLTV Autorecord
 
see here :

PHP Code:

$data[$count][jahr]     = substr($file,11,2); 

i recorded my demos with the name : warserver1-

here i have before the date, 11 characters.

you have your demos with the name : HLTV-

so you have 5 characters before the date ( in this case 09 << 2009 )

so the only one thing what you have to do is to change this line to this here :

Code:

$data[$count][jahr]    = substr($file,5,2);
<< i bold the 5 to show you what you have to edit.

im now editing the php code because its on german...
you can download the new code again.

draft 12-06-2009 04:57

Re: HLTV Autorecord
 
Can u explain what is
-d.57.23 e_:in

One 12-06-2009 08:38

Re: HLTV Autorecord
 
he forgot to change

$data[$count][jahr] = substr($file,11,2);

he must add a 5 ass 11


ServO 12-08-2009 15:00

Re: HLTV Autorecord
 
Simple to add, and really effectiv. Good Job!

+Karma!

Edit:

Where will the Demo upload? i mean where will it be saved? (which foulder and etc?)

VybeZ_ 12-11-2009 22:15

Re: HLTV Autorecord
 
good work man :)

draft 12-15-2009 14:02

Re: HLTV Autorecord
 
Major update :)
Fix + 2 impressive php scripts + hud-clock

fedos 02-14-2010 17:34

Re: HLTV Autorecord
 
Привет! У меня проблема( Я подключаю HLTV к серверу, всё работает хорошо, демо начинает записываться, но когда игроки уходят, запись не останавливается, а в консоли появляются ошибки:

Invalid rcon challenge from: xxx.xxx.xxx.xxx
Invalid rcon challenge from: xxx.xxx.xxx.xxx

И демо продолжает записываться, в чем может быть проблема?

Greetings! At me a problem (I connect HLTV to a server, all works well, the demo starts to record but when players leave, record does not stop, and in the console there are errors:

Invalid rcon challenge from: xxx.xxx.xxx.xxx
Invalid rcon challenge from: xxx.xxx.xxx.xxx

And the demo continues to record, in what there can be a problem?


All times are GMT -4. The time now is 10:29.

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