Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Little Help ? (Games, obfuscation...)

  • 16-07-2002 03:48PM
    #1
    Registered Users, Registered Users 2 Posts: 380 ✭✭


    I considered writing a game like 'Scorched Earth' or even something like 'Gorillas' (GORILLAS.BAS, remember QBASIC?) to run in a web browser as a java applet that used the web server for multiplayer games. They're both turn-based games so there's less of an issue with lag and the performance penalties of platform-independant java.

    My problem is how to make it difficult to cheat. I'm trusting the client with the game data but it'll be up to the server to determine when someone's actually won.
    It'd be easy for someone to download the applet, decompile it and add code to dump out all sprite co-ordinates or go one step further and calculate and fire a winning shot.

    Suggestions I've had so far:
    - Have a variable that changed during the shot - wind for example. But I think this would just annoy human players

    - Have the client receive the game area as a JPEG. It'd still be easy for someone to add code to determine the co-ordinates of the other player but it would involve a lot more work.

    I'd like to see how it could be done without resorting to code obfuscators.

    Thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 11,192 ✭✭✭✭hmmm


    I'm not sure what you can do at the client end, surely once they can see it onscreen they can cheat irrespective of your code (i.e. the old "how do I protect my html source code" question).

    Best I can think of is server side anomoly detection (e.g. build statistical profile of 'human' players during a pilot, and boot off anyone getting a much larger hit rate)


  • Registered Users, Registered Users 2 Posts: 380 ✭✭dogs


    I know what you're saying, I'm not trying to make it impossible, just more hassle than it's worth.


Advertisement
Advertisement