SOLVED Internal Plugin V06 crash

Discussion in 'Bug Reports' started by Gerald Jacobson, Apr 17, 2014.

  1. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Hello,
    I have updated the two hpp files from the InternalPluginV06.zip recently posted on the dev corner. And updated my plugin code to V06
    int __cdecl GetPluginVersion() { return( 6 ); } // InternalsPluginV01 functionality

    As soon as i launch rFactor2 the game crash (before going to black full screen)

    If i change the line to
    int __cdecl GetPluginVersion() { return( 5 ); } // InternalsPluginV01 functionality

    The game launch successfully.
     
    Last edited by a moderator: Apr 18, 2014
  2. 64r

    64r Registered

    Joined:
    Jan 16, 2012
    Messages:
    191
    Likes Received:
    35
    I have never changed this from 1, however I just tested this to see if I could reproduce the issue and I can, a little differently. I simply built the v6 example and had no problems. I then changed the value from 1 to 2 and built and restarted rF2 and again no problems. I also had no problems with 3 or 4, but if I try 5, 6 or above I get the same crash on launch. No really a bit issue for me but it's good it can be reproduced for the devs.
     
  3. Terence Groening

    Terence Groening Registered

    Joined:
    Oct 13, 2010
    Messages:
    169
    Likes Received:
    0
    It seems to work fine for me, and for at least one of our beta testers. Did you remember to derive your class from InternalsPluginV06?
     
  4. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Damn, forgot to upgrade that from 05 to 06.

    Sorry for this dumb mistake.

    Envoyé de mon GT-N7105 en utilisant Tapatalk
     
  5. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Don't worry Gerald. I did the same thing today. Hahaha. I also did an even dumber mistake which was trying to evaluate with = rather than ==. Hahahah. That's the problem of going between languages all the time.

    I probably shouldn't admit that mistake publicly should I? Hahaha
     
  6. Marek Lesniak

    Marek Lesniak Car Team Staff Member

    Joined:
    Oct 6, 2010
    Messages:
    1,585
    Likes Received:
    101
    As long as you don't do that too often, it's fine ;)
     
  7. Terence Groening

    Terence Groening Registered

    Joined:
    Oct 13, 2010
    Messages:
    169
    Likes Received:
    0
    For future users, I have added an extra comment to GetPluginVersion() in the example plugin to make sure the return value matches the class you derive from. You might add a note to yourself on your own project. (You lose two things as you grow older, the first is your memory but I don't remember the second.)
     
  8. Max Angelo

    Max Angelo Registered

    Joined:
    Oct 5, 2010
    Messages:
    4,958
    Likes Received:
    10
    LOL
     
  9. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Thanks Terence ;)
     
  10. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    You lose two things as you grow older, the first is your memory but I don't remember the second.
    --Terence Groening
     

Share This Page