Thanks. I apologise, I should have tested a new join-version first. I used the original LFSJoin, maybe it ran out of date or got corrupted when I installed the new FF. Join2LFS works perfect.
Is there a reason you replaced all " " with "%20" on lfsworld.net for IE? As it seams Join2LFS works fine without.
For those interested: urlencode for FF seems to be necessary, else with a host like "ATC Team Public #1" the last space between Public and #1 gets lost.
I am a bit confused at encoding the right LFS join path...
I wanted to use this like in the quote above:
<?php function urlhost($hostname){ if (stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE')){ // IE $hostname = preg_replace ("'\+'", "%252B", $hostname); return $hostname; }else{ // Any other browser $hostname = urlencode ($hostname); return $hostname; } } ?>
But in IE with a host that have a "|" like "T7R|Public 1" in the name, make the game won't start at all.
In Firefox 1.5 the game can't find the right host. A simple hostname like "OLD MEN RACING Public" gets encoded like "OLD+MEN+RACING+Public" which is also what I see in the game's Join Specific Game screen. But it gives a "Host not found on master server" message.
Edit:
As a matter of fact, all join links on LFSWorld give the same "Host not found on master server" message with Firefox. Or is that just me?
I'm having trouble in getting all the allowed cars from the host information (?action=hosts)
When I process the 4 bytes that hold the CARS information I only get the S1 cars (upto the MRT). Is there anyone who did sucseed in getting all the cars out?
Tnx
Haha ok, no I'm not bothered. Tnx. In S1 there seemed to be a lot of effort in avoiding the stats to be used more than they had to. With restricted access time, etc. So I just wanted to be sure.
In our website (mrnl.net) the who-is-online list is visible on all pages so in some cases we would need the LFSstat feed twice. Tempting for a less gifted programmer - like my self - to just call LFSworld when ever we need it and just hamer the feed.
Anyway, I'll go the extra mile and cache as many things a possible.
Maybe a launch control would also solve this problem.
The automatic start could be like 70-80% of a perfect start so that gifted racers can still take an advantage, but less gifted racers wouldn't have to apologize everytime they cause a restart.