VM LiveView Lite for rFactor & rFactor2

Hey, great job.

A good system but I can not run with ubuntu.

the "status.php" says online but hotlaps notes:

LifeView VM Lite
Database connection error.
try again
Version 2.0 beta [Build: 20120628]
Copyright 2011 - 2012 Vortex-Motorsports

------
Anything less indicates monitor.php:

LifeView VM Lite
-----

The marquee.php course:

No session

------

Explained this, the big mistake that I have SL.exe according to the log, if I'm not mistaken, is the path to CurrentScoring.xml

normal for a script in linux would be the following:

.wine/drive_c/Archivos\ de\ programa/rFactor/VMHotlaps/CurrentScoring.xml

please, tell me what I can do: (

(BTW, I have thought to send the file to translate it into Spanish)

tks!!!

Hi JC,

hard to tell if I don't have the original log files. Maybe you can PM me the logs of the loader and the web front end ... however does the Plugin produces a well formed ../VMHotlaps/CurrentScoring.xml file?

Thanx & Cheers
Frank
 
Hi Frank,

I see that you have done a great job :) I'm also developing a similar system but all with Asp.Net for the community to enjoy :)

I have a little question for you if you don't mind. Did you manage to calculate the Gap at the end of the race? If yes, how did you do it please?

Cheers!
 
Hi Frank,

I see that you have done a great job :) I'm also developing a similar system but all with Asp.Net for the community to enjoy :)

I have a little question for you if you don't mind. Did you manage to calculate the Gap at the end of the race? If yes, how did you do it please?

Cheers!

Hi Biker,

I don't mind ;) ... but what do you mean by calculating the gap at the end of the race?

Cheers
Frank
 
Thanks mate :)

During the race, this field is called mTimeBehindleader. But after the race, time gap between each driver does not reflect the finish gap.

I can get it from the xml log files but I am seeing if I can compute it from the live timing. The result is like the one shown below in yellow :)

I tried to calculate it from adding the lap times together but its only updated every lap and looks ugly during the race :o
 
If I get u right, u would like to conserve the race finish result with the "true" gap between each driver after a driver crosses the finish line and maybe save it as a race result without using the result xml file ... ? Don't get me wrong, I just want it to understand correctly.
 
If I get u right, u would like to conserve the race finish result with the "true" gap between each driver after a driver crosses the finish line and maybe save it as a race result without using the result xml file ... ? Don't get me wrong, I just want it to understand correctly.

Yes, that's what I mean :) Well, maybe I don't really need that :)

But it would be nice if someone is watching it live and when race is ready the finish gap is there.
 
Not sure, but u can maybe use an additional column/variable in your db/plugin and fill it after the race status is finished with the actual mTimeBehindLeader of a driver as soon as he crosses the finish line indicated by a higher mLapStartET value as it was before ... !?!? Haven't really checked, just a 1st thought ...
 
New version of VM LiveView Lite for rFactor & rFactor2 (11th April 2013) available. For a download link see first post.

Have fun ...

Cheers
Frank
 
Hi Jean,

I would like to answer your question, but I really don't know what u mean by that regarding the live timing.

But guessing u might mean taking a picture In-Game, u can either hit the F12 key making a screen shot or u can use FRAPS.

Cheers
Frank

What I would want to make, it is to have for every TEAM the image of the car thatscrolls in the marquee and, in the monitor.
 
@Hoschi: Ure welcome.

@Jean: OK, I understand. Well what u can do is the following ...

monitordata.php
Code:
...

$MonitorData .= "<tr><th class='monitor'>". $langHigh . "</th>" .
...
                    "<th class='monitor'>". $langVehicle . "</th>" .
                    "<th class='monitor'>". $langVehicleImage . "</th>" .

...

// -- format vehicle image
$vehicleImage = "./img/DefaultVehicle.png"
switch($rowSlots["Vehicle"]){
   case "InGame-Vehicle-Name01": $vehicleImage = "./img/VehicleImage01.png"; break;
   case "InGame-Vehicle-Name02": $vehicleImage = "./img/VehicleImage02.png"; break;
   ...
}

...

$MonitorData .= "<tr class=".$trClass."><td class='center'><input type='checkbox' name='SlotID" . $rowSlots["SlotID"] . "'value='1' " . $slotSelected . " onClick='display()'></td>" .
                                       "<td class='center'>" . $vehicleClass . "</td>" .
                                       "<td class='center'>" . $vehicleImage . "</td>" .

...
Quick an dirty exemplary for the monitor without any warranty.

