Wonderful. I see why you’re the bitwise Duke ;D
I…I don’t even see the code. All I see is blonde, brunette, red-head.
(Bonus pun relative to this thread if you know that guy’s name…)
On that last system print, (if) I don’t make a new string like you did in the console I get outputs like
[B@1d0bc85
That’s the byte[]
being printed.
If you want to see the nubmers, use Arrays.toString()
, and if you want to see the string representation, use new String
.
Why is it a problem that players can change their health?
If it is a local game, and has no in-app purchases, then there is no reason to prevent a player from altering the game. “Cheating” is fun, and dont you want people to have fun : ) ?
“Cheating” has such negative connotations, but really the same implications as “Modding”.
If the game is online, then the player should not be able to cheat by editing a local file. If the player can cheat by editing data or code on the client’s machine, then the data or code should be moved to the server.
I dont think there are many good reasons for this anti-cheat / anti-modding nonsense : (