Forum

> > CS2D > General > 0104 on linux
Forums overviewCS2D overviewGeneral overviewLog in to reply

English 0104 on linux

18 replies
To the start Previous 1 Next To the start

old Re: 0104 on linux

Flacko
User Off Offline

Quote
I guess you can't because DC introduced the Linux support in recent versions.

Maybe you would have to recompile the sourcecode and hope it works in linux without having to change it.

old Re: 0104 on linux

Focus2D
User Off Offline

Quote
I'd also like too know how to run beta 0104 dedicated servers via linux.

Help would be much appreciated.

old Re: 0104 on linux

DC
Admin Off Offline

Quote
in short:

× not possible


in detail:

× cs2d 0.1.0.4 is insecure and every part of it can be hacked with ease. DO NOT USE IT!

× there is no dedicated server for 0.1.0.4 because it has been programmed in blitz3d. you can't compile linux programs with blitz3d. cs2d 0.1.0.4 runs on windows only (maybe on linux using wine but not natively)

√ use the latest version instead. it is better by far and has dedicated server programs for windows and linux servers.

old Re: 0104 on linux

Focus2D
User Off Offline

Quote
I wish you'd stop repeating "Play the latest version".
And btw, yes, old cs2d could be hacked quite easily, but where not setting up this server, to play with fucken hackers. It'll be between professional players.

So anyway, if you can't run dedicated servers via linux. How can you run them?

old Re: 0104 on linux

ohaz
User Off Offline

Quote
there isn't even an official dedicated server for cs2d 0104. So you can't run one.

old Re: 0104 on linux

DC
Admin Off Offline

Quote
Quote
I wish you'd stop repeating "Play the latest version".

and I wish you would play the latest version (which offers the required features!) instead of fucked up versions.

once again: the old version is crap. a real dedicated server does not even exist! you have to run the server with the cs2d client on windows!

> run the game
> net game
> create game
> optional: check the dedicated server checkbox. this is no real dedicated server anyway because it's still the game with visual output and console. it just doesn't let you join a team (you will be on the server at spectator) when this checkbox is enabled
> play

old Re: 0104 on linux

Focus2D
User Off Offline

Quote
You can run dedicated server(s) via beta 0.1.0.4.

Here are a few in-game screenshots, which were played in dedicated servers:

IMG:https://i216.photobucket.com/albums/cc81/diamond_xr6/th_225k-1.png


IMG:https://i216.photobucket.com/albums/cc81/diamond_xr6/th_150k-1.png


IMG:https://i216.photobucket.com/albums/cc81/diamond_xr6/th_fdfs-1.png



IMG:https://i216.photobucket.com/albums/cc81/diamond_xr6/de_inferno25313675-1.png


If it weren't a dedicated server, i wouldn't be able to see everyones ping. Also look at the last screeenshot, see when you type the word "top" you get the top3 highest ranked players in that server.

Now you cannot do that, via the steps you mentioned above, on how to run a dedicated. So explain that..

PS: I do play the latest version off cs2d. But from time to time, i like to play some real competitive CS:2D. Where latency, isn't a problem..

old Re: 0104 on linux

DC
Admin Off Offline

Quote
latency is the same problem in 0.1.0.4. it has no techniques against high pings.

there is a spectator on this server (with empty name?) which is probably the server hoster.

it is possible that there are custom made, not official dedicated server programs. it might also be a modified version of the original source code. no idea.

old Re: 0104 on linux

Flacko
User Off Offline

Quote
Focus2D, you should stop being so imperative.

The old CS2D used some weird kind of P2P connection between the server and players, so it was easy to hack because you could change your health on the client side and then the server would change it too.
This way you would only get hurt if you see on your screen that a player shot you, which may get a bit frustrating for some players.

old Re: 0104 on linux

Lee
Moderator Off Offline

Quote
3rr0r wrote a closed source implementation of the 0104 protocol (which I is essentially the same as the 0100 protocol that was open source) which he then entrusted to TMK to create a more feature abundant implementation:

