User
Pass
2FA
 
 

dproto 0.9.87 [Protocol 47+48 STEAM - NONSTEAM]
Go to page Previous  1, 2, 3 ... 17, 18, 19 ... 21, 22, 23  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Tutorials
Author Message533276
Donche

[Mentally Stable]



Status: Offline
(since 24-10-2010 23:05)
Joined: 22 Aug 2010
Posts: 47, Topics: 8
Location: Albania

Reputation: 68.2
Votes: 2

Post Posted: 12-09-2010, 12:37:17 | Translate post to: ... (Click for more languages)

aHa this tutorial is for Non-Steam Protocol 47 :

http://forum.wow-freakz.com/Instalare-server-CS-1.6-Non-Steam-protocol-48-nou-Linux-t19658.html

Okey i use thats Tutorials for Installed again my server
if i done i try to install dproto with Protocol +48 -

0 0
  
Back to top
View user's profile Send private message
Donche

[Mentally Stable]



Status: Offline
(since 24-10-2010 23:05)
Joined: 22 Aug 2010
Posts: 47, Topics: 8
Location: Albania

Reputation: 68.2
Votes: 2

Post Posted: 14-09-2010, 00:31:12 | Translate post to: ... (Click for more languages)

Man i use above your tutorial for installed server :S
But
when i done i start my server but my server in starting console showed only in Protocol 48 -
I Like my installed in Protocol 47 and next use dproto for 48
with 2 Protocol i think man :S

I Like to install in my server with 2 Protocols 47 + 48

Can you help me :S ?
What do you think ?

First which Tutorials i need to use :S help me plzz -

0 0
  
Back to top
View user's profile Send private message
tiliean

[Mentally Stable]



Status: Offline
(since 02-10-2010 14:02)
Joined: 15 Sep 2010
Posts: 2, Topics: None
Location: Portugal

Reputation: 47.1
Votes: 2

Post Posted: 15-09-2010, 16:37:09 | Translate post to: ... (Click for more languages)

AJUTOR SUNT NOU PE AICI AM FACUT EXACT CUM ERA ACOLO PT WINDOWS SI NUMI MERGE VREAU SI EU NEAPARAT !!

dproto fail load dproto.dll v0.8.68 ini Start Never


ASTA ZICE CONTACT id : tare_emy_emy ! VA ROG MULT !! ESTE PRIMA SI uLTIMA OARA CAND APELEZ LA VOI !!!

0 0
  
Back to top
View user's profile Send private message
Faster Guy

[Mentally Stable]



Status: Offline
(since 15-06-2011 09:29)
Joined: 12 Dec 2009
Posts: 143, Topics: 39
Location: Romania

Reputation: 196.4
Votes: 5

Post Posted: 15-09-2010, 22:36:54 | Translate post to: ... (Click for more languages)

tiliean wrote:
AJUTOR SUNT NOU PE AICI AM FACUT EXACT CUM ERA ACOLO PT WINDOWS SI NUMI MERGE VREAU SI EU NEAPARAT !!

dproto fail load dproto.dll v0.8.68 ini Start Never


ASTA ZICE CONTACT id : tare_emy_emy ! VA ROG MULT !! ESTE PRIMA SI uLTIMA OARA CAND APELEZ LA VOI !!!

Poate ai uitat sa faci update la server,imposibil sa nu mearga dk ai facut update




0 0
  
Back to top
View user's profile Send private message
Donche

[Mentally Stable]



Status: Offline
(since 24-10-2010 23:05)
Joined: 22 Aug 2010
Posts: 47, Topics: 8
Location: Albania

Reputation: 68.2
Votes: 2

Post Posted: 16-09-2010, 02:40:12 | Translate post to: ... (Click for more languages)

Shocker
I Installed Server with your Tutorial !
But this totorial its Only Protocol 48
Now what i need to want for make with Protocol 47
Or with Double Protocol 47+48 ?

Any Patch-s or something ?

0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 16-09-2010, 05:04:45 | Translate post to: ... (Click for more languages)

............... dproto.

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Rirre

[Mentally Stable]



Status: Offline
(since 23-11-2010 02:13)
Joined: 17 Sep 2010
Posts: 1, Topics: None
Location: Sweden

Reputation: 51
Votes: 2

Post Posted: 17-09-2010, 12:22:13 | Translate post to: ... (Click for more languages)

