Raised This Month: $12 Target: $400
 3% 

Script to start HLTV


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-22-2012 , 15:14   Script to start HLTV
Reply With Quote #1

I have a few pub servers with HLTVs connected. I'd like them to record gameplay, but I also don't want massive files of nothing happening when the server is empty.

I'm trying to make a script that does something like this:
Monitor server. Perhaps check the server every 10 seconds or something, or even every minute.

If player joins server, start HLTV record.

Continue monitoring every minute. (But don't start a new demo every minute when it sees there is a person - there needs to be something that says "If you're already recording a demo, don't start a new one.")

When the server is empty, it stops the demo.

How could I do something like this?
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 03-22-2012 , 15:31   Re: Script to start HLTV
Reply With Quote #2

Search
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-22-2012 , 15:42   Re: Script to start HLTV
Reply With Quote #3

Oh, hi, it's wickedd, the most unhelpful poster in the forums!

Turns out, I did search. All I could find was this ridiculous program at hltv.org, which is not what I want. I just want a simple script, not an amxx plugin, which I also don't want because not all of the servers have amxx installed. (Furthermore, my hltv servers are located on a completely different machine on a completely different LAN, so that plugin wouldn't work even if I did have amxx on all my servers.)

Maybe you could finally put me on your ignore list so you don't feel the need to constantly post complete and utter shit to my threads all the time?
__________________
Boycott ESEA
My servers

Last edited by ghostofmybrain; 03-22-2012 at 16:20.
ghostofmybrain is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 03-22-2012 , 15:51   Re: Script to start HLTV
Reply With Quote #4

Quote:
Originally Posted by ghostofmybrain View Post
Oh, hi, it's wickedd, the most unhelpful poster in the forums!

I just want a simple script, or an amxx plugin, which I also don't want because not all of the servers have amxx installed.
It looks like you don't know what you want. Plus there's a plugin on the forum that starts recording base on the numbers of players. Since you don't want a plugin I will not post the link.

Oh, I will happily ignore your ass from here on, because I hate dumb@#$ people who are too lazy to search and don't know what they want.

Edit: If you don't want a plugin, why would post here smart guy?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 03-22-2012 at 15:55.
wickedd is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-22-2012 , 16:21   Re: Script to start HLTV
Reply With Quote #5

Thanks for pointing out my typo. I DO NOT want an amxx plugin.

I posted here because this is an HLDS server help forum as well as a scripting forum.

Thank god you will finally start ignoring me. You and what's-his-face... makes the forum so much more helpful and enjoyable.
__________________
Boycott ESEA
My servers

Last edited by ghostofmybrain; 03-22-2012 at 16:23.
ghostofmybrain is offline
8088
Veteran Member
Join Date: Jan 2008
Old 03-22-2012 , 17:18   Re: Script to start HLTV
Reply With Quote #6

This can be done with PHP and a cronjob. At the moment I don't have much time, but if you can't find another script or solution I'll try to whip up something by the end of the week/beginning of next week.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-22-2012 , 17:33   Re: Script to start HLTV
Reply With Quote #7

It's not possible with a bash script?
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
sylar02
Member
Join Date: Jun 2011
Old 03-22-2012 , 17:38   Re: Script to start HLTV
Reply With Quote #8

the plugin that wickedd is talking about is pretty neat. it works on sockets so your hltv servers doesnt need to be with on same server where your gs is located. plugin talks to your hltv server. the creator that plugin also created a script to zip them. so every so often all your hltv demos will be saved, thus saving you diskpace. in my server, hltv demo per map was about 50 mb. but zipping it made it to 4-5 mb.
sylar02 is offline
8088
Veteran Member
Join Date: Jan 2008
Old 03-22-2012 , 17:49   Re: Script to start HLTV
Reply With Quote #9

Quote:
Originally Posted by ghostofmybrain View Post
It's not possible with a bash script?
It is, but I can't write it for you :) Still, I think using bash will make it harder to maintain. Considering the fact that you want to query several HLDS servers and control multiple HLTVs, I would prefer to administer it from a webinterface.
__________________
steamID converter with OpenSearch browser plugin

Last edited by 8088; 03-22-2012 at 17:49.
8088 is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-22-2012 , 18:55   Re: Script to start HLTV
Reply With Quote #10

Quote:
Originally Posted by sylar02 View Post
the plugin that wickedd is talking about is pretty neat. it works on sockets so your hltv servers doesnt need to be with on same server where your gs is located. plugin talks to your hltv server. the creator that plugin also created a script to zip them. so every so often all your hltv demos will be saved, thus saving you diskpace. in my server, hltv demo per map was about 50 mb. but zipping it made it to 4-5 mb.
I'm sure it's great, but my servers don't all use amxx. I'm looking for something independent of that.
__________________
Boycott ESEA
My servers
ghostofmybrain 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 05:11.


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