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

HLTV And Auto Record And Demos On Website !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 05-02-2014 , 01:02   HLTV And Auto Record And Demos On Website !
Reply With Quote #1

Hello,
I don't know if this is the right place, maybe some will tell me go to hltv forum i didn't find thing by searching there, and here too, and i used to ask for help here and maybe here is the right place for my topic.
Can you tell me, how to download hltv on my cs 1.6 linux server, i have cstrike but no hltv on it and it's last version server updated by server_cmd, so .. after download hltv, i need how to run it and how to auto record and how if i want files to be on site i have site also for my server, sorry please help me i'm sure someone will help me here and very thanks, please let this topic i'm sure others don't know how and found nothing like me..
AMeEeRo is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-02-2014 , 04:08   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #2

You need to setup a HLTV Server and need a script or cronjob which fetches the files from the server and copy them to your website.
__________________
Kia is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-02-2014 , 10:11   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
You need to setup a HLTV Server and need a script or cronjob which fetches the files from the server and copy them to your website.
You can do it with amxx when the demo ends (if you have permissions & the webserver is in the same server)
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 05-02-2014 , 21:52   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #4

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
You can do it with amxx when the demo ends (if you have permissions & the webserver is in the same server)
Website is not in same server , i need the script and the way..
Please help
AMeEeRo is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-02-2014 , 23:17   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #5

Quote:
Originally Posted by AMeEeRo View Post
Website is not in same server , i need the script and the way..
Please help
Then you can upload it with sockets to your website... it's possible but I don't think someone do this for you.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 05-03-2014 , 06:22   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #6

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
Then you can upload it with sockets to your website... it's possible but I don't think someone do this for you.
I don't need to upload and download, there a script maybe this:
PHP Code:
<?php
   
function zipcompressfile($source,$destination,$filename,$level=false)
   {
       
$dest=$destination.$filename.'.zip';
       
$mode='wb'.$level;
       
$error=false;
           echo 
$source.$filename.' -> '.$dest.'<br>';
       if(
$fp_out=gzopen($dest,$mode))
       {
           if(
$fp_in=fopen($source.$filename,'rb'))
           {
               while(!
feof($fp_in))
               {
                   
gzwrite($fp_out,fread($fp_in,1024*512));
               }
               
fclose($fp_in);
           }
           else
           {
               
$error=true;
           }
           
gzclose($fp_out);
       }
       else 
$error=true;
       if(
$error) return false;
       else return 
$dest;
   }

   
$demo_dir 'C:/HLDS/cstrike/'
   
$dl_dir 'C:/AppServ/www/hltv_demos/';

   
$handle opendir($demo_dir);
   if (
$handle)
   {
       while (
false !== ($fails readdir($handle)))
       {
           if ( 
preg_match("/(.*).dem/"$fails$demo) )
           {
               
zipcompressfile($demo_dir$dl_dir$fails);
           }
       }
       
closedir($handle);
   }
?>
So with this i can make them in site without upload them, but why they wont help me
AMeEeRo is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 05-03-2014 , 07:00   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #7

When demo recording, then we have *.dem file, which growing (write data). You can't archive not finished (recording) demo file and upload it on server.
First of all you need to check, if this file "closed" and finished, and not opened via HLTV. After this you should compress it and upload.

Or, as stated above, record demo via AMXX and execute "compress and upload" action via AMXX, after demo file completed (recorded).

Last edited by Phant; 05-03-2014 at 07:02.
Phant is offline
Send a message via ICQ to Phant
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 05-03-2014 , 07:06   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #8

Quote:
Originally Posted by Phant View Post
When demo recording, then we have *.dem file, which growing (write data). You can't archive not finished (recording) demo file and upload it on server.
First of all you need to check, if this file "closed" and finished, and not opened via HLTV. After this you should compress it and upload.

Or, as stated above, record demo via AMXX and execute "compress and upload" action via AMXX, after demo file completed (recorded).
I don't know anything i'm waiting your help, file for a map should be good
Then download link on my site like: forums.alliedmods.net/hltv
please help me who know somehow
AMeEeRo is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-03-2014 , 07:43   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #9

Quote:
Originally Posted by AMeEeRo View Post
I don't need to upload and download, there a script maybe this:
So with this i can make them in site without upload them, but why they wont help me
That script will only work if the gameserver & webserver are in the same server. You have already said that they are in different servers.

When I told you about upload & download, I was talking about an automatical upload from a plugin in your gameserver to the webserver.

I think there is no other way.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 05-03-2014 , 18:40   Re: HLTV And Auto Record And Demos On Website !
Reply With Quote #10

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
That script will only work if the gameserver & webserver are in the same server. You have already said that they are in different servers.

When I told you about upload & download, I was talking about an automatical upload from a plugin in your gameserver to the webserver.

I think there is no other way.
I understand you, there is sure..
How ?
the dem files on my server ok they will be on cstrike ?
so like will be like ip/cstrike/neeeeeeeeeeel.dem , right ?
With somehow i want this link to be on site with name site like alliedmods.net/hltv i mean everything auto, it's possible but no one will help
AMeEeRo 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 06:42.


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