It do not work to send commands thru PHPrcon if the game server is running dproto, it just output the game servers protocol as response.
Querying to the game server works fine, just about to send rcon commands is the problem.
Without dproto it works fine.
Can you fix this one to work together with dproto?

Code:
<?php

// ************************************************************************
//PHPrcon - PHP script collection to remotely administrate and configure Halflife and HalflifeMod Servers through a webinterface
//Copyright (C) 2002  Henrik Beige
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
//License as published by the Free Software Foundation; either
//version 2.1 of the License, or (at your option) any later version.
//
//This library is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//Lesser General Public License for more details.
//
//You should have received a copy of the GNU Lesser General Public
//License along with this library; if not, write to the Free Software
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
// ************************************************************************

/* Fixed bug by [gm-project.net] #Staff */

class Rcon
{

  var $challenge_number;
  var $connected;
  var $server_ip;
  var $server_password;
  var $server_port;
  var $socket;


  //Constructor
  function Rcon()
  {
    $this->challenge_number = 0;
    $this->connected = true;
    $this->server_password = "";
    $this->server_password = "";
    $this->server_password = "";
  }


  //Open socket to gameserver
  function Connect($server_ip, $server_port, $server_password = "")
  {
    //store server data
    $this->server_ip = gethostbyname($server_ip);
    $this->server_port = $server_port;
    $this->server_password = $server_password;

    //open connection to gameserver
    $fp = fsockopen("udp://" . $this->server_ip, $this->server_port, $errno, $errstr, 2);
    stream_set_timeout($fp, 2);

    if($fp)
      $this->connected = true;
    else
    {
      $this->connected = false;
      return false;
    }

    //store socket
    $this->socket = $fp;

    //return success
    return true;

  } //function Connect($server_ip, $server_port, $server_password = "")


  //Close socket to gameserver
  function Disconnect()
  {
    //close socket
    fclose($this->socket);
    $connected = false;

  } //function Disconnect()


  //Is there an open connection
  function IsConnected()
  {
    return $this->connected;
  } //function IsConnected()


  //Get detailed player info via rcon
  function ServerInfo()
  {
    //If there is no open connection return false
    if(!$this->connected)
      return $this->connected;

    //get server information
    $status = $this->RconCommand("status");

    //If there is no open connection return false
    //If there is bad rcon password return "Bad rcon_password."
    if(!$status || trim($status) == "Bad rcon_password.")
      return $status;

   //format global server info
    $line = explode("\n", $status);
    $map = substr($line[3], strpos($line[3], ":") + 1);
    $players = trim(substr($line[4], strpos($line[4], ":") + 1));
    $active = explode(" ", $players);

    $result["ip"] = trim(substr($line[2], strpos($line[2], ":") + 1));
    $result["name"] = trim(substr($line[0], strpos($line[0], ":") + 1));
    $result["map"] = trim(substr($map, 0, strpos($map, "at:")));
    $result["mod"] = "Counterstrike " . trim(substr($line[1], strpos($line[1], ":") + 1));
    $result["game"] = "Halflife";
    $result["activeplayers"] = $active[0];
    $result["maxplayers"] = substr($active[2], 1);

    //format player info
    for($i = 1; $i <= $result["activeplayers"]; $i++)
    {
      //get possible player line
      $tmp = $line[$i + 6];

      //break if no more players are left
      if(substr_count($tmp, "#") <= 0)
        break;

      //name
      $begin = strpos($tmp, "\"") + 1;
      $end = strrpos($tmp, "\"");
      $result[$i]["name"] = substr($tmp, $begin, $end - $begin);
      $tmp = trim(substr($tmp, $end + 1));

      //ID
      $end = strpos($tmp, " ");
      $result[$i]["id"] = substr($tmp, 0, $end);
      $tmp = trim(substr($tmp, $end));

      //WonID
      $end = strpos($tmp, " ");
      $result[$i]["wonid"] = substr($tmp, 0, $end);
      $tmp = trim(substr($tmp, $end));

      //Frag
      $end = strpos($tmp, " ");
      $result[$i]["frag"] = substr($tmp, 0, $end);
      $tmp = trim(substr($tmp, $end));

      //Time
      $end = strpos($tmp, " ");
      $result[$i]["time"] = substr($tmp, 0, $end);
      $tmp = trim(substr($tmp, $end));

      //Ping
      $end = strpos($tmp, " ");
      $result[$i]["ping"] = substr($tmp, 0, $end);
      $tmp = trim(substr($tmp, $end));

      //Loss
      $tmp = trim(substr($tmp, $end));

      //Adress
      $result[$i]["adress"] = $tmp;

    } //for($i = 1; $i < $result["activeplayers"]; $i++)

    //return formatted result
    return $result;

  } //function ServerInfo()


