Hi all!
It's simple, this script allow to you to read the MPR files and extract the headers and the results of the race (if someone finish the race)
This is a frustrating try to read all the race. All I obtain was the documented info at www.lfs.net/?page=MPR .... and all the car/head skins used by the participants... but It isn't implemented. As I've said... I finished frustrated
You can use my script with something like this:
The $o object has two principal properties: $o->headers with all the header info, and $o->players with an array with all the results.
See the code and the dump for more info Demo: http://mch.lfsteam.es/forum/mpr.php
P.D.: Sorry for my english... I know PHP, not english
Edit1: updated file to avoid a file requirement
It's simple, this script allow to you to read the MPR files and extract the headers and the results of the race (if someone finish the race)
This is a frustrating try to read all the race. All I obtain was the documented info at www.lfs.net/?page=MPR .... and all the car/head skins used by the participants... but It isn't implemented. As I've said... I finished frustrated
You can use my script with something like this:
<?php
require_once('phpmpr.php');
// parse the file
$o = new PHPMPR('some-mpr-file.mpr');
// see the content
var_dump($o);
?>
See the code and the dump for more info Demo: http://mch.lfsteam.es/forum/mpr.php
P.D.: Sorry for my english... I know PHP, not english
Edit1: updated file to avoid a file requirement