The online racing simulator
Need help with IS_PLC
Can I have an example on this please?


<?php 
$PLC 
= new IS_PLC;
$PLC->UCID($this->connID)->Cars(1+2)->Send($this->serverID);
?>

I figured that would work. but causes LFS to moan about invalid packet size.
-
(T3charmy) DELETED by T3charmy
just tried your code, and it works perfectly fine for me, but then I join track, and PRISM loses connection to server

Edit: take that back, no matter what cars i select, it always includes the FBM
any reason for this?
Quote from T3charmy :just tried your code, and it works perfectly fine for me, but then I join track, and PRISM loses connection to server

Edit: take that back, no matter what cars i select, it always includes the FBM

I get the same. glad its not just me

<?php 
    
const PACK 'CCCxCxxxV';
    const 
UNPACK 'CSize/CType/CReqI/CZero/CUCID/CSp1/CSp2/CSp3/VCars';
?>

PACK and UNPACK are wrong, these are the fixed ones
Quote from Krammeh :

<?php 
    
const PACK 'CCCxCxxxV';
    const 
UNPACK 'CSize/CType/CReqI/CZero/CUCID/CSp1/CSp2/CSp3/VCars';
?>

PACK and UNPACK are wrong, these are the fixed ones

Thanks!! now i can play around with this packet
Thank you for the fix, I'll include it in the next patch.
Anytime, Thought I was just being a douche :P
It was the only packet that I did not check. Sorry all.
Quote from Dygear :It was the only packet that I did not check. Sorry all.

you should have said you gave it to us as a task, to find it :P - I could have actually won something in my life
Quote from Krammeh :you should have said you gave it to us as a task, to find it :P - I could have actually won something in my life

In that case, yeah, that's what I did!
cannot get the BF1 to work in the PLC for some reason.... anybody else having this issue?
Quote from Krammeh :cannot get the BF1 to work in the PLC for some reason.... anybody else having this issue?

Can you post some code?

<?php 

$cars
=array('XFG'=>1'XRG'=>2'XRT'=>4'RB4'=>8'FXO'=>0x10,
                    
'LX4'=>0x20'LX6'=>0x40'MRT'=>0x80'UF1'=>0x100,
                    
'RAC'=>0x200'FZ5'=>0x400'FOX'=>0x800'XFR'=>0x1000,
                    
'UFR'=>0x2000'FO8'=>0x4000'FXR'=>0x8000'XRR'=>0x10000,
                    
'FZR'=>0x20000'FBM'=>0x40000'BF1'=>0x80000);

$PLC = new IS_PLC;
$PLC->UCID($this->connID)->Cars($cars['UF1']+$cars['BF1'])->Send($this->serverID);

?>

Quote from Krammeh :

<?php 

$cars
=array('XFG'=>1'XRG'=>2'XRT'=>4'RB4'=>8'FXO'=>0x10,
                    
'LX4'=>0x20'LX6'=>0x40'MRT'=>0x80'UF1'=>0x100,
                    
'RAC'=>0x200'FZ5'=>0x400'FOX'=>0x800'XFR'=>0x1000,
                    
'UFR'=>0x2000'FO8'=>0x4000'FXR'=>0x8000'XRR'=>0x10000,
                    
'FZR'=>0x20000'FBM'=>0x40000'BF1'=>0x80000);

$PLC = new IS_PLC;
$PLC->UCID($this->connID)->Cars($cars['UF1']+$cars['BF1'])->Send($this->serverID);

?>


I think you use a bitwise OR to combine the cars, so it would be.

$cars['UF1'] | $cars['BF1']

D'oh. BF1 and FBM are the wrong way around in the $cars array.
Just think what it will be like when the VWS comes out!
not to mention the 132423 additional cars once we hit modding with s4!
I think at that point, it's just going to be an enumerable variable.

FGED GREDG RDFGDR GSFDG