  //Get all maps in all directories
  function ServerMaps($pagenumber = 0)
  {
    //If there is no open connection return false
    if(!$this->connected)
      return $this->connected;

    //Get list of maps
    $maps = $this->RconCommand("maps *", $pagenumber);

    //If there is no open connection return false
    //If there is bad rcon password return "Bad rcon_password."
    if(!$maps || trim($maps) == "Bad rcon_password.")
      return $maps;

    //Split Maplist in rows
    $line = explode("\n", $maps);
    $count = sizeof($line) - 4;

    //format maps
    for($i = 0; $i <= $count; $i++)
    {
      $text = $line[$i];

      //at directory output sorted map list
      if(strstr($text, "Dir:"))
      {
        //reset counter
        $mapcount = 0;

        //parse directory name
        $directory = strstr($text, " ");

      } //if(strstr($text, "Dir:"))

      else if(strstr($text, "(fs)"))
      {
        //parse mappath
        $mappath = strstr($text, " ");

        //parse mapname
        //if no "/" is included in the "maps * " result
        if(!($tmpmap = strrchr($mappath, "/")))
          $tmpmap = $mappath;

        //parse mapname without suffix (.bsp)
        $result[$directory][$i] = substr($tmpmap, 1, strpos($tmpmap, ".") - 1);

      } //else if(strstr($text, "(fs)"))

    } //for($i = 1; $i <= $count; $i++)


    //return formatted result
    return $result;

  } //function ServerMaps()


  //Get server info via info protocoll
  function Info()
  {
    //If there is no open connection return false
    if(!$this->connected)
      return $this->connected;

    //send info command
    $command = "\xff\xff\xff\xffTSource Engine Query\0\x00";
    $buffer = $this->Communicate($command);

    //If no connection is open
    if(trim($buffer) == "")
    {
      $this->connected = false;
      return false;
    }

    //build info array
    $buffer = explode("\x00", $buffer);

    $result["ip"] = substr($buffer[0], 5);
    $result["name"] = $buffer[1];
    $result["map"] = $buffer[2];
    $result["mod"] = $buffer[3];
    $result["game"] = $buffer[4];
    $result["activeplayers"] = (strlen($buffer[5]) > 1)?ord($buffer[5][0]):"0";
    $result["maxplayers"] = (strlen($buffer[5]) > 1)?ord($buffer[5][1]):"0";

    //return formatted result
    return $result;

  } //function Info()


  //Get players via info protocoll
  function Players()
  {
    //If there is no open connection return false
    if(!$this->connected)
      return $this->connected;

    //send players command
    $command = "\xff\xff\xff\xff55\xff\xff\xff\xff\x00";
    $buffer = $this->Communicate($command);

    //If no connection is open
    if(trim($buffer) == "")
    {
      $this->connected = false;
      return false;
    }
 
   $playercount=ord($buffer[0]);

   $players=array();
   
   $str = substr($buffer, 1);
   for ($i=0;$i<$playercount;$i++)
   {
      $tmp = strpos($str, 0, 1);
      $players[$i]['name'] = substr($str, 1, $tmp - 1);
      
      
      $players[$i]["frag"] = ord($str[$tmp + 1]) +
                           (ord($str[$tmp + 2]) << 8) +
                           (ord($str[$tmp + 3]) << 16) +
                           (ord($str[$tmp + 4]) << 24);

      //online time
      $tmptime = @unpack('ftime', substr($str, $tmp + 5, 4));
      $players[$i]["time"] = date('i:s', round($tmptime['time'], 0) + 82800);
      $str = substr($str, $tmp + 9);
      
   }
   return $players;


  } //function Players()


