The online racing simulator
Searching in All forums
(986 results)
filur
S2 licensed
Working fine on xp pro, very impressive so far.
filur
S2 licensed

if (someone is in the area)
{
if (stopspamming == 0)
{
InSim.Send_MST_Message("/msg ^7Hello World!");
stopspamming = 1;
}
}
elseif (noone is in the area)
{
stopspamming = 0;
}

:owl:
filur
S2 licensed
Quote from InSim.txt :struct CompCar // Car info in 28 bytes - there is an array of these in the MCI (below)
{
...
byte Position; // current race position : 0 = unknown, 1 = leader, etc...

:drink:
filur
S2 licensed
Working fine here.


<?php 
php
    $ext 
= new ReflectionExtension('json');
    echo 
phpversion(), ' / '$ext->getName(), '-'$ext->getVersion(), PHP_EOL// 5.2.6 / json-1.2.1
    
    
echo json_encode('Jörg Baumgarth'), PHP_EOL// "J"
    
echo $json json_encode(mb_convert_encoding('Jörg Baumgarth''UTF-8''ISO-8859-1')), PHP_EOL// "J\u00f6rg Baumgarth"
    
echo mb_convert_encoding(json_decode($json), 'ISO-8859-1''UTF-8'), PHP_EOL// Jörg Baumgarth
?>

filur
S2 licensed
Quote from Dygear :So the issue is reusing Button ID's?

No, the issue is asking LFS to send too much data too fast to remote clients.
filur
S2 licensed
Quote from Gai-Luron :how can you send 300 or 7000 buttons

I reuse the id's, overwriting older ones.
filur
S2 licensed
My results, using dedicated server, amount of buttons received per second successfully (any more makes the server drop my connection):

alone on localhost (windows xp), 7000 buttons per second.

alone on very fast remote server (windows server 2003), 300 buttons per second.
filur
S2 licensed
Quote from Scawen :InSim : MCI packets are now sent at regular game update intervals

Could you elaborate a bit on this one ?
filur
S2 licensed
Quote from Shotglass :opera doesnt let you change its default search settings

You sure know alot about Opera.



And you probably want to visit http://google.com/ncr (http://www.google.com/search?q=google+ncr)
Last edited by filur, .
filur
S2 licensed
Quote from Shotglass :why isnt there a browser like ie 6 with open link in new background _window_ on middle mouse click


(Opera)
filur
S2 licensed
:trophy::drink::trophy:
filur
S2 licensed
Great game Canada, see you in Switzerland. :thumbsup3
filur
S2 licensed
So cool!, fantastic work Victor
filur
S2 licensed
Quote from Nadeo4441 :how to fix it?

Quote from InSim.txt :struct IS_MSO // MSg Out - system messages and user messages
...
byte UCID; // connection's unique id (0 = host)

if mso["UCID"] != 0 and msgt == "eTS.NadeoSvK : ^L!test":

Last edited by filur, . Reason : i don't like python
filur
S2 licensed
Quote from Dygear :named variables do not have to follow that order, they can be accepted in any order!

Unfortunately this isn't the case.


<?php 

    
function MsgToConnection($message$ucid=0$plid=0)
    {
        
var_dump($ucid$plid);
    } 
    
    
MsgToConnection('Hello, World!'$plid=12);

    function 
test($var1$var2$var3
    { 
        echo 
$var1$var2$var3PHP_EOL
    } 
     
    
test($var3='baz'$var2='bar'$var1='foo'); 
     
    
var_dump($var='value'); 

?>

Last edited by filur, .
filur
S2 licensed
My father has a 10+ year old CRT that takes ages to warm up, starts out in a dark brownish state and gradually improves over 10-15 minutes.
filur
S2 licensed
Good to see some originality instead of the same old xml, yaml and json.
filur
S2 licensed
Quote from Dygear :a good / fast way of writing packets.

I sense premature optimization. Go for the good way, leave fast for later.
filur
S2 licensed
Quote from detail :because to send a packet, i need only to pack(...) and send, and to receive a packet I need to socket_read, unpack, decode ...

That's not quite what i meant by interfacing.


function sensibleMethod(MSO $msopacket) {
// programmer thinks "i'm interfacing with a packet object that corresponds to the insim spec"
echo $msopacket->UName;

// programmer wants to send a packet
$mypacket = new MST();
// programmer thinks "i'm interfacing with a packet object that corresponds to the insim spec"
$mypacket->Msg = 'Hello, ' . $msopacket->UName;

// programmer wants to send another packet
$myotherpacket = new MTC();
// programmer thinks "i'm interfacing with a packet object that corresponds to the insim spec"
$myotherpacket->UCID = $msopacket->UCID;
// etc ..
}

function confusingMethod(MSO $packet) {
// programmer thinks "i'm interfacing with a packet object that corresponds to the insim spec"
echo $packet->UName;

// programmer wants to send a packet
// programmer thinks "ok so now i'm supposed to interface with send_mst()"
send_mst( ... );

// programmer wants to send another packet
// programmer thinks "ok so now i'm supposed to interface with send_mtc()"

etc..
}

function sensibleProxyPacketDispatch(InSimPacket $packet) {
foreach ($this->clients as $client) {
$packet->sendTo($client);
}
}

function horribleProxyPacketDispatch(InSimPacket $packet) {
if ($packet instanceof MSO) {
send_mso( ... );
}
elseif ($packet instanceof NPL) {
send_npl( ... );
}

... and on and on
}

filur
S2 licensed
Quote from detail :I see a sense to create classes for incoming packets, but why do that for those outgoing?

Why would you want to separate how you interface with incoming packets from how you interface with outgoing packets?
Last edited by filur, .
filur
S2 licensed
Quote from Dygear :is lurLFSd dead?

It's alive and well (stable), not much progress in the last few months tho. Updating should work, server is back up since yesterday after a few days downtime (short circuited PSU :arge.

We'll just have to write wrappers so our plugins can run cross-program.
filur
S2 licensed
Grew tired of waiting, eh?
filur
S2 licensed
Quote from racer hero :I cant register to your forum because I can't read that lagnguage Smile

http://forum.liveforspeed.se/l ... register&lang=english
FGED GREDG RDFGDR GSFDG