Open mwl4 opened 9 months ago
Hey,
Thank you, I don't know much about c++ so I did not know __try/__catch
even existed, I think I tried the std try/catch
at some point but that was only able to catch std exceptions.
The version checker I added last plugin version only checks 1.xx
, I didn't really expect SCS to do a .5 update.
And I indeed don't really want to constantly have to update this for every smaller binary change. So it wasn't able to catch the .5 update unfortunately.
I will look into it and hopefully stop the crashes once and for all, thanks again. And sorry for any issues/extra work the plugin crashes have caused for you and the TruckersMP team.
Hello,
I can see that it is challenging to predict future game versions and in the same time keep plugin working for the largest number of game binary versions.
To do it effectively, you could first verify what you need, if it fails, then inform user that different plugin version is needed, if it succeeds let it load. To make it happen, you could use
__try
and__except
keywords. https://stackoverflow.com/a/7049836Real code might be different, and I am not sure if you can return false just like that from __except block. But I think it should be all possible.
Thank you for understanding.