The online racing simulator
Searching in All forums
(64 results)
LFSWorld counting bug
paXton
S3 licensed
Hi!

It seems that I discovered a LFS counting bug.
Yesterday LFSWorld shows me, that i should have driven:

2814 km in 153 laps with 533 l fuel burned and 6 finished races.

I known that i only raced FOX@KY2 the whole day, starting around 11am. i finished online racing around 11pm with 2 races at the end, before i only drove qualifying.

So i don't know how to get a distance of 2800km. 153 laps could be right, and 6<>2 finished races might be ok, but not 2800km in 153 laps in 12 hours with many breaks.

I think i had many aborted laps, which perhaps could have counted wrong, but no so many.
153laps * 5,1km(KY2) = 780km maybe 1000km NOT 2800km

Perhaps it only happens on KY2 or only in qualifying and or with aborted laps?

If needed, i could send my replays of the whole day.

To underline my notice, i logged my pst with php from lfsworld every day. The data shown on lfsworld matched with the counted diff in my db between the 2 dates.
id date racer distance fuel laps joined win second third races_finished qual pole drags dragwins modified
261948 2008-10-06 paXton 88048495 2700517 20617 1675 94 173 173 997 233 36 39 15 2008-10-06 23:54:06
265402 2008-10-07 paXton 90862729 2753836 20770 1678 94 173 173 1003 234 36 39 15 2008-10-07 23:54:09
265858 2008-10-08 paXton 90862729 2753836 20770 1678 94 173 173 1003 234 36 39 15 2008-10-08 03:04:04

paXton

PS: Or gave Scavier me a 2000km birthday present?
Last edited by paXton, .
paXton
S3 licensed
Hi!

Does anybody have this running with nvidia forceware drivers on xp and want help me?
I can't get it working with my GeForce 6600GT.

Thx, paXton
paXton
S3 licensed
Yeah, it's great. I use it every week when I'm an admin.
Thx
paXton
S3 licensed
Quote from FireFox86 :Both has the same 'team name'! I think the teamname should be unique so it ignores the 2nd entry. "LFSLA A" or "LFSLA 1" should fix it.

yeah, works now with different names.
Thanks for your quick answer.

paXton
paXton
S3 licensed
Hello Firefox,

perhaps I've discovered another bug.
With this config block, race spectator won't startup correctly. The main window stays empty.

[Teams]
team count=20
Team 1=Alias Racing,Astro [ BJRL ],Franke,Andrew G
Team 2=Team Inferno,dpalonso,commander,bash0r,csurdongulos,bruno7529,edgar,Palee
Team 3=eXcite-Racing,Mr.Sing,Michael Leisterer,cyprien
Team 4=FAC - Finnish Automobile Club,plehto,oxygene,azaazaa,profi
Team 5=Karma Racing,Goucha,Hash_Gordon,Tifozi
Team 6=FPR - Factory Phantom Racing,Mr Soocerer,DonTob,nobo
Team 7=Cheryl's Team Racing,clare b sheppard,ksheppard
Team 8=TPS Racing,paXton,Big.H,T-o-D Zoom,Mr.Iron,M. Oliver
Team 9=MCS720,Drizzt_ZA,YorkHunt
Team 10=LFSLA,locovich,diego fr,becker,nach
Team 11=n1 - NordicOne Racing,J.s.S,jahvetti
Team 12=Fluid Racing,indie,GTR_PT,Max-Biaggi
Team 13=Racing Minds,Carlson74,w1ldport75,commandermas,ThrILL
Team 14=Czech e-Racing Team (CeRT),KID222,Itar (CZ)
Team 15=MCS720,Nucron,BoristheBlade
Team 16=LFSLA,-javif-,ariel_eb,nexxus,germangoose
Team 17=Racing Minds,CRC Snightlo,Ultra15,SRR Marty
Team 18=Karma Racing,PUPILO,_CoNcEpT_
Team 19=n1 - NordicOne Racing,Seme,Primoz
Team 20=Kaaz Gaming,LFSn00b,Dennis93
penalty disconnect=0
penalty pitted=1

I have to note, that I edited the ini with notepad, and not within the gui.

