It's possible to have a file with insim output generate by lfs like
connection,
join,
split,
lap,
mci,
...
etc...
The way is to parse it without have to play a replay ( to long ). In fact the best way it's to document MPR file, but i think Scawen don't want it. This solution is an intermediate solution, not very good and not very bad.
it is very usefull to make statistic on race like LFSStat more quickly.
Thank's for the reply. In fact MPRStat is a test version and i don't know if i continue to dev it because i don't have the MPR format and it's so difficult to guess how the data are in it.
- Shutdown is a know problem, i have fixed it
- For the directory, i take a look, for now i only test in same directory with mprstat.
- Graph work only if tsv file is present
- Chat now work, i release it tonight
I do a new version of LFSStat reading mpr file. it allow to create a bit of statistical information from a MPR file directly without playing replay.
It's a dev version and i don't know if it will be continued, because MPR file are no documented. ( maybe Scawen do it for me ) It use the templates from LFSSTat and export module ( same code ). You need microsoft .NET for this programm work.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This version use also graph.exe of older version for the graph and generate a html and lap by lap file for now.
You'll have to modify MPRStat.cfg to adapt the configuration for your port and admin password.
you can find graph.exe in the old topic : http://www.lfsforum.net/showthread.php?t=75
make a bug report with the mpr if it's possible ( little mpr please ). I have not tested it very much! It's just for a test for now
TimeStamp: 2 bytes timestamp, return to 0 when = #FFFFF
Framemarker: #FC -> Event frame #FD -> Messages frame #FE -> Car positionning, maybe like MCI in insim packet
UCID: Unique connection ID. When a player leave a connection ( slot ), the player who have upper UCID get this leaved connection
frame subsequent bytes: Number of bytes to read after this to completely read a frame
Subframe Number: Number of bytes to read after this byte to get a subframe. There is one or more subframe. Each subframe aquire TimeStamp, framemarker and UCID for the main frame
I don't understand sorry . Next first time stamp for my replay. In Red events. You can find all file http://ks37764.kimsufi.com/tmp/readMpr.htm. If you can do an example, i will be very happy .
I plain to rewrite LFSStat without using Replay with LFS. I download your source, look in IT and i write a little application for now read MPR and Frame. For convenience i use PLID as CarId ( like insim ) and UCID as connectionID. For PlayerID there is not an equivalence in insim ( in the old insim version, it's present )
Along the replay UCID change permanently, there is a packet where i can find this modification?
For now, i update UCID when it's change in Frame. I Need this info for message parsing. Unfortunately, message send only UCID. Retrieving message parsing work with this method perfectly.
Now and this is my big problem, some STARTFINISHLINE packet are missing in replay. It's normal or there are an other packet sending this info or i make a mistake? I try to find if lap time are assigned to another player, but this laptime don't appear in any place in the replay.
If i get ENTERPIT frame, there are not UCID or PLID? so strange, but LEAVEPIT yes!
And the last, what is the Frame 0xFD? I think it's possitionning or MCI ( insim ) packet like? i'am right?
Two different pb file, one pb file for one lapper
Lapper can be or not on two different directory, but "synchro" must be the same directory for the two instance of Lapper.
I don't understand why you have this problems. I have installed Lapper on many Debian and ubuntu linux without any issue and using default get package.