When it will be done, developer?
Maybe it can help:
<?php
class IS_REO extends ISP {
public $Size = 36;
public $Type = ISP_REO;
public $ReqI; // 0 unless this is a reply to an TINY_REO request
public $NumP; // number of players in race
public $PLID = array(); // all PLIDs in new order
protected $up_format = 'CSize/CType/CReqI/CNumP/CP0/CP1/CP2/CP3/CP4/CP5/CP6/CP7/CP8/CP9/CP10/CP11/CP12/CP13/CP14/CP15/CP16/CP17/CP18/CP19/CP20/CP21/CP22/CP23/CP24/CP25/CP26/CP27/CP28/CP29/CP30/CP31';
protected $p_format = 'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC';
public function unpack($data)
{
$up = unpack($this->up_format, $data);
$this->Size = $up['Size'];
$this->ReqI = $up['ReqI'];
$this->NumP = $up['NumP'];
$i = 0;
for($i = 0; $i < 32; ++$i)
{
$this->PLID[$i] = $up['P' . $i];
}
}
public function pack()
{
return pack($this->p_format, $this->Size, $this->Type, $this->ReqI, $this->NumP, $this->PLID[0], $this->PLID[1], $this->PLID[2], $this->PLID[3], $this->PLID[4], $this->PLID[5], $this->PLID[6], $this->PLID[7], $this->PLID[8], $this->PLID[9], $this->PLID[10], $this->PLID[11], $this->PLID[12], $this->PLID[13], $this->PLID[14], $this->PLID[15], $this->PLID[16], $this->PLID[17], $this->PLID[18], $this->PLID[19], $this->PLID[20], $this->PLID[21], $this->PLID[22], $this->PLID[23], $this->PLID[24], $this->PLID[25], $this->PLID[26], $this->PLID[27], $this->PLID[28], $this->PLID[29], $this->PLID[30], $this->PLID[31]);
}
}
?>
It's not finished but only first step to make it working in my PHPLFS edition.
EDIT:
Someone already did it:
http://www.lfsforum.net/showthread.php?p=1485152#post1485152
Maybe attach it to public release.