http://failboat.me/dedi.zip (This is a near replica of our [TGV] Ranked server back in the summer of 2008 )

Note that this version requires Python 2.5 since the .pyc file only embeds the 2.5.4 magic.

I have hence written my own implementation of the 0104 protocol on top of 3rr0r's workflow, which should integrate seamlessly with his work:

http://github.com/leegao/Open2DServer

Again, as via the above suggestions, these versions are outdated.

old Re: 0104 on linux

Jermuk
User Off Offline

Quote
Lee has written
3rr0r wrote a closed source implementation of the 0104 protocol (which I is essentially the same as the 0100 protocol that was open source) which he then entrusted to TMK to create a more feature abundant implementation:

http://failboat.me/dedi.zip (This is a near replica of our [TGV] Ranked server back in the summer of 2008 )

Note that this version requires Python 2.5 since the .pyc file only embeds the 2.5.4 magic.

I have hence written my own implementation of the 0104 protocol on top of 3rr0r's workflow, which should integrate seamlessly with his work:

http://github.com/leegao/Open2DServer

Again, as via the above suggestions, these versions are outdated.


Anyone wrote a implementation for the actually version, but I think he won't release it.

old Re: 0104 on linux

Focus2D
User Off Offline

Quote
Lee has written
Again, as via the above suggestions, these versions are outdated.


I've got a working serverlist, and over 20 players who are ready to play.

Thanks for your help anyway.

Oh and DC, you cannot see the server name in the screenshots, because i cut them out along time ago, so they can fit into my forum, without stretching the page.

old Re: 0104 on linux

DC
Admin Off Offline

Quote
Focus2D: you probably got me wrong. I was never talking about the name of the server. I was talking about the name of the spectator (it says Spectators (1 Player) - but there is no name in the list below).

old Re: 0104 on linux

Lee
Moderator Off Offline

Quote
Quote
I've got a working serverlist, and over 20 players who are ready to play.


TMK's server is closed sourced but can be hacked to be used with custom serverlists:

Here are the methods needed for setup and teardown+validation:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ip = ""
def key(ip = ip):
	add = ip.split(".")
	key = (((((int(add[0]) * 3) + (int(add[1]) * 8)) - int(add[2])) + (int(add[3]) * 5)) - 9346)
	return key

def register(port):
	global ip
	try:
		ip = urlopen(usgnhost + "sv_save.php?game=Counter-Strike%202D&port=" + str(port)).read()[2:]
		return 1
	except:
		return 0

def shutdown(ip = ip):
	try:
		urlopen(usgnhost + "sv_kill.php?game=Counter-Strike%202D&ip=" + ip + "&key=" + str(key(ip)))
		return 1
	except:
		return 0

You need to boot TMK's beta server alongside this script and set Svusgnregister at 1000 (1000 hours) (either as a different process or integrated as a parallel thread.

old Re: 0104 on linux

FlooD
GAME BANNED Off Offline

Quote
so lee... can u explain how to set up a 0104 server?
from what i see, the steps r:
1. install python
2. put the files on the server
3. run the server.pyc file

is that it?

old Re: 0104 on linux

Lee
Moderator Off Offline

Quote
The python version has to be specific, you need to download 2.5.x in order to run the .pyc file (only 2.5 and 2.4 were ever released).

Also follow the steps from the post above in order to register your server onto a custom serverlist.

old Re: 0104 on linux

Focus2D
User Off Offline

Quote
DC has written
Focus2D: you probably got me wrong. I was never talking about the name of the server. I was talking about the name of the spectator (it says Spectators (1 Player) - but there is no name in the list below).


Oh, i see what you mean.

In the older version, if you went into options>name and selected a special character without any numbers/letters, your name would show up completely blank as shown below:

IMG:https://i216.photobucket.com/albums/cc81/diamond_xr6/th_1-34.png


IMG:https://i216.photobucket.com/albums/cc81/diamond_xr6/th_2-27.jpg
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview