How to prevent cheating with Gamecih?

前端 未结 10 1538
孤独总比滥情好
孤独总比滥情好 2021-01-31 12:07

Background

I\'ve had problems for quite a while now with players cheating in my android game. For a strict single-player game this wouldn\'t be a big is

10条回答
  •  孤街浪徒
    2021-01-31 12:25

    I have a thought on this, since I sometimes use GameCIH myself. You could have a rolling 10-entry transaction log that self-checks on every new transaction.

    What you would do (since GameCIH can only deal with one variable at a time) is have two variables that are checked against each other.

    • Original (or 11-ago) value
    • Array of values of changes 1 through 10
    • Summation value, negated. (This totally changes the decimal value you can see, and it'll change differently than the original value when the oldest log entry is rolled into it.)

    If the negative of the summation value doesn't match the original plus the 10 logged transactions, return an error.

    You would just have to change how your stat mods are handled - if even one of them still tries to modify the original value directly, your game would return that it's been incorrectly changed.

提交回复
热议问题