VM LiveView Lite for rFactor & rFactor2

Discussion in 'Plugins' started by Frank Geyer, Feb 20, 2012.

  1. Suzukinol

    Suzukinol Registered

    Joined:
    Nov 28, 2017
    Messages:
    148
    Likes Received:
    54
    Any help to install this? I downloaded it. I have a VPS and I know how to install the plugins into the rFactor 2 server folder but I don't know about setting the web.

    Thanks.
     
  2. jcarrest

    jcarrest Registered

    Joined:
    Jan 11, 2012
    Messages:
    13
    Likes Received:
    0
    Is it possible to make it work in ubuntu?
     
  3. jcarrest

    jcarrest Registered

    Joined:
    Jan 11, 2012
    Messages:
    13
    Likes Received:
    0
    everything seems correct, but web page "almost" blank
    What could it be?
     

    Attached Files:

  4. jcarrest

    jcarrest Registered

    Joined:
    Jan 11, 2012
    Messages:
    13
    Likes Received:
    0
    Its ok. Only problem PHP.
    Solved.
     
  5. Matthias Weber

    Matthias Weber Registered

    Joined:
    Nov 3, 2016
    Messages:
    15
    Likes Received:
    3
    how did you solve the php problem?
     
  6. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,959
    Likes Received:
    2,809
    What kind of Problem with PHP do you have?
    Sometimes it's only the Server that has updated the used PHP Version.
    Check that and if that is the Case, you can adapt the VL Lifeview Lite Files to the new PHP Version or maybe the Server offers the Possibility to switch back to an older PHP Version.
     
    Matthias Weber likes this.
  7. Uncommonly

    Uncommonly Registered

    Joined:
    Jun 28, 2020
    Messages:
    2
    Likes Received:
    0
    Hi guys.

    I hope this plugin still have some kind of support.
    I managed to run the plugin. All the communication between plugin, server and mysql is OK. The problem is from web-based side, where I can't manage to run that thing properly. I mean, web pages are displayed but looks like CSS can't be loaded or it's missing. Can't get mapview on the track and trackdata page as well. Things like that. All the pages looked like a plain text and nothing else.

    From Devs Console I have these errors:

    Blocked loading mixed active content "http://xxx/xxx/live/htdocs/vmliveview/styles.css"
    track.php
    Blocked loading mixed active content "http://xxx/xxx/live/htdocs/vmliveview/css.errors.js"
    track.php
    Blocked loading mixed active content "http://xxx/xxx/live/htdocs/vmliveview/css.trackdata.js"
    track.php
    Blocked loading mixed active content "http://xxx/xxx/live/htdocs/vmliveview/styles.css"
    track.php
    Blocked loading mixed active content "http://xxx/xxx/live/htdocs/vmliveview/css.errors.js"
    track.php
    Loading failed for the <script> with source “http://xxx/xxx/live/htdocs/vmliveview/css.errors.js”. track.php:16:1
    Blocked loading mixed active content "http://xxx/xxx/live/htdocs/vmliveview/css.trackdata.js"
    track.php
    Loading failed for the <script> with source “http://xxx/xxx/live/htdocs/vmliveview/css.trackdata.js”. track.php:24:1
    ReferenceError: requestStatus is not defined

    Website is running on SSL (httpS) and looks like the plugin is trying to reach css, js, etc over httP.

    Please help. :)
     
  8. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    96
    Likes Received:
    7
    You must run vmliveviewer in an non ssl page.
     
  9. Uncommonly

    Uncommonly Registered

    Joined:
    Jun 28, 2020
    Messages:
    2
    Likes Received:
    0
    That worked. Thanks.
    Is there any way to run VM trough SSL?
     
  10. doberk

    doberk Registered

    Joined:
    Jun 11, 2016
    Messages:
    120
    Likes Received:
    22
    Hello, what is the recommended PHP version?
     
  11. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,959
    Likes Received:
    2,809
    The last Time i did use VM LiveView Lite was some Years ago and i did use php 5.5 when i remember it right.
    I would recommend a newer php Version, but if you can use 5.5, you can use that, to check if it still works and if it works, try to get it working with a newer php Version.
     
  12. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    716
    Likes Received:
    217
    Hello. Last php version is 8.X ...
    I think it is a big gap from 5.X. It will probably need a few modifications.
    Maybe i will give it a try and see if it works.
    Best options is to use some old Wamp on php5 and try it.
    I already revived another livetiming and it was still working without any modifications.
    https://github.com/mbeader/rf2livetiming
    This one is a lot more portable and modern, using node.
    Running example here : http://rf2.dedicated.danrazor.net:8080/

    And i can't test it, but it will probably work on Le Mans Ultimate if we get the dedicated server.
     
    Last edited: Mar 16, 2024
    doberk likes this.
  13. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,959
    Likes Received:
    2,809
    Not necessarily.
    I made my online Tools when Version 5 was the latest Version and it wasn't difficult/much to do, to get them working with 6-8 too.
    I think that one Problem could be, that the Plugins aren't working anymore.
    Frank did update them several Times, when the rF2 Build got Updates.
    But i haven't tested it.
     
    DanRZ likes this.
  14. doberk

    doberk Registered

    Joined:
    Jun 11, 2016
    Messages:
    120
    Likes Received:
    22
    Thank you DanRZ, it looks cool. I am testing it but browser shows "no active server" in the upper left corner, so it seems there is a problem in the communication between plugin and application. Both rF2 and LiveTiming are in the same server, and I have run rf2 server after nodejs. In rf2livetiming.ini is set destination ip 127.0.0.1 and destination port 6789 (default). In the other hand, config/index.js looks like this:

    HTTP_LISTEN_PORT: 88, // port to listen for HTTP clients
    RF2_LISTEN_PORT: 6789, // port to which the rF2 plugin sends data
    RF2_SRC_ADDR: '127.0.0.1', // IP address of rF2 server
    IPV4_LOOPBACK: '127.0.0.1', // if loopback IP for some reason is different, change this
    RF2_PUBLIC_ADDR: 'AAA.BBB.CCC.DDD' // public IP of rF2 server for join link

    So plugin is sending data to port 6789 and application is listening at 6789. Where am I wrong?
     
  15. doberk

    doberk Registered

    Joined:
    Jun 11, 2016
    Messages:
    120
    Likes Received:
    22
    I think plugin is not working, because creator sais in his github that log is stored in UserData\Log\rf2livetiming.log, but in my case nothing is writing there. And I have tested in powershell ports that are listening (Get-NetTCPConnection) and nobody is listening at 6789. I have put this in CustomPluginVariables.json, but with no changes:
    Code:
    "rf2livetiming.dll":{
        " Enabled":1
      }
     
  16. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    716
    Likes Received:
    217
    The plugin need to be recompiled.
    Try the one in that link : HERE
     
  17. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    96
    Likes Received:
    7
    Thanks for share this.
    By me, it don't work on a local machine.
    Node is starting and shows the Webside
    View attachment upload_2024-3-22_8-14-40.png

    and the node window
    View attachment upload_2024-3-22_8-15-12.png

    Daytona is not on the rF2 Dedicated Server!
    Firewall is open, but we are in localhost Mode with 127.0.0.1
    Has anybody an idea please?
    Thank you



    EDIT
    I check the custom Plugin setting, the Plugin was off grrrr
    But if i makes on, the node is closing.

     
    Last edited: Mar 22, 2024
  18. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    96
    Likes Received:
    7
    Ok news
    After i take the Package from Github and install onesmore and copy your new compiled dll in rF2, the node is now running!
    Only the map und the db can't found for my track.

    How can i fix this one please?
     
    Corti and DanRZ like this.
  19. DanRZ

    DanRZ Registered

    Joined:
    Aug 22, 2021
    Messages:
    716
    Likes Received:
    217
    Cool. The map will be generated along with player data. It's dynamic, it will create it by itself after a few valid laps done.
     
    ennimann and Corti like this.
  20. ennimann

    ennimann Registered

    Joined:
    Dec 28, 2011
    Messages:
    96
    Likes Received:
    7
    That's great.
    Thanks, i will post, if its work.
     

Share This Page