paXton
paXton
S3 licensed
Quote from FireFox86 :Updated
  1. Track view zooming by + & - keys
  2. Fixed Admin/Spectator Password bug.

thanks, spectator password works fine now. 8)

zooming by + & - should work with the keypad keys too.

paXton
paXton
S3 licensed
Quote from FireFox86 :Small preview update. I managed to render the (smx file) track succesfully.
Its not yet available. It takes some time to display the cars and other information nicely.
preview:

very nice.

BTW: I've noticed a bug in version 0.2.
The spectator password doesn't seem to work anymore. It always says: "Error, Wrong Admin Password". Only when I enter the admin password of the server, I can spectate.
The same spectator password works with Race Spectator 0.1.

paXton
paXton
S3 licensed
Hi!

At my machine, the setting is stored here:
[HKEY_LOCAL_MACHINE\SOFTWARE\Logitech\WingMan Software\CurrentVersion\GlobalDeviceSettings\DrivingForcePro]
"OperatingRange"=dword:0000021c

But, you're right, the problem is to say the driver to apply the changes.

paXton
paXton
S3 licensed
Hi!
Quote from filur :Updated CVS with Dygears code for the pubstat changes and released a new .rar, http://prdownloads.sourceforge ... -cvs20061110.rar?download

perhaps, the id_key should be mentioned it the "examples/get_XXX.php".

Keep up the good work.
I like the SDK...

paXton
paXton
S3 licensed
Quote from jscorrea :How to get all information data of the hosts?

Adapted from Anarchi's LFSW-PPF, I use the following code:

<?php 
function getHost($hostname)
{
    
$rawList = array();

    
$file file_get_contents("http://www.lfsworld.net/pubstat/get_stat2.php?version=1.2&user=" LFS_USER "&pass=" md5(LFS_PASS) . "&action=hosts&c=2&ps=" LFSW_PREMIUM_PUBSTAT);
    if (
isLFSWorldError($file)) return 0;
        
    
$rawList = @gzuncompress($file);

    while(
true)
    {

            
//grab the next chunk of host data
            
$blob substr($rawList$offset53);

            
//If it's less than 53 then it can't be valid
            
if(strlen($blob) == 53)
            {
                
//(Re-)Init tmp arrays to parse into
                
$data $racers = array();

                
//Min len is 53. Parse and advance the offset to the end of this chunk
                
$data unpack('a32hostName/c1serverType/c1majorVersion/c1minorVersion/c1testVersion/c1track/c1config/c1reversed/c1maxPlayers/L1cars/L1rules/c1laps/c1qualifyMins/x2/c1players'$blob);
                
$offset+= 53;

                
//Extract the entire player chunk, split it in to smaller chunks of 24, and explode
                
$racers explode('&'chunk_split(substr($rawList$offset$data['players']*24), 24'&'));
                
//This method always adds an empty entry so just pop it off
                
array_pop($racers);

                
//Trim the guff and advance the offset to the next chunk
                
$racers array_map('rtrim'$racers);
                
$offset += $data['players']*24;

                
/*
                //Laps parsing.

                $data['hours'] = 0;

                //Check if laps are literal
                if($data['laps'] > 100)
                {
                    if($data['laps'] < 191)
                    {
                        //Laps are in 10 step increment range (101-191)
                        $data['laps'] = (($data['laps'] - 100) * 10) + 100;
                    }
                    else
                    {
                        //Laps are hours
                        $data['hours'] = $data['laps'] - 190;
                        $data['laps'] = 0;
                    }
                }
                */
                
                //Formatting
                //Compound the 3 integers that make up the track in to 1 var and dump the excess
                
$data['track'] = $data['track'].$data['config'].$data['reversed'];
                unset(
$data['config'], $data['reversed']);

                
//Put the racers in the output
                
$data['playerNames'] = implode('&',$racers);

                
//Version formatting
                
$data['majorVersion'] /= 10;
                
$data['minorVersion'] = chr($data['minorVersion']);

                if(
$data['hostName']==$hostname) return $data;
            }
            else
            {
                break;
            }
        }
        return 
0;
    
    
}
?>