  //Get server rules via info protocoll
  function ServerRules()
  {
    //If there is no open connection return false
    if(!$this->connected)
      return $this->connected;

    //build info command
    $command = "\xff\xff\xff\xffE\x00";
    $buffer = $this->Communicate($command);

    //If no connection is open
    if(trim($buffer) == "")
    {
      $this->connected = false;
      return false;
    }

    //seperate rules
    $buffer = substr($buffer, 2);
    $buffer = explode("\x00", $buffer);
    $buffer_count = floor(sizeof($buffer) / 2);

    //build rules array
    for($i = 0; $i < $buffer_count; $i++)
    {
      $result[$buffer[2 * $i]] = $buffer[2 * $i + 1];
    }

    //sort rules
    ksort($result);

    //return formatted result
    return $result;

  } //function ServerRules()


  //Execute rcon command on open socket $fp
  function RconCommand($command, $pagenumber = 0, $single = true)
  {
    //If there is no open connection return false
    if(!$this->connected)
      return $this->connected;

    //get challenge number
    if($this->challenge_number == "")
    {
      //send request of challenge number
      $challenge = "\xff\xff\xff\xffchallenge rcon\n";
      $buffer = $this->Communicate($challenge);

      //If no connection is open
      if(trim($buffer) == "")
      {
        $this->connected = false;
        return false;
      }

      //get challenge number
      $buffer = explode(" ", $buffer);
      $this->challenge_number = trim($buffer[2]);
    }
   
    //build command
    $command = "\xff\xff\xff\xffrcon $this->challenge_number \"$this->server_password\" $command\n";

    //get specified page
    $result = "";
    $buffer = "";
    while($pagenumber >= 0)
    {
      //send rcon command
      $buffer .= $this->Communicate($command);

      //get only one package
      if($single == true)
        $result = $buffer;

      //get more then one package and put them together
      else
        $result .= $buffer;

      //clear command for higher iterations
      $command = "";

      $pagenumber--;

    } //while($pagenumber >= 0)

    //return unformatted result
    return trim($result);

  } //function RconCommand ($command)


  //Communication between PHPrcon and the Gameserver
  function Communicate($command)
  {
    //If there is no open connection return false
    if(!$this->connected)
      return $this->connected;


    //write command on socket
    if($command != "")
      fputs($this->socket, $command, strlen($command));

    //get results from server
    $buffer = fread ($this->socket, 1);
    $status = socket_get_status($this->socket);

    // echo $this->socket.": ".$status["unread_bytes"] . "<br>";
    // print_r($status);
    // Sander's fix:
    if ($status["unread_bytes"] > 0) {
       $buffer .= fread($this->socket, $status["unread_bytes"]);
    }


    //If there is another package waiting
    if(substr($buffer, 0, 4) == "\xfe\xff\xff\xff")
    {
      //get results from server
      $buffer2 = fread ($this->socket, 1);
      $status = socket_get_status($this->socket);
      $buffer2 .= fread($this->socket, $status["unread_bytes"]);

      //If the second one came first
      if(strlen($buffer) > strlen($buffer2))
        $buffer = substr($buffer, 14) . substr($buffer2, 9);
      else
        $buffer = substr($buffer2, 14) . substr($buffer, 9);

    }

    //In case there is only one package
    else
      $buffer = substr($buffer, 5);


    //return unformatted result
    return $buffer;

  } //function Communicate($buffer)

}

?>

0 0
  
Back to top
View user's profile Send private message
Spectre

[plecat, numai revin!]



Status: Offline
(since 10-12-2011 22:54)
Joined: 09 Sep 2010
Posts: 347, Topics: 31
Location: away.

Reputation: 45.4
Votes: 16

Post Posted: 18-09-2010, 08:56:48 | Translate post to: ... (Click for more languages)

super .. imi merge

plecat, numai revin pe aci!
0 0
  
Back to top
View user's profile Send private message
Crewtoxic

[Mentally Stable]



Status: Offline
(since 20-09-2010 22:05)
Joined: 20 Sep 2010
Posts: 2, Topics: None
Location: France

Reputation: 46.1
Votes: 2

Post Posted: 20-09-2010, 10:22:15 | Translate post to: ... (Click for more languages)

Quote:
. / Hlds_run: ligne 321: 29965 Erreur de segmentation HL_CMD $


French : Comment faire pour réssourdre le probl&egrave;me. Car notre serveur fait que planter. merci.

Anglais : How ressourdre/Inoperative problem. Because our waiter makes that to plant. thank you.

0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 20-09-2010, 21:55:24 | Translate post to: ... (Click for more languages)

