Jump to content
GIGN Forum

Hltv


Recommended Posts

Labi uzrakstīšu vēlreiz ~~ jau kāda cita minēto pirms kāda laika!

Kompresācijas skripts

<?
    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 = 'D:/AppServ/www/recorded_demos/'; // Folder with .dem files
   $dl_dir = 'D:/AppServ/www/compressed_demos/'; // Folder, where to put compressed files
   
    $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);   
       }
?>

Apskatīšanas skripts

<?php
if ($handle = opendir('D:/AppServ/www/compressed_demos/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
$gabali = explode("-", $file);
$date = $gabali[1];
$mape = $gabali[2];
$mapesgabali = explode(".", $mape);
$name = $mapesgabali[0];
$year = substr($date,0,2);
$month = substr($date,2,2);
$day = substr($date,4,2);
$hour = substr($date,6,2);
$minute = substr($date,8,2);
echo "<center>$day.$month.$year             $hour:$minute             $name             <a href=\"http://yourweb.com/compressed_demos/$file\">Download</a></br></center>";
}
}
closedir($handle);
}
?>

<span style='font-size:14pt;line-height:100%'> Lai ierakstitu demo tavaa www folderii mapee demo!!!</span>

<span style='font-size:13pt;line-height:100%'>Atver hltv.cfg un pieraksti:</span>

  • record "../../AppServ/www/demo/demo_nosaukums"
  • connect "hustle.no-ip.info"
Tas laikam bija viss!

Un kur sitie abi skripti ir jaieleik?

Link to comment
Share on other sites

  • Replies 73
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

Kāpēc rāda šo - !Warning! DemoFile::StartRecording: coudn't open demo file C:/AppServ/www/demo/cw-0610262354-de_dust2.dem

============================

Vislaik to rādā! Kāpēc ? Sāvāk nekas neiet! Paskaidrojiet lūdzu :]

Edited by lolzo
Link to comment
Share on other sites

// HLTV Proxy configuration file

// HLTV proxy runs this file on start up
// This file should only be edited if you want to broadcast a game

// set HLTV proxy name as shown in score board
name "HLTV"

// set HLTV name, how it should appear in game server browsers
// hostname         "My HLTV Proxy"

// set offline info text clients will see as reject reason if HLTV isn't broadcasting yet
offlinetext "Sorry, game is delayed. Please try again later."

// delays broadcasting for 30 seconds
delay 30.0

// allow 3.5 KByte/sec as client rate. This is good a value
// for internet broadcasts. On LAN you may set this value to 10000
maxrate 3500

// log HLTV console in proxy.log 
// logfile 1        

// local chatting for HLTV spectators enabled
chatmode 1

// if game server is password protected, enable this line
// serverpassword    "mypassword"

// proxy's adim password for rcon, commentator etc.
// adminpassword    "mypassword"

// show message for 5 seconds each 60 seconds in center of X axis (-1) and
// above help text bar (0.85). Color given as hexadecimal RGBA .
loopcmd 1 60 localmsg "You're watching HLTV. Visit www.valvesoftware.com" 5 -1 0.85 FFA000FF

// hltv.tga will be shown instead of the default HLTV logo in spectator GUI
// bannerfile "hltv.tga"

// these commands will be executed on connecting spectator client and may be used
// to adjust settings for HLTV (for example voice parameters)
signoncommands "voice_scale 2; voice_overdrive 16; volume 0.5; echo Voice adjusted for HLTV"


echo hltv.cfg loaded.

connect "cs-haoss.hopto.org:27015"
name "HLTV"
record "../../../../../AppServ/www/demo/"

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

taa ari konkretu uz atbildi nevarejsu atrast! :)

viss ir izdarits pareizi !

www/demo <- ir izveidota , bet sledazot ieksaa HLTV radas tas - !Warning! DemoFile::StartRecording: coudn't open demo file C:/AppServ/www/demo/kanlcan-0610262354-de_dust.dem.

Tiesi noradiet konkreti ka sjadara! :thumbsup:

Link to comment
Share on other sites

  • 3 months later...

Labi uzrakstīšu vēlreiz ~~ jau kāda cita minēto pirms kāda laika!

Kompresācijas skripts

<?
? ?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 = 'D:/AppServ/www/recorded_demos/'; // Folder with .dem files
? $dl_dir = 'D:/AppServ/www/compressed_demos/'; // Folder, where to put compressed files
? 
? ?$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); ? 
? ? ? }
?>

Apskatīšanas skripts

<?php
if ($handle = opendir('D:/AppServ/www/compressed_demos/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
$gabali = explode("-", $file);
$date = $gabali[1];
$mape = $gabali[2];
$mapesgabali = explode(".", $mape);
$name = $mapesgabali[0];
$year = substr($date,0,2);
$month = substr($date,2,2);
$day = substr($date,4,2);
$hour = substr($date,6,2);
$minute = substr($date,8,2);
echo "<center>$day.$month.$year             $hour:$minute             $name             <a href=\"http://yourweb.com/compressed_demos/$file\">Download</a></br></center>";
}
}
closedir($handle);
}
?>

<span style='font-size:14pt;line-height:100%'> Lai ierakstitu demo tavaa www folderii mapee demo!!!</span>

<span style='font-size:13pt;line-height:100%'>Atver hltv.cfg un pieraksti:</span>

  • record "../../AppServ/www/demo/demo_nosaukums"
  • connect "hustle.no-ip.info"
Tas laikam bija viss!

a kur tie codi jaliek?

Link to comment
Share on other sites

  • 10 months later...
  • 10 months later...

Labi uzrakstīšu vēlreiz ~~ jau kāda cita minēto pirms kāda laika!

Kompresācijas skripts

<?
? ?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 = 'D:/AppServ/www/recorded_demos/'; // Folder with .dem files
? $dl_dir = 'D:/AppServ/www/compressed_demos/'; // Folder, where to put compressed files
? 
? ?$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); ? 
? ? ? }
?>

Apskatīšanas skripts

<?php
if ($handle = opendir('D:/AppServ/www/compressed_demos/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
$gabali = explode("-", $file);
$date = $gabali[1];
$mape = $gabali[2];
$mapesgabali = explode(".", $mape);
$name = $mapesgabali[0];
$year = substr($date,0,2);
$month = substr($date,2,2);
$day = substr($date,4,2);
$hour = substr($date,6,2);
$minute = substr($date,8,2);
echo "<center>$day.$month.$year             $hour:$minute             $name             <a href=\"http://yourweb.com/compressed_demos/$file\">Download</a></br></center>";
}
}
closedir($handle);
}
?>

<span style='font-size:14pt;line-height:100%'> Lai ierakstitu demo tavaa www folderii mapee demo!!!</span>

<span style='font-size:13pt;line-height:100%'>Atver hltv.cfg un pieraksti:</span>

  • record "../../AppServ/www/demo/demo_nosaukums"
  • connect "hustle.no-ip.info"
Tas laikam bija viss!

Kur siet scripti ir jaraksta :D Zinu ka stulbs jautaajums , bet tik un ta ! :D

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...