[WIP] Race Engineer (Spotter) plugin for rFactor 2

Discussion in 'Other' started by cosimo, Mar 19, 2014.

  1. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    mmmh, we should add the [vehicle classes], thats would simplify paste and copy to the spotter.ini
     
  2. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Thank you, and yes it would be perfect for me if you use the vehicle class instead of the name.

    Additionnaly, i think a way to be able to take into account tire type, for exemple
    [Megane Trophy V6]
    [Megane Trophy V6.<TireType>]
    [Megane Trophy V6.<OtherTireType>]

    And so the plugin will look first at [<Class>.<TireType>] and if not found, it will load at [<Class>] and if not found it will look at [DEFAULT]

    Finally, i will recheck the megane break range, as i found 130<->500 when looking with the carstat application
     
  3. Mr.Thor

    Mr.Thor Registered

    Joined:
    May 25, 2013
    Messages:
    244
    Likes Received:
    48
    Hi Gerald, had a race on sunday with the spotter. Was really good. Buuut ;) one thing i noticed. Driver x entered the pit i heard some times. Didn't know if it was correct. But later i was in 4 and heard: driver in 3 place enters pit, but he was right in front of me...
     
  4. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Thanks, for the feedback, i will make more tests.

    V1.2 available
    - fix "finish" message who is played several time
    - enhance spotter message (car at right, car at left, etc...) to avoid playing obsolete message
     
  5. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0
    Where do I find the vehicle class?

    Gerald can you give me an example of how I would script the different tires?
     
  6. jerrymcc

    jerrymcc Registered

    Joined:
    Oct 5, 2010
    Messages:
    160
    Likes Received:
    35
    OK, my silly mistake ... works fine now. I put the dll's in the /bin folders, but not down to the bin/plugin folder ... duh.

    FYI, for those having trouble, there is a text announcement in the chat when the spotter loads, so you know it's installed.

    Thanks to all, a great addition
     
  7. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    It is in veh but can be overriden in upgrade files. So look in upgrade first.

    I have not added the tyre type support yet.
     
  8. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0
    What is veh? And where is it?

    What are the upgrade files? And where do I find them?
     
  9. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    There are files in ".mas" under userdata/installed/vehicle/.....
     
  10. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0

    hmm my folder structure is different to yours for some reason

    documents/rfactor2/Installed/Vehicles in there I find folders for each vehicle containing mas files and mft file

    does that sound like the right place to be looking for the vehicle class names?
     
  11. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Yes. I write my path from memory, so i should made a mistake.
     
    Last edited by a moderator: Sep 24, 2014
  12. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0
    So would the name of the folders be the the vehicle class?
     
  13. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    No. In the veh you have a tag for vehicle class. And upgrade files can override that
     
  14. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0
    so is the tag the name on one of the mas files in the vehicle folder?
     
  15. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    2
    Hey MOD43, Open the MAS2.exe in the rFactor 2 folder. Click File > Open, then browse for the *.mas file you want to check. Open the *_Team(s).mas and right click on the *.veh file and extract.

    Now you can open it in a text editor.
     
  16. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0
    Thanks for your advice

    below is a copy of one I have opened. Is the vehicle class for the DW12 "Indycar" ?


    DefaultLivery="DW12_77.DDS"

    HDVehicle=DW12.hdv
    Graphics=DW12.gen
    Spinner=DW12_Spinner.gen
    Upgrades="DW12_Upgrades.ini" // Vehicle upgrades information
    GenString=DW12 // Used to generate GMT names in *.gen file
    Cameras=DW12.cam // Defaults to cams.cfg in UserData directory
    Sounds=DW12.sfx
    HeadPhysics=headphysics.ini // Affects driver eyepoint only
    Cockpit=DW12_cockpitinfo.ini
    AIUpgradeClass=IndyCar_2014_Honda

    BaseVehiclePrice=0
    UnlockExperience=0

    //////////////////////////TEAM HISTORY AND INFORMATION/////////////////////////////////////////

    Number=77
    Team="Team Stock"
    PitGroup="Group2"
    Driver="Ethan Paginer"
    Description="Dallara DW12 #77"
    Engine="Honda"
    Manufacturer="Dallara"
    Classes="Indycar"

    FullTeamName="Team Stock"
    TeamFounded=2005
    TeamHeadquarters="Benton Harbour, USA"
    TeamStarts=0
    TeamPoles=0
    TeamWins=0
    TeamWorldChampionships=0


    Category="Indycar"
     
  17. matf1

    matf1 Registered

    Joined:
    Dec 27, 2011
    Messages:
    671
    Likes Received:
    2
    I'm sure that's it.

    Sent from my Nexus 4 using Tapatalk
     
  18. MOD43

    MOD43 Registered

    Joined:
    Nov 4, 2011
    Messages:
    118
    Likes Received:
    0
    Updated
    - now in alphabetical order
    - correct vehicle class
    - additional cars added


    500AssettoCorse

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    1979_un

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    Brabham BT20

    v:breakTooHot=555
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    Caterham

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    Clio_Cup

    v:breakTooHot=500
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    Eve_F1

    v:breakTooHot=555
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    Eve_ F2

    v:breakTooHot=555
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    Eve_ F3

    v:breakTooHot=555
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    F1ASR92V1

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    FIAGT3 799R GT3

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    F2_2012

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    FISI_2012

    v:breakTooHot=688
    v:breakTooCold=411

    v:tireTooHot=
    v:tireTooCold=


    FR3.5_2014

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    GT1_GTR

    v:breakTooHot=700
    v:breakTooCold=400

    v:tireTooHot=
    v:tireTooCold=

    GT2_C6R

    v:breakTooHot=530
    v:breakTooCold=485

    v:tireTooHot=
    v:tireTooCold=

    GT3_Camaro

    v:breakTooHot=595
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    GT4_370z

    v:breakTooHot=595
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    Howston_G6_MkI_65

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    IFS3

    v:breakTooHot=700
    v:breakTooCold=200

    v:tireTooHot=
    v:tireTooCold=


    Indycar

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=


    KartF1_2014

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    Marussia_MR01

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=

    Megane_Trophy

    v:breakTooHot=650
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=


    Panoz_Roadster

    v:breakTooHot=495
    v:breakTooCold=275

    v:tireTooHot=
    v:tireTooCold=

    Quad_2014

    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=


    Skip_Barber_Regional

    v:breakTooHot=560
    v:breakTooCold=265

    v:tireTooHot=
    v:tireTooCold=

    Spark_F1

    v:breakTooHot=555
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    Spark_F2
    v:breakTooHot=555
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    Spark_F3

    v:breakTooHot=555
    v:breakTooCold=300

    v:tireTooHot=
    v:tireTooCold=

    StockV8
    v:breakTooHot=
    v:breakTooCold=

    v:tireTooHot=
    v:tireTooCold=
     
  19. Ernie

    Ernie Registered

    Joined:
    Oct 5, 2010
    Messages:
    359
    Likes Received:
    219
    Thanks for your effort, Gerald. :cool:

    I have noticed that the file for the vehicle classes is named "vehiculeClass.ini". Should this file be renamed to "vehicleClass.ini"?
     
  20. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    yes, i would be logical as all is in english (and "véhicule" is the french word) :)
     

Share This Page