The online racing simulator
Searching in All forums
(119 results)
jscorrea
S2 licensed
strange no space...is the forum.
http://www.lfsworld.net/pubstat/get_stat2.php?version=1.3&idk=<MY ID KEY>&action=pst&racer=jscorrea

dont work....quota Exceeded???

This the message:

Identification is required - http://www.lfsforum.net/showthread.php?t=14480
Last edited by jscorrea, .
jscorrea
S2 licensed
Victor,

This script dont work anymore:

http://www.lfsworld.net/pubstat/get_stat2.php?version=1.3&idk=<MY ID KEY>&action=pst&racer=jscorrea

Any problem in pubstats or problem in my idkey?

Regards,

JS
jscorrea
S2 licensed
More help please...

SPR file have added mass and intake restriction.

Only in X2 this works?

Regards,
JS
jscorrea
S2 licensed
Thanks

you save my life

JS
MPR ballast info possible?
jscorrea
S2 licensed
Hello all !

Is possible to get ballast info in MPR file?

Regards
JS
jscorrea
S2 licensed
its a gift!

Nice
jscorrea
S2 licensed
Nice!

Coments below...

typedef struct {
char LFSMPR[6]; // 0 : do not read file if no match
byte game_version; // 6 : ignore
byte game_revision; // 7 : ignore
byte MPR_version; // 8 : ignore
byte immediate_start; // 9 : joined already running game
byte reserved1; // 10 : -
byte reserved2; // 11 : -
int rules; // 12 : -
int flags; // 16 : -
byte laps_byte; // 20 : laps / hours (see notes)
byte skill; // 21 : skill level (0,1,2,3,4)
byte wind; // 22 : 0=off 1=weak 2=strong
byte num_players; // 23 : players at start of race
char LFS_version[8]; // 24 : text, ends 0
char short_track_name[4]; // 32 : e.g. BL2R
int start_time; // 36 : seconds since 00:00 1/1/1970
char track_name[32]; // 40 : text, ends 0
byte config; // 72 : 1,2,3.. (first config is 1)
byte reversed; // 73 : 0=no 1=yes
byte weather; // 74 : 0,1,2.. (first weather is 0)
byte num_finished; // 75 : players in results table
int zero; // 76 : -
} __attribute__ ((packed)) MPR_HEADER;

No news for me its OK

typedef struct {
char player_name[24]; // 0 : text, ends 0, no colours
char number_plate[8]; // 24 : text, NOTE : NO ZERO AT END
char short_car_name[4]; // 32 : text, ends 0
byte zero1[24]; // 36 : -
word laps_done; // 60 : total laps completed
word player_flags; // 62 : driver settings (see NOTES)
byte confirm_flags; // 64 : penalties (see NOTES)
byte number_of_stops; // 65 : pit stops count
word penalty_seconds; // 66 : penalty time added
int overall_time; // 68 : milliseconds
int best_lap_time; // 72 : milliseconds
int zero2; // 76 : -
} __attribute__ ((packed)) RESULT_INFO;

No news again

This is a problem above, how to convert this to PHP... ?

typedef struct {
word username_info_ident; //always 0x73C
byte unknown[3];
char player_name[24];
char number_plate[8];
char lfs_username[24];///this is my dream LOL
} __attribute__ ((packed)) LFS_USERNAME_INFO;

HELP
JS
Last edited by jscorrea, .
LFS username in MPR
jscorrea
S2 licensed
Victor,

Is possible to add LFS username in MPR and SPR file in the future?

Is better to link the results table to LFSWORD for example.

Regards,
JS
jscorrea
S2 licensed
Bingo..!

Thanks!!

JS
jscorrea
S2 licensed
Ok,

Here the result in miliseconds is:

975765760

The right time em minutes is:

1:16.09

But 975765760ms != 1:16.09

Im lost..

Part of my code:


<?php 
 
