CS2D General Hackers in general Hackers in general
25 replies A simple solution to this problem is to install good firewall software on your PC and block off bad traffic sort of say.
If you find a suspicious IP adresses that are essentially connecting players of your CS2D game server you could easily add them to the "block list" usually. But this is just the firewall level of protection but usually it's more than enough. By doing this you can see which player is causing problems and then you simply add these to your list.
There's a better way to do it which I use and it's called IPsec Policies. It's essentially a way to block off complete traffic from source IP adress to destination IP adress and so forth. It successfully prevents cheaters/hackers/script-kiddies from ever accessing your server ever again. I deeply recommend this if you really want to get rid of the cheaters.
If you just read this and learn how it works you'll be fine else you will keep complaining about cheaters and I can't really do much about that. But this is the help I'm giving you game server hosters out there. I see hackers in all places, more over 10,000 hackers in ..........C-4.......... I did successfully a good anticheat a while ago, which basically was running the CS2D client server-side and then letting users connect with VNC to a terminal server instance that spawned one CS2D for each user connecting.
Disadvantages was that there was no sound and some other small disadvantages like buggy behaviour sometimes.
But that anticheat type could be extended.
Effectively, make the CS2D client a "dumb display" that does nothing except for displaying game objects, relayed from a server, and let the client send user inputs to server.
And do 100 % of calculations on server. It will be impossible to cheat.
To reduce lag, the system could use object identifiers to paint the map instead of real image object. Then the game client simply converts these to image objects automatically.
Like instead of sending a Picture of a player, it could send a ID like "001" and a position x/y like 212/128, and then the game client Paints this. But the data is never sent if that part of map is not visible due to fog of war. DC Admin Offline
@ sebastiannielsen: The "do everything on the server"-approach is probably the only solution to get rid of most (still not all) cheats long-term. In practice it's very problematic though because it requires a good bandwidth (client and server) and very low pings to work well. Every lag and ping spike would be much more noticeable and It would probably make the game unplayable for many players. Therefore it's not a good solution in my eyes. Stop hackers, it's impossible because, the hackers don't stop the hacking, DC make a anti-cheat, he's make a other hack traspassing the ''anti-cheat'', Impossible. Whatever you do there will be hackers, you just can't stop them. So it's no idea to discuss about it.