AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   HLTV And Auto Record And Demos On Website ! (https://forums.alliedmods.net/showthread.php?t=239692)

AMeEeRo 05-02-2014 01:02

HLTV And Auto Record And Demos On Website !
 
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..

Kia 05-02-2014 04:08

Re: HLTV And Auto Record And Demos On Website !
 
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.

Neeeeeeeeeel.- 05-02-2014 10:11

Re: HLTV And Auto Record And Demos On Website !
 
Quote:

Originally Posted by Kia (Post 2132358)
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)

AMeEeRo 05-02-2014 21:52

Re: HLTV And Auto Record And Demos On Website !
 
Quote:

Originally Posted by Neeeeeeeeeel.- (Post 2132487)
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 :)

Neeeeeeeeeel.- 05-02-2014 23:17

Re: HLTV And Auto Record And Demos On Website !
 
Quote:

Originally Posted by AMeEeRo (Post 2132750)
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.

AMeEeRo 05-03-2014 06:22

Re: HLTV And Auto Record And Demos On Website !
 
Quote:

Originally Posted by Neeeeeeeeeel.- (Post 2132769)
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 :(

Phant 05-03-2014 07:00

Re: HLTV And Auto Record And Demos On Website !
 
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).

AMeEeRo 05-03-2014 07:06

Re: HLTV And Auto Record And Demos On Website !
 
Quote:

Originally Posted by Phant (Post 2132886)
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

Neeeeeeeeeel.- 05-03-2014 07:43

Re: HLTV And Auto Record And Demos On Website !
 
Quote:

Originally Posted by AMeEeRo (Post 2132874)
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.

AMeEeRo 05-03-2014 18:40

Re: HLTV And Auto Record And Demos On Website !
 
Quote:

Originally Posted by Neeeeeeeeeel.- (Post 2132900)
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 :(


All times are GMT -4. The time now is 00:52.

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