Cheers
Frank
 
@Hoschi: Ure welcome.

@Jean: OK, I understand. Well what u can do is the following ...

monitordata.php
Code:
...

$MonitorData .= "<tr><th class='monitor'>". $langHigh . "</th>" .
...
                    "<th class='monitor'>". $langVehicle . "</th>" .
                    "<th class='monitor'>". $langVehicleImage . "</th>" .

...

// -- format vehicle image
$vehicleImage = "./img/DefaultVehicle.png"
switch($rowSlots["Vehicle"]){
   case "InGame-Vehicle-Name01": $vehicleImage = "./img/VehicleImage01.png"; break;
   case "InGame-Vehicle-Name02": $vehicleImage = "./img/VehicleImage02.png"; break;
   ...
}

...

$MonitorData .= "<tr class=".$trClass."><td class='center'><input type='checkbox' name='SlotID" . $rowSlots["SlotID"] . "'value='1' " . $slotSelected . " onClick='display()'></td>" .
                                       "<td class='center'>" . $vehicleClass . "</td>" .
                                       "<td class='center'>" . $vehicleImage . "</td>" .

...
Quick an dirty exemplary for the monitor without any warranty.

Cheers
Frank
Not work's

( ! ) Parse error: syntax error, unexpected T_SWITCH in C:\wamp\www\vmliveview01\monitordata.php on line 356

Code:
 // -- format vehicle classes
                     $vehicleClass = $rowSlots["VehicleClass"];
                     switch($vehicleClass){
                        case $class1RealName:
                           $vehicleClass = "<span style='color:" . $class1Color . ";'>" . $class1DisplayName . "</span>";
                           $classPos = "<span style='color:" . $class1Color . ";'>" . $cpClass1 . "</span>";
                           $classImg = $class1ProgressImg;
                           $cpClass1 ++;
                           break;
                        
                        case $class2RealName:
                           $vehicleClass = "<span style='color:" . $class2Color . ";'>" . $class2DisplayName . "</span>";
                           $classPos = "<span style='color:" . $class2Color . ";'>" . $cpClass2 . "</span>";
                           $classImg = $class2ProgressImg;
                           $cpClass2 ++;
                           break;
                           
                        case $class3RealName:
                           $vehicleClass = "<span style='color:" . $class3Color . ";'>" . $class3DisplayName . "</span>";
                           $classPos = "<span style='color:" . $class3Color . ";'>" . $cpClass3 . "</span>";
                           $classImg = $class3ProgressImg;
                           $cpClass3 ++;
                           break;
                        
                        case $class4RealName:
                           $vehicleClass = "<span style='color:" . $class4Color . ";'>" . $class4DisplayName . "</span>";
                           $classPos = "<span style='color:" . $class4Color . ";'>" . $cpClass4 . "</span>";
                           $classImg = $class4ProgressImg;
                           $cpClass4 ++;
                           break;
                           
                        default:
                           $vehicleClass = "<span class='classUC'>" . $rowSlots["VehicleClass"] . "</span>";
                           $classPos = "<span class='classUC'>" . $i . "</span>";
                           $classImg = "./img/CarUC.png";
                           break;
                     }
					 
					 
                     // -- format vehicle image
$vehicleImage = "./img/CarP1.png"
switch($rowSlots["Vehicle"]){
   case "#314 - Scuderia Test" $vehicleImage = "./img/CarP1.png"; break;
   case "#408 - SimRace Vereninging Nederland GT2" $vehicleImage = "./img/CarP1.png"; break;
 
}
    
                     // -- format session laps
                     $sessionLaps = $rowSlots["Laps"];
                     if($siSessionID == 7 || $siSessionID == 10 || $siSessionID == 11 || $siSessionID == 12 || $siSessionID == 13){
                        $sessionLaps = "<a href='" . $siteURL . "/laps.php?SlotID=" . $rowSlots["SlotID"] . "&amp;Lang=" . $queryLang . "' target='_blank'>" . $rowSlots["Laps"] . "</a>";
                     }else{
                        $sessionLaps = "<a href='" . $siteURL . "/laps.php?DriverName=" . urlencode($rowSlots["DriverName"]) . "&amp;Lang=" . $queryLang . "' target='_blank'>" . $rowSlots["Laps"] . "</a>";
                     }
 
@Val: You forgot the ":" behind case "#314 - Scuderia Test"

E.g.: case "#314 - Scuderia Test": ...

@Hepmi: You'd like to offer or u need them?

Cheers
Frank
 
Back
Top