The online racing simulator
Searching in All forums
(75 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
TPS-Racing - #33 (FXR)

H. Thelen - Big.H - GER
P. Dreisbach - paXton - GER

paXton
paXton
S3 licensed
Yeah, it's great. I use it every week when I'm an admin.
Thx
paXton
S3 licensed
Hi!

Yesterday i started hacking a new tool.
With this i got the following results out of the replay without warranty:

1. Team 74: 116 laps ( 2 pitstops ) 3:00:34.69
2. Team 3: 116 laps ( 3 pitstops ) +00:05.32 (3:00:40.01)
3. Team 8: 116 laps ( 4 pitstops ) +01:03.98 (3:01:38.67)
4. Team 58: 115 laps ( 2 pitstops ) +1 lap (3:02:08.05)
5. Team 7: 114 laps ( 3 pitstops ) +2 laps (3:02:02.41)
6. Team 33: 113 laps ( 4 pitstops ) +3 laps (3:01:10.20)
7. Team 918: 112 laps ( 4 pitstops ) +4 laps (3:00:53.66)
8. Team 59: 106 laps ( 2 pitstops ) +10 laps (3:02:04.92)
9. Team 75: 104 laps ( 3 pitstops ) +12 laps (3:01:50.42)
10. Team 46: 104 laps ( 7 pitstops ) +12 laps (3:02:17.12)
11. Team 69: 101 laps ( 6 pitstops ) +15 laps (3:01:58.73)
12. Team 12: 94 laps ( 5 pitstops ) +22 laps (3:00:44.03)
13. Team 2: 32 laps ( 1 pitstops ) +84 laps DNF
14. Team 45: 23 laps ( 0 pitstops ) +93 laps DNF

paXton
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
#33 TPS Racing driver announcement changed. One of our drivers canceled.

paXton
paXton
S3 licensed
Quote from CRC Snightlo :#08 Racing Minds GT2

BTW: Isn't #8 taken by Finnish Automobile Club?

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
Let's rock round 2
paXton
S3 licensed
TPS-Racing #33 (FXR)

H.Thelen (Big.H) GER
P.Dreisbach (paXton) GER

paXton
Last edited by paXton, . Reason : 3rd driver canceled
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
updated post #12 with our lineup.

paXton
paXton
S3 licensed
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
TPS-Racing will take #33 (FXR).

Our lineup for round 1:
M.Hoffmann (lfsw: "T-o-D Zoom")
H.Thelen (lfsw: "Big.H")
P.Dreisbach (lfsw: "paXton")

paXton
Last edited by paXton, . Reason : lineup
paXton
S3 licensed
TPS Racing will be ready.

When is the deadline for announcing drivers?

paXton
paXton
S3 licensed
Are the qual sessions all on the race weekend, like mentioned in the rules, or is 1st session 1 week before the race, like in the season 3 post?

paXton
paXton
S3 licensed
Hi Scoop,

please add our LFS GT Team too.


TPS Racing (aka Total Power Sliders)
nat: German
car: FXR

Drivers:
H. Thelen
M. Hoffmann
O. Müller
R. Merklein
P. Dreisbach


paXton
Last edited by 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
FGED GREDG RDFGDR GSFDG