English Made a super-anticheat mod to CS2D

55 replies
Goto Page
To the start Previous 1 2 3 Next To the start
Poll Poll
What do you think?
Only registered users are allowed to vote
Great!
27.16% (22)
Good idea, but not perfect
50.62% (41)
Too laggy!
9.88% (8)
Most crappiest I have seen.
12.35% (10)
81 votes cast
Up
sebastiannielsen
User
Offline Off
I made a "mod" to CS2D that allows it to run on a terminal server with VNC. This effectively prevents all cheats completely, since the only thing the client gets is a image stream. Theres nothing to cheat with.

The game client runs on a Kubuntu Maverick 10.10 machine with terminal services (Xvnc/XinetD/kdm sessions) set up. The script which generates a config file and autostart CS2D is a perl script made by me.

The locking and unlocking of keyboard/mouse input is done by a lua script on the cs2d server which executes a perl script with os.execute which sends UDP packets to the perl script on the client which runs $mw->grabGlobal and $mw->grabRelease.

This prevents playes from messing with the options during kill (spectate).

Also remapped ESC (code: 9) to "nothing", which prevents opening the menu ingame.

Degraded everything (tiles, players, graphics and such) in the game to a 16 color palette to enhance FPS and image compression.

This allows the CS2D to be run on any device, even on mobile phone. Just fire up ANY VNC-client and connect to "www.sebn.us.to" port 5900, configure your keybindings and then press Launch.

Flashbang and nightvision is disabled on the server (unbuyable) because it changes the game image so heavly so the FPS drops to 1 under several seconds.

Here is a web client:
http://www.sebn.us.to/cs2d/

What do you think?
Any ideas of improving it?
is it "hackable"? (Eg, do you manage to access cs2d's menus, do you manage to crash cs2d so you can access the server desktop, or access things that should not be accessible?)
14.11.10 11:30:38 pm
Up
BetaM
User
Offline Off
You sir win the internets. Works perfectly on my iphone. I just dont know how to execute the set binds but im sure its the iphone programs fault. Other than that its awesome!
14.11.10 11:30:40 pm
Up
FlooD
GAME BANNED
Offline Off
omg laggy...
nice idea though
:(){ :|:& };: http://github.com/floood
14.11.10 11:32:53 pm
Up
sebastiannielsen
User
Offline Off
The binds are set by pressing one of the buttons once then press the key you want to set.
14.11.10 11:36:54 pm
Up
BetaM
User
Offline Off
Yeah, I just figured that. Also it lags like hell.
14.11.10 11:50:23 pm
Up
sebastiannielsen
User
Offline Off
Yes, Im thinking of TurboVNC with libjpeg-turbo instead of tight, but I can't get it to run...
15.11.10 01:46:43 am
Up
PhasePro
User
Offline Off
Is the finished version going to be a web client?

It's really laggy, great idea though.
durp
15.11.10 07:57:48 am
Up
DoP3
User
Offline Off
Why didn't you uploade this in Unreal software? This looks suspicious...
15.11.10 08:12:27 am
Up
Cure Pikachu
User
Offline Off
There's nothing to download, yet...
And it's lagging in there...
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
15.11.10 10:17:24 am
Up
Yamaxanadu
User
Offline Off
Remapping ESC to ESC Allows the Opening of the ingame Menu

"When Creating Something , Think of What a Smart Person will Do , And Use Counter-Measures to Prevent it"
Back in business, and I'll try not to be the Enigmatic asshole that i used to be....I hope
15.11.10 10:24:37 am
Up
sebastiannielsen
User
Offline Off
Chetchen: Fixed that now by binding ESC to /bin/true which does nothing.

It turned out that xmodmap is pretty unreliable and wont remap the esc key for some connections which allowed a player to open the ingame menu.
15.11.10 10:39:27 am
Up
Yamaxanadu
User
Offline Off
Rebinded ESC back to ESC and it still Works

"The Harder you Do something that does not Relate to the Problem at hand , The Harder you Fail"
Back in business, and I'll try not to be the Enigmatic asshole that i used to be....I hope
15.11.10 10:44:44 am
Up
DC
Admin
Offline Off
the idea is very good and really makes nearly all cheats/hacks impossible (only aimbots based on image scans might still have a chance to work) but the price for this is pretty high. it requires good servers (ideally with video cards) with huge bandwidth.

amazing that you got it to work but this is currently still too laggy to be a serious alternative. I think it would need at least about 25 fps to be "playable".
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
15.11.10 11:05:13 am
Up
sebastiannielsen
User
Offline Off
Chet-Chen: How did you remap esc key back to esc?
What type of software are you using?

DC: I think its the VNC that are sending the picture inefficiently. The server are not using any video card, since the VNC server cant use the video card driver for some reason. (It must support pixel buffers and its a intel integrated card which does not support pBuffers)

The server instead uses a OpenGL software driver (libgl1-mesa-swx11 v7.7.1-4) to render the image.

Theres already commercial services out based on "streaming games over the net" like www.onlive.com, www.streammygame.com and such.
So I think its doable.

Server specs:
2,6 ghz
2g ram
160g hdd
down: 24mbit/sec , up: 3 mbit/sec


But DC, if you manage to add support for 320x240, I think I can make the FPS pretty good. (4x higher)



BTW -- TRY now! I got 38 FPS now when changing to de_cs2d map.
edited 1×, last 15.11.10 11:45:15 am
15.11.10 11:56:48 am
Up
DC
Admin
Offline Off
just tested it and saw you on the server. it's absolutely unplayable from here.
the FPS are higher now but the actual FPS that I receive on my side must be far lower because of the bandwidth bottleneck or maybe because the server is just too far away from my location (Germany).

moreover I simply didn't see you most of the time. maybe fog of war is enabled but not visible? I also didn't see the bomb directly. I received the "bomb has been planted" message but it took several seconds before the bomb appeared on the map.

(btw: the 320x240 thing won't happen I guess)
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
15.11.10 12:00:32 pm
Up
sebastiannielsen
User
Offline Off
Maybe you missed on the top:

"fow: on, fowalpha: 0, ff: off, idlekick: 25 seconds, slots: 6."
fow: on, fowalpha: 0

Server is located in sweden
15.11.10 12:03:01 pm
Up
DC
Admin
Offline Off
oh okay yeah I didn't read that. sorry.
still not a good idea because it's quite confusing (due to the fact that you simply don't see that there is fog of war)
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
15.11.10 12:05:31 pm
Up
sebastiannielsen
User
Offline Off
Disabled the fow completely
It might be better like that. I tried with fowalpha=100 but it looked bad with fowdetail = 0, fowdetail = 1 looked better but killed the FPS to about 10.
edited 2×, last 15.11.10 12:40:09 pm
15.11.10 03:12:34 pm
Up
Surplus
User
Offline Off
28fps and i cant see any walls.

This sucks, but a great idea.
15.11.10 04:47:08 pm
Up
sebastiannielsen
User
Offline Off
tiiger87: Sorry, misspelled a command in the xvncserver script so everything got black/white. Was experimenting with some settings to achieve better FPS.

Fixed now. Now you should see walls.
To the start Previous 1 2 3 Next To the start