VM LiveView Lite for rFactor & rFactor2

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

  1. Valbuena72

    Valbuena72 Registered

    Joined:
    Dec 23, 2011
    Messages:
    194
    Likes Received:
    0
  2. Jean-christophe Pires

    Jean-christophe Pires Registered

    Joined:
    Nov 1, 2012
    Messages:
    34
    Likes Received:
    0
    Syntax error in line 471. THX all to try to help me!
     
  3. Hepmi

    Hepmi Registered

    Joined:
    Dec 13, 2011
    Messages:
    31
    Likes Received:
    0

    I do not know how to install it, you should be a moment help me with that? write PM if yes :)
     
  4. Holocsi József

    Holocsi József Registered

    Joined:
    Apr 14, 2013
    Messages:
    1
    Likes Received:
    0
  5. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    Cmon Val, what is wrong with the code? I know u can do it ... :)
    Code:
    $vehicleImage = "./img/CarP1.png"
    switch($rowSlots["Vehicle"])[COLOR="#FF0000"]{[/COLOR]
       case "#314 - Scuderia Test": $vehicleImage = "./img/CarP1.png"; break;
       case "#408 - SimRace Vereninging Nederland GT2": $vehicleImage = "./img/CarP1.png"; break;
    
    Another hint: Special characters like "#" used in source codes can be a real pain in your a.s.s. every once in a while ... ;)

    Cheers
    Frank
     
    Last edited by a moderator: Apr 15, 2013
  6. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    Do you have at least Apache / php / MySQL set and running in your environment?

    Cheers
    Frank
     
  7. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    Hi Jean,

    I assume you're a co-worker of Val ... ?
     
  8. Hepmi

    Hepmi Registered

    Joined:
    Dec 13, 2011
    Messages:
    31
    Likes Received:
    0
    What should I do first? Unpack the file. Pak rar rFactor2 copy the folder into the game. I will put a Mysql Mysql database? or what should I do? and what to do with Apache? Server on RF2 me running on Windows Server 2012
     
  9. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    The very first step is to have a running Apache / php / MySQL (APM) environment. If you don't know how to do this, I suggest u start with something like WAMP ( http://www.wampserver.com/en/ ), although I do NOT recommend this for a production environment but as a first step in getting used to APM, it is good place to start ...

    Cheers
    Frank
     
  10. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
  11. LCCMarc

    LCCMarc Registered

    Joined:
    May 16, 2012
    Messages:
    56
    Likes Received:
    0
    Tu es un géant Frank, merci d'avoir prêté attention à ma demande
     
  12. LCCMarc

    LCCMarc Registered

    Joined:
    May 16, 2012
    Messages:
    56
    Likes Received:
    0
    You are a giant Frank, thank you for paying attention to my request
     
  13. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    Sorry Marc. Not even close to the g-word ;) ... otherwise it would be ready for roll by now. But I like that u like it :)
     
  14. Valbuena72

    Valbuena72 Registered

    Joined:
    Dec 23, 2011
    Messages:
    194
    Likes Received:
    0
    Well no, not at all!
    I work in my corner: p
     
  15. fastorro

    fastorro Registered

    Joined:
    Oct 8, 2010
    Messages:
    79
    Likes Received:
    0
    i have activated succesfully this Live/hotlaps for rf2.

    Web: http://web.campeonatopdlr.com/vmliveview/

    I confirm that work fine with IIS7.5 in WinServer2008 & mysql.


    One question, is it possible 2 servers on same "core folder" with diferents PLRfilename's?

    a little add: rfactorSL.exe could hide it and show it as icon task bar (icon min.)

    Great job,
     
  16. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    Hi fast,

    never tested it with IIS but good to know ... thx 4 sharing this info :)

    I really don't know what u mean by this.
    Can u give me an example please ...

    Thanx & Cheers
    Frank
     
  17. fastorro

    fastorro Registered

    Joined:
    Oct 8, 2010
    Messages:
    79
    Likes Received:
    0
    Look our scenario:

    1 instalation (with separate core and data folders)

    We have two profiles, each one in diferent ports, we can launch each profile working fine but when i install your plugin i look your tool showing track label blinking between two diferents servers track.
     
  18. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    Ah ok, now I understand.

    I think in this way it is not possible to make the plugin work for two separate instance.

    What u might do is the following:

    Copy your current installation to a separate folder and outsource the Packages folder maybe this way ...

    C:\Games\rFactor2 Packages
    C:\Games\rFactor2 Instance 1
    C:\Games\rFactor2 Instance 2

    Start the Launch rFactor.exe in each instance folder and under Advanced change the Data Path of each instance to point to the right directory.

    Rename the server profiles to e.g.:

    C:\Games\rFactor2 Instance 1\UserData\DedicatedServer\rFactor2 DS X1.plr
    C:\Games\rFactor2 Instance 2\UserData\DedicatedServer\rFactor2 DS X2.plr

    Now let instance 1 + 2 point to C:\Games\rFactor2 Packages. This way u can at least save a little amount of disk space. With this u can configure a second instance of the database-website-loader combination. The first loader grabs the data from C:\Games\rFactor2 Instance 1\VMHotlaps and writes it to db1 sharing its information through website1 and do the same for instance 2, grabbing the data from C:\Games\rFactor2 Instance 2\VMHotlaps writing it to db2, sharing it through website2.

    Hope this helps ...

    Cheers
    Frank

    PS: To overcome this, it might be a good idea to use the <PlrFileName> return value for a sub-directory name under ..\VMHotlaps\.. like ..\VMHotlaps\rFactor2 DS X2\CurrentScoring.xml within the plugin for a possible next relase ...
     
    Last edited by a moderator: May 3, 2013
  19. fastorro

    fastorro Registered

    Joined:
    Oct 8, 2010
    Messages:
    79
    Likes Received:
    0
    yes, duplicate servers its one posibility, but... sometimes we have 5-6 instances for rfactor and setup vmhotlaps each instance its something boried;)

    Now you have something for spend your time.... if you want ofcourse! hehe...
     
  20. Frank Geyer

    Frank Geyer Registered

    Joined:
    Oct 5, 2010
    Messages:
    222
    Likes Received:
    3
    Quick and dirty, just to see whether it satisfies your needs.

    It creates a subfolder within the ..\VMHotlaps\.. folder based on the <PlrFileName> tag and writes the scoring data to this subfolder.
     

    Attached Files:

Share This Page