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

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-25-2012 , 11:10   Re: Script to start HLTV
Reply With Quote #7

Quote:
Originally Posted by 8088 View Post
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.
I haven't found any solution better than a php script, so if you get any free time this would be amazing.
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 03-22-2012 , 17:33   Re: Script to start HLTV
Reply With Quote #8

It's not possible with a bash script?
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-22-2012 , 21:11   Re: Script to start HLTV
Reply With Quote #9

Quote:
Originally Posted by 8088 View Post
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.
You can run the a PHP script exactly as you would a bash script (provided that you have PHP installed on the system, which is easy to do). It's called the Command Line Interface (IIRC). It's basically the same as a web based PHP script but without the GUI output. This being said, you don't get the "administration from a web interface" that you mentioned but this way you have the power and knowledge of PHP at your disposal.
__________________
fysiks is offline
8088
Veteran Member
Join Date: Jan 2008
Old 03-22-2012 , 22:55   Re: Script to start HLTV
Reply With Quote #10

Quote:
Originally Posted by fysiks View Post
You can run the a PHP script exactly as you would a bash script (provided that you have PHP installed on the system, which is easy to do). It's called the Command Line Interface (IIRC). It's basically the same as a web based PHP script but without the GUI output. This being said, you don't get the "administration from a web interface" that you mentioned but this way you have the power and knowledge of PHP at your disposal.
That's exactly what I had in mind. The scheduled script then retrieves the settings (which HLTV should connect to which HLDS on which conditions) from a database, which can be managed from a web interface.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Reply



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 00:25.


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