I'm not sure if it's 100% correct, but it's working for me. I'm only a PHP beginner.

Pascal aka paXton
Last edited by paXton, .
paXton
S3 licensed
Quote from yamakawa :I made Promotion movie for LFS. Hope you like them. If so, enjoy.

http://www.k5.dion.ne.jp/~yama-p/LFS-2.wmv
Length: 1:15
Size: 19Mb

YouTube here.
http://www.youtube.com/watch?v=ZaOs29_RnJg

Hi...

Is there somewhere a working download link of the HQ version?

paXton
paXton
S3 licensed
Quote from GeForz :overlay code is taken from the c# example found here: http://nexe.gamedev.net/directKnowledge/

thx, this seems to be helpfull.
Must I look at the the Direct3D hooking or the DirectDraw overlay sample, or need I both technics to display an overlay on the lfs in fullscreen mode?

paXton
paXton
S3 licensed
Hi GeForz!

Quote from GeForz :http://www.kamelstall.de/f1overlay.wmv

Nice work.

Quote from GeForz :Which Source code do you want?
The Overlay's or the one for insim?

The source code, particularly of the overlay, would make me happy, too.
I searched for this many times on google, but never found anything, that could work with lfs.

paXton
paXton
S3 licensed
seen this?

paXton
paXton
S3 licensed
Hi,

nice site!
Quote from Dygear :Speaking of this, I really need to get a ms2time function that does it's job. If there is minutes, then put in minutes, don't be lazy about it and use how many seconds ... any one have a function they are willing to share in PHP?

I don't understand exactly what you mean. It seems to look ok at your site.
Please give an example, if you still need help from another phpbeginner. 8)

paXton
LFSW wrong filename for reversed replays
paXton
S3 licensed
Hi Victor,

when I download a wr-replay of BL1R, for example http://www.lfsworld.net/get_spr.php?file=269&w=1, the file is named "Checkout_BL1_FZR_107830.spr" , but it should be "..._BL1R_FZR...".
The missing "R" seems to occur on all reversed tracks with all cars.

paXton
paXton
S3 licensed
no, not yet
paXton
S3 licensed
I only have this, figured out by myself: (without guarantee)

array('650', '651', '660', '661')
array('AS6', 'AS6R', 'AS7', 'AS7R')
array('Aston Grand Touring', 'Aston Grand Touring reversed', 'Aston North', 'Aston North reversed')

paXton
paXton
S3 licensed
hmmm, now it works here, too.
Victor seems to work on it.

thx, paXton
paXton
S3 licensed
for me, the version=1.2 doesn't change anything.

paXton
paXton
S3 licensed
great, that works. thank you.

paXton
relaymode dont work under wine
paXton
S3 licensed
Hi smith!

As reported before, stats runs fine under linux with wine.
Today I switched from server mode to relaymode, which seems to work fine under windows, too.
But on my linux box I get this error.
LFS stats! v1.34 (c) 2004-2005 Alexander 'smith' Rudakov ([email protected])
WARNING: relay server mode is still experimental and not supposed to be correct!
Connecting [isrelay.liveforspeed.net 47474 30000 pw ]
wine: Unhandled exception (thread 001e), starting debugger...
WineDbg starting on pid 0x1d
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x40120c3a).
In 32 bit mode.

I tried the same exe and stats.xml. On windows it runs, on linux it doesn't work.
I would be happy, if you could take a look at it.

Thx, paXton
paXton
S3 licensed
@all: thx for the quick answers.
I have to think about it, which technique fit my needs, or how acurate the results should be.

@Dygear: sorry, I understood not the meaning of all your posts, but I will complete the list later, too.

btw: is it right, that when a lfs dedi is relayed via the lfs relay server, the insim port cannot be used by another isim app?
paXton
S3 licensed
jepp, now I have seen it.
But there might be some problems when clicking too much on the cam buttons, so that the two-cam modus sometimes doesn't work here.
I try to figure it tomorrow or so, and will report. I don't know if it has to do with the fast zooming in/out bug.

paXton
FGED GREDG RDFGDR GSFDG