Plugin Tutorial

Discussion in 'General Discussion' started by Jim Beam, Jan 3, 2012.

  1. Jim Beam

    Jim Beam Registered

    Joined:
    Oct 5, 2010
    Messages:
    824
    Likes Received:
    10
    are/will there be any tutorials for the plugin example?


    cheers
     
  2. Jim Beam

    Jim Beam Registered

    Joined:
    Oct 5, 2010
    Messages:
    824
    Likes Received:
    10
    nevermind :rolleyes:

    thx for example btw
     
  3. 88mphTim

    88mphTim racesimcentral.net

    Joined:
    Sep 23, 2010
    Messages:
    10,840
    Likes Received:
    314
    Honestly don't know the answer to that one, but I assume yes as most other types of modifications you can make have something done or in-progress.
     
  4. dragon

    dragon Registered

    Joined:
    Nov 17, 2010
    Messages:
    141
    Likes Received:
    1
    where is the example, i can't find
     
  5. Jim Beam

    Jim Beam Registered

    Joined:
    Oct 5, 2010
    Messages:
    824
    Likes Received:
    10
    in downloads section
     
  6. Jim Beam

    Jim Beam Registered

    Joined:
    Oct 5, 2010
    Messages:
    824
    Likes Received:
    10
    so it looks like KERS/DRS will be available thru the plugin system

    actually the possibilities are endless with this system ... :cool:
     
  7. Mr.Ferret

    Mr.Ferret Registered

    Joined:
    Oct 5, 2010
    Messages:
    70
    Likes Received:
    0
    Man i was taught C++ in uni, it didn't make sense to me then and it makes even less now haha!
     
  8. jubuttib

    jubuttib Registered

    Joined:
    Dec 16, 2011
    Messages:
    934
    Likes Received:
    7
    Active suspensions like those found in some modern sports cars? Specifically the comple AWD and stability control systems of Evos and GT-Rs and the computer controlled suspension of McLaren MP4-12C?
     
  9. MaXyM

    MaXyM Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,774
    Likes Received:
    29
    Internals Plugin for rF2 is huge expansion comparing to rFactor one.
    However possibility to control a server (chat, admin commands) is missing to me. Whould be great to get some addition to that.

    Any way, thank you for releasing it before rF2.
     
    Last edited by a moderator: Jan 4, 2012
  10. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
  11. Gjon Camaj

    Gjon Camaj Registered

    Joined:
    Sep 27, 2010
    Messages:
    237
    Likes Received:
    24
    There is an updated version of the sample plugin. This is the latest version and we took the opportunity to remove many of the hooks to functions not available in rF2.
     
    1 person likes this.
  12. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Just to clarify, the example plugin that was posted in the download thread has been updated. Just use the link posted in the download thread for the new version. I haven't had a chance to look at the changes yet. I just redownloaded it and see that the file dates have changed.
     
  13. 88mphTim

    88mphTim racesimcentral.net

    Joined:
    Sep 23, 2010
    Messages:
    10,840
    Likes Received:
    314
    Yeah you'll need to use the posted newer version to retain compatibility going forward. We're sorry. :)
     
  14. Jim Beam

    Jim Beam Registered

    Joined:
    Oct 5, 2010
    Messages:
    824
    Likes Received:
    10
    so is KERS not going to available now?...its disappeared?
     
  15. mclaren777

    mclaren777 Registered

    Joined:
    Oct 5, 2010
    Messages:
    546
    Likes Received:
    14
    @Tim Wheatley -- Is that a submarine in your avatar? If so, what kind is it?
     
  16. 88mphTim

    88mphTim racesimcentral.net

    Joined:
    Sep 23, 2010
    Messages:
    10,840
    Likes Received:
    314
    It's U505 which is in Chicago.
     
  17. Acestumacher

    Acestumacher Registered

    Joined:
    Nov 7, 2011
    Messages:
    173
    Likes Received:
    20
    Looks like a torpedo ready to launch!
     
  18. MaXyM

    MaXyM Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,774
    Likes Received:
    29
    Haa, in example.cpp I found code snippets originated from rF1 plugin.
    What scares me is:

    It is quite serious limitation in plugin api. Hope it will be improved.

    Also, looks like weather data is global for whole location. I hoped in various weather conditions around a track

    Still no control over server/chat/admin commands
     
  19. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,510
    Likes Received:
    6,671
    95% of it is exactly the same as the V3 plugin example from rF1, main changes are the DLL related stuff, V01 -> V02 in a few places, and a few new bits of code scattered here and there to reference the new data in those V02 structs. The original version put up for download had some interesting stuff in the .hpp but that's been removed now.

    Agree on the scoring updates by the way, but I really hope what we saw previously was a sign of things to come rather than remants of an rF1 experiment (or rFPro) we'll never get.

    Anyway, I'm sure (I hope) this is an area we'll see movement on later. There's a whole host of things we could do with just for telemetry (current MaxRPM for example, as determined by the boost level and effects, plus the base MaxRPM), let alone other things people would like to make plugins for.
     
  20. Gjon Camaj

    Gjon Camaj Registered

    Joined:
    Sep 27, 2010
    Messages:
    237
    Likes Received:
    24
    The previous header file was used on various projects over the past many years. Some of it was never built into rFactor, although after we get through the Modders Test, I can see spending some time adding additional functionality to the plugin. We do need to be careful however as it does open up possible cheating of which closed projects don't need to worry about.
     

Share This Page