What's your main language Crewtoxic, I don't understand the issue. When are you getting that error?

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Crewtoxic

[Mentally Stable]



Status: Offline
(since 20-09-2010 22:05)
Joined: 20 Sep 2010
Posts: 2, Topics: None
Location: France

Reputation: 46.1
Votes: 2

Post Posted: 21-09-2010, 00:05:16 | Translate post to: ... (Click for more languages)

Sorry


J 'ai having opened a no-steam waiter, and for some day my waiter plants without stopping .
How message d 'erreur j 'ai her:


Quote:

. / Hlds_run: ligne 321: 29965 Erreur de segmentation HL_CMD $

0 0
  
Back to top
View user's profile Send private message
Edy24

[Beat Mort :)]



Status: Offline
(since 03-04-2017 22:42)
Joined: 08 Nov 2008
Posts: 19, Topics: 6
Location: Rimnicu Valcea

Reputation: 201.4
Votes: 4

 
Post Posted: 21-09-2010, 22:06:23 | Translate post to: ... (Click for more languages)

da shocker a aparut un nou exploit dar asta este din dproto cei care nu folosesc dproto nu vor fi afectati

da eroarea acesta

Code:

say "77.220.186.39:27015 - Protected from crashes such as this! :DAAAAAAAAAA "
./hlds_run: line 321: 29965 Segmentation fault      $HL_CMD


din cate am vazut este o problema la autobuy sau ceva de genul acesta

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Donche

[Mentally Stable]



Status: Offline
(since 24-10-2010 23:05)
Joined: 22 Aug 2010
Posts: 47, Topics: 8
Location: Albania

Reputation: 68.2
Votes: 2

Post Posted: 22-09-2010, 00:44:14 | Translate post to: ... (Click for more languages)

Shocker
First i have Server in Protocol 47
Can i install dproto in Protocol 47 for DOuble Protocol ?

And this dproto for which version HLDS recomented ?

0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 22-09-2010, 19:41:53 | Translate post to: ... (Click for more languages)

You need the latest HLDS engines Donche, I already told you that.

Edy24 wrote:
da shocker a aparut un nou exploit dar asta este din dproto cei care nu folosesc dproto nu vor fi afectati

da eroarea acesta

Code:

say "77.220.186.39:27015 - Protected from crashes such as this! :DAAAAAAAAAA "
./hlds_run: line 321: 29965 Segmentation fault      $HL_CMD


din cate am vazut este o problema la autobuy sau ceva de genul acesta

New exploit fix http://download.freakz.ro/dproto_0_8_72.rar (fisierul a fost sters)


FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Mk|s Akula

[Mentally Stable]



Status: Offline
(since 02-10-2010 07:36)
Joined: 22 Sep 2010
Posts: 3, Topics: None
Location: Romania

Reputation: 47.1
Votes: 2

Post Posted: 22-09-2010, 21:32:11 | Translate post to: ... (Click for more languages)

Salut Shocker, am si eu o mica problema cu srv-ul , de cateva zile parca a inebunit , ma termina eroarea :
Code:

./hlds_run: line 321: 12197 Segmentation fault      $HL_CMD


Acum 30 de minute am reinstalat srv de cs , am instalat dproto ultima versiune , din link-ul tau de mai sus ,
Code:

               description      stat pend  file              vers      src   load  unlod
          [ 1] dproto           RUN   -    dproto_i386.so    v0.8.73   ini   Start Never


si tot primesc acel mesaj .
Code:

./hlds_run: line 321: 12197 Segmentation fault      $HL_CMD

Tin sa precizez ca intampin aceasta eroare de maxim 5 zile , nu am adaugat nici un plugin nou , nu am facut nici o modificare in server , pana acum 5 zile aveam uptime atat cat era dedicatul pornit . Presupun ca este un nou exploit , care imi mananca zilele , pentru ca ma lupt sa "ridic" srv.-ul sa il populez si "pica" exact cand iti este lumea mai draga . Profit de ocazie , hlshiled lucreaza ok cu dproto sau ? Ca ma gandesc sa il pornesc si pe el poate poate mai da vreun deny ceva .

Multumesc.

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Tutorials  
Go to page Previous  1, 2, 3 ... 17, 18, 19 ... 21, 22, 23  Next    


The time now is 28-04-2024, 13:44:37
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x