AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   Script to start HLTV (https://forums.alliedmods.net/showthread.php?t=180899)

ghostofmybrain 03-22-2012 15:14

Script to start HLTV
 
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?

wickedd 03-22-2012 15:31

Re: Script to start HLTV
 
Search

ghostofmybrain 03-22-2012 15:42

Re: Script to start HLTV
 
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?

wickedd 03-22-2012 15:51

Re: Script to start HLTV
 
Quote:

Originally Posted by ghostofmybrain (Post 1673776)
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?

ghostofmybrain 03-22-2012 16:21

Re: Script to start HLTV
 
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.

8088 03-22-2012 17:18

Re: Script to start HLTV
 
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.

ghostofmybrain 03-22-2012 17:33

Re: Script to start HLTV
 
It's not possible with a bash script?

sylar02 03-22-2012 17:38

Re: Script to start HLTV
 
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.

8088 03-22-2012 17:49

Re: Script to start HLTV
 
Quote:

Originally Posted by ghostofmybrain (Post 1673860)
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.

ghostofmybrain 03-22-2012 18:55

Re: Script to start HLTV
 
Quote:

Originally Posted by sylar02 (Post 1673864)
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.


All times are GMT -4. The time now is 04:06.

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