Conquer Server running on Linux(Ubuntu)

12/01/2011 23:42 koh-lexus#1
Hey Guys,

im currently thinking about to start playing a bit with a ConquerServer.
Im still wondering bout that no guides are available to run one under a unix based System.

Is it possible to create a Conquer Server under Ubuntu and has maybe someone allready created a guide for ?

greetings
LeX
12/02/2011 04:17 pro4never#2
Write a custom source using Java! :D

There's the possibility you could re-write existing sources to not use any native calls and then run it on linux but support for .net isn't very good on that OS. Regardless, you're going to need to have some reasonable programming knowledge rather then following some guide and copy/pasting small changes to make it work fully on a linux distro.

Best of luck.
12/02/2011 05:50 Spirited#3
I'll convert one to Java when I have a free second. Finals are coming up so don't expect it soon.
12/02/2011 08:47 InfamousNoone#4
Quote:
Originally Posted by pro4never View Post
Write a custom source using Java! :D

There's the possibility you could re-write existing sources to not use any native calls and then run it on linux but support for .net isn't very good on that OS. Regardless, you're going to need to have some reasonable programming knowledge rather then following some guide and copy/pasting small changes to make it work fully on a linux distro.

Best of luck.
You know that .NET is more portable that Java now in terms of Linux and Mac because of the Mono project (It comes pre-installed with the latest revision of Ubuntu now even). Is this a joke? Unless this person is coding hardcore as using the 4.0 features like XAML (which Mono has stated they have no intention of supporting) then it will likely run fine on the mono platform.
12/02/2011 09:18 Spirited#5
Quote:
Originally Posted by InfamousNoone View Post
You know that .NET is more portable that Java now in terms of Linux and Mac because of the Mono project (It comes pre-installed with the latest revision of Ubuntu now even). Is this a joke? Unless this person is coding hardcore as using the 4.0 features like XAML (which Mono has stated they have no intention of supporting) then it will likely run fine on the mono platform.
^
There you go. So if you're using Impulse's 5165 source or NewestCOServer, you're good.
12/02/2011 10:17 KraHen#6
TBH I'd rather go with C++ on Linux, you can squeeze out pretty solid performance with the BSD socket API using a technique that is available only on this platform (hint given).
12/02/2011 13:15 koh-lexus#7
So based on Mono under linux it should be useable? Becouse mono is not a 100 % working with evey .net based application
12/02/2011 13:37 InfamousNoone#8
Let's put it like this. If you don't know what Mono is, you probably shouldn't even be using Linux in the first place.
12/02/2011 14:42 koh-lexus#9
i know what mono is, my question was how hard it will be to run it on it.

application like toomboy stickys or a small winkalender are 100 % working.
appication like paint.net are not .

so the will it work with more then less easy changes or will it be a nearly complette rewrite ?
12/02/2011 15:03 BaussHacker#10
Mono <3
12/02/2011 15:30 pro4never#11
Quote:
Originally Posted by InfamousNoone View Post
You know that .NET is more portable that Java now in terms of Linux and Mac because of the Mono project (It comes pre-installed with the latest revision of Ubuntu now even). Is this a joke? Unless this person is coding hardcore as using the 4.0 features like XAML (which Mono has stated they have no intention of supporting) then it will likely run fine on the mono platform.
I was under the impression that native calls really screwed over mono.
12/02/2011 15:54 BaussHacker#12
Quote:
Originally Posted by pro4never View Post
I was under the impression that native calls really screwed over mono.
And native calls are not necessary.
12/02/2011 16:04 pro4never#13
Quote:
Originally Posted by BaussHacker View Post
And native calls are not necessary.
True... but just about every source I've seen public on epvp uses at least a few native calls which is why I said he'd need at least a decent knowledge of C# versus just following a simple copy/paste guide to get it working on linux.


I ofc have virtually zero knowledge of linux but just seems the bulk of it was still at least semi applicable. Aka: I confuzd! :D
12/03/2011 02:32 InfamousNoone#14
Quote:
Originally Posted by koh-lexus View Post
i know what mono is, my question was how hard it will be to run it on it.

application like toomboy stickys or a small winkalender are 100 % working.
appication like paint.net are not .

so the will it work with more then less easy changes or will it be a nearly complette rewrite ?
Quote:
Originally Posted by InfamousNoone View Post
You know that .NET is more portable that Java now in terms of Linux and Mac because of the Mono project (It comes pre-installed with the latest revision of Ubuntu now even). Is this a joke? Unless this person is coding hardcore as using the 4.0 features like XAML (which Mono has stated they have no intention of supporting) then it will likely run fine on the mono platform.
^ ?????

Quote:
Originally Posted by pro4never View Post
True... but just about every source I've seen public on epvp uses at least a few native calls which is why I said he'd need at least a decent knowledge of C# versus just following a simple copy/paste guide to get it working on linux.


I ofc have virtually zero knowledge of linux but just seems the bulk of it was still at least semi applicable. Aka: I confuzd! :D
You're right, platform invoke does screw-over mono, but it's not like it's particularly hard to get around it. Here's an example (though memcpy is available on linux afaik).

Code:
	public static 
	#if !LINUX
		extern
	#endif
	int memcpy(void* dst, void* src, int length)
	#if !LINUX
		;
	#else
	{
	    // Simple implementation, in no way the most efficient.
            byte* ps = (byte*)src;
            byte* pt = (byte*)dst;
	    for (int i = 0; i < length; i++)
            {
                *pt = *ps;
                pt++;
                ps++;
            }
	}
	#endif
12/03/2011 15:39 Nullable#15
Quote:
Originally Posted by KraHen View Post
TBH I'd rather go with C++ on Linux, you can squeeze out pretty solid performance with the BSD socket API using a technique that is available only on this platform (hint given).
If you mean epoll(), then you should realize that Mono uses it whenever possible on Linux.