function data($file)

    {

        
$areas = array("Blackwood" => "BL""South City" => "SO""Fern Bay" => "FE""Autocross" => "AU""Aston" => "AS""Kyoto Ring" => "KY""Westhill" => "WE");

        
$rp fopen($file"rb");

        if(
fread($rp6) == "LFSMPR")

        {

            
fread($rp14);

            
$r["laps"] = hexdec(bin2hex(fread($rp1)));

            
$r["skill"] = hexdec(bin2hex(fread($rp1)));

            
$r["wind"] = hexdec(bin2hex(fread($rp1)));

            
$r["started"] = hexdec(bin2hex(fread($rp1)));

            
$r["version"] = trim(fread($rp8));

            
$r["track"] = trim(fread($rp4));
                                
            
$r["stime"] = hexdec(bin2hex(fread($rp4)));

            
$area trim(fread($rp32));

            
$config hexdec(bin2hex(fread($rp1)));

            
$reversed hexdec(bin2hex(fread($rp1)));

            
$r["ilm"] = hexdec(bin2hex(fread($rp1)));

            
$finished hexdec(bin2hex(fread($rp1)));

            
$r["finished"] = $finished;
            
            
fread($rp4);

            
$fastestlap=9999999;

             for(
$i 0;$i $finished$i++)
                       
//$i > $finished
            
{
                
$o[$i]["driver"] = trim(fread($rp24));//player name

                
$o[$i]["plate"] = trim(fread($rp8));// plate

                
$o[$i]["auto"] = trim(fread($rp4));//car name

                
fread($rp24);

                
$o[$i]["laps_c"] = hexdec(bin2hex(fread($rp2)))/256;//laps completed

                
fread($rp2);

                
$o[$i]["maha"] = fread($rp1);//confirm flags

                
$o[$i]["pits"] = hexdec(bin2hex (fread($rp1). $pits[$i]));//n pits

                
fread($rp1);

                
fread($rp1);

                
$o[$i]["ttime"] = hexdec(bin2hex(fread($rp4)));//total time

                
$o[$i]["btime"] = hexdec(bin2hex(fread($rp4)));//best time

                
fread($rp4);

            }

        }
    

        
$r["res"] = $o;

        return 
$r;

    }
?>

Before patch X:


<?php 
         $o
[$i]["ttime"] = msht(fread($rp4));//total time

                
$o[$i]["btime"] = msht(fread($rp4));//best time
?>

Help!!!

JS
jscorrea
S2 licensed
Hello Victor,

Any change in MPR structure?

The times in my result chart is very strange now..

Regards
JS
jscorrea
S2 licensed
Kegetys
jscorrea
S2 licensed
Parabéns Vagner, continue assim!

Abraços,
JS
jscorrea
S2 licensed
Kegetys please, the Ghost Addon is a great idea to training offline!

Please Help us!

JS
jscorrea
S2 licensed
Congratulations !

How to add more servers in list?

This system support how many spectators?

Regards,

JS
jscorrea
S2 licensed
General View



Button Box and Shifter



My Speakers and Automotive Sound Module for DIY Bass Shakers.



DIY Bass Shakers



DIY Bass Shakers



Frex Style Pedals and mini shaker with gas pedal



My system:


ASUS A8V DELUXE
A64 3000+ Venice 939
1GB DDR 400 Kingston
X800 PRO Sapphire
2x160GB SATA Seagate
DVDRW 4120B LG
DVD LG
LCD 1750s LG
MOMO Force Wheel
DIY Pedals, Shifter, Box and Frame (Playseat Style)
DIY 4.1 Sound System
DIY Bass Shakers


Cya
jscorrea
S2 licensed
Please,

Anybody uses this mod with patch W?

Regards,

JS
jscorrea
S2 licensed
Please,

This mod not work with patch W?

Not for me.

JS
jscorrea
S2 licensed
Quote from Meanie :Where could i get a hold of one of those?
I'm afraid i'm from Brazil... :/

As for testing, i've got a Momo, he's got a spare G25 pedal set, no way to test as of now, but we"ll see.

I guess i"ll post this on the main forum.

Marlon eu posso vender um modulo USB para vc entra em contato!

Marlon i can sold to you my USB module contact me.

jscorrea
S2 licensed
Thanks Victor!
Current Version how?
jscorrea
S2 licensed
How to get the LFS current version in PHP?

I will put this in the top of my site.

Regards,
JS
Test Patch V2 - new SPR format?
jscorrea
S2 licensed
Hello,

I have a hotlap system in my league ( www.lfsbr.com/hotlaps ).

For this new test some modifications are necessary to read this archive?

http://www.liveforspeed.net/?page=SPR


Thanks,
JS
jscorrea
S2 licensed
me too please
jscorrea
S2 licensed
A nice combo is:

G25 Wheel.

Frex pedals and shifter.

No problems, no headaches.

JS
jscorrea
S2 licensed
Primeiro passo é comprar a licença...

JS
FGED GREDG RDFGDR GSFDG