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.
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.
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?
Damn, forgot to upgrade that from 05 to 06. Sorry for this dumb mistake. Envoyé de mon GT-N7105 en utilisant Tapatalk
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
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.)
You lose two things as you grow older, the first is your memory but I don't remember the second. --Terence Groening