Board Thread:Game Discussion/@comment-31526827-20180615024459

Hey FM programmers, I’ve written you in the past with my solution to hacking of car stats in OMP. It would work and would take perhaps an afternoon to implement in perhaps a few dozen to 100 lines of code.

Apparently that’s too much effort as you haven’t done it get. So, I now have a one minute solution. I assume you actually want to stop cheating.

Somewhere in your code, as the race is setting up, you read from a database the four main values of a car and then you store them in variables (say topspeed, accel, braking, and handling) in memory. From that point forward, your code refers to the variables to make calculations.

Step 1, when storing from database to variable, multiple each value by, ohhh..., 20. So, a top speed of 150 now 3000, handling of 1.25 is now 25.0.

Step 2, search and replace in your code, anywhere you refer to one of those variables, say, “topspeed”, just literally replace with “(topspeed/20)”.

That’s it, all done. Nothing changes on server side. A moment or two work on the client side. And you’ve eliminated all stat hacking.

(The number 20 could be any number and could even change from release to release in case it’s somehow guessed).

Given that this solution is that simple to implement, tell me again if you are actually interested in stopping cheating.

Sincerely, Trying to stay a RR3 fan 