|
You last visited: Today at 22:09
Advertisement
CO server in Linux VPS?
Discussion on CO server in Linux VPS? within the CO2 Private Server forum part of the Conquer Online 2 category.
05/27/2016, 13:32
|
#1
|
elite*gold: 0
Join Date: Mar 2016
Posts: 7
Received Thanks: 0
|
CO server in Linux VPS?
Title says it all, I tried running CO server in Debain using Mono but I kept getting random and stupid EntryPoint and DLLNotfound exceptions, so can anyone tell me how to do it if he managed to run CO server in Linux?
|
|
|
05/27/2016, 14:24
|
#2
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
Quote:
Originally Posted by iJoyce
Title says it all, I tried running CO server in Debain using Mono but I kept getting random and stupid EntryPoint and DLLNotfound exceptions, so can anyone tell me how to do it if he managed to run CO server in Linux?
|
If your source is using native DLLs which don't exist on Linux (e.g. Windows itself), it won't work.
|
|
|
05/27/2016, 14:31
|
#3
|
elite*gold: 0
Join Date: Mar 2016
Posts: 7
Received Thanks: 0
|
I downloaded a source because I'm new to Conquer private servers stuff, yes it is using kernel32 DLLs, so where can I get a source that doesn't use windows DDLs?
|
|
|
05/27/2016, 15:34
|
#4
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
|
Quote:
Originally Posted by iJoyce
I downloaded a source because I'm new to Conquer private servers stuff, yes it is using kernel32 DLLs, so where can I get a source that doesn't use windows DDLs?
|
I'm not aware of any server source that doesn't use windows DLLs.
Thats not to say they couldn't exist but in general all public conquer servers were intended for use with windows servers. The newest revision of COPS by cpt Sky would be the only that comes to mind that might be properly designed and would work. He's the only developer I've seen on here specifically building stuff with cross platform in mind with some of his other releases.
|
|
|
05/27/2016, 16:21
|
#5
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
|
Or you can just implement managed versions of those functions that were imported from kernel32.dll, e.g. BlockCopy instead of memcpy, and it should work nonetheless.
|
|
|
05/27/2016, 16:30
|
#6
|
elite*gold: 0
Join Date: Mar 2016
Posts: 7
Received Thanks: 0
|
Quote:
Originally Posted by KraHen
Or you can just implement managed versions of those functions that were imported from kernel32.dll, e.g. BlockCopy instead of memcpy, and it should work nonetheless.
|
I wanted to do this but, I couldn't replace the INI class, and it would take months to change the INI to MySQL or SQLite, and I kept getting access denied exceptions from logging so it was totally ****** up. I'll just buy a Windows VPS..
|
|
|
05/27/2016, 19:46
|
#7
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
Quote:
Originally Posted by pro4never
I'm not aware of any server source that doesn't use windows DLLs.
Thats not to say they couldn't exist but in general all public conquer servers were intended for use with windows servers. The newest revision of COPS by cpt Sky would be the only that comes to mind that might be properly designed and would work. He's the only developer I've seen on here specifically building stuff with cross platform in mind with some of his other releases.
|
Yes, I don't know any public source which doesn't relay on either Windows for the INI files, or kernel32, or OpenSSL... My newest revision of COPS v6 should work on Mono. At least it worked when I started cleaning it up... And all changes I've made were done with cross-platform in mind.
Quote:
Originally Posted by iJoyce
I wanted to do this but, I couldn't replace the INI class, and it would take months to change the INI to MySQL or SQLite, and I kept getting access denied exceptions from logging so it was totally ****** up. I'll just buy a Windows VPS..
|
Nini is simple and compatible with Mono.
|
|
|
05/27/2016, 20:02
|
#8
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
|
Quote:
Originally Posted by KraHen
Or you can just implement managed versions of those functions that were imported from kernel32.dll, e.g. BlockCopy instead of memcpy, and it should work nonetheless.
|
No disrespect to the OP but he did say he was new to co servers. making significant changes to the core library functions of a source is likely not something he's willing or capable of doing at this time.
A bit off topic here but what is the purpose behind you trying to get it working on linux? Just your preferred hosting method? Trying to save on hosting costs? etc.
To each their own of course and designing a server from the ground up with the intention of cross platform compatibility would be a good idea but I'm not convinced that with the current state of the conquer pserver 'community' it would be worth the extra headache.
|
|
|
05/27/2016, 20:16
|
#9
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,190
|
I would highly recommend against Mono C#. Mono is going to be worse than Java on Debian, if that helps put perspective on the performance of Mono. If you have another option, such as using CptSky's C++ source, than I would do that. Else, this isn't a problem that can be easily or elegantly solved with C#. If you use a C# source, you're going to have to run it on Windows to reduce complications.
|
|
|
05/28/2016, 15:09
|
#10
|
elite*gold: 0
Join Date: Mar 2016
Posts: 7
Received Thanks: 0
|
Quote:
Originally Posted by KraHen
Or you can just implement managed versions of those functions that were imported from kernel32.dll, e.g. BlockCopy instead of memcpy, and it should work nonetheless.
|
I would do that if the source is actually can be edited. I'm not new to C# but I'm new to CO stuff.
|
|
|
05/28/2016, 17:11
|
#11
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
|
Quote:
Originally Posted by pro4never
No disrespect to the OP but he did say he was new to co servers. making significant changes to the core library functions of a source is likely not something he's willing or capable of doing at this time.
|
He can just do a lazy version and implement his own memcpy function so it can have the same interface but under the hood it does managed work, I mean come on, this is a really easy change, he doesn't have to modify the project structure, or the involved algorithms, or anything. This is as far from rocket science as it gets.
|
|
|
05/28/2016, 19:38
|
#12
|
elite*gold: 67
Join Date: Aug 2014
Posts: 1,323
Received Thanks: 928
|
Quote:
Originally Posted by KraHen
He can just do a lazy version and implement his own memcpy function so it can have the same interface but under the hood it does managed work, I mean come on, this is a really easy change, he doesn't have to modify the project structure, or the involved algorithms, or anything. This is as far from rocket science as it gets.
|
Ehh I think chris was talking about the Blowfish implementation which for some reason relies on libeay or w/e.
You could use bouncycastle instead which is what chris's point was about.
And @  Mono is fast. especially the Math class is faster than the .net framework one.
|
|
|
05/28/2016, 19:57
|
#13
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,190
|
Quote:
Originally Posted by Xio.
And @  Mono is fast. especially the Math class is faster than the .net framework one.
|
Yuki, you need to watch how you say things. No, mono is not faster than .NET on a Windows system. It only *MIGHT* be faster on Linux in comparison to Windows and .NET because Linux is a better operating system and mono can be compiled to optimize itself for Linux. Even then, that still doesn't make it fast in comparison to other languages or necessarily to .NET on Windows under some cases.

If you can find a language that's actually slower than Mono C# on Linux, than I'd give you a pat on the back. Mono is not fast.
|
|
|
05/28/2016, 20:29
|
#14
|
elite*gold: 67
Join Date: Aug 2014
Posts: 1,323
Received Thanks: 928
|
Quote:
Originally Posted by Spirited
Yuki, you need to watch how you say things. No, mono is not faster than .NET on a Windows system. It's only *MIGHT* be faster on Linux in comparison to Windows and .NET because Linux is a better operating system and mono can be compiled to optimize itself for Linux. Even then, that still doesn't make it fast in comparison to other languages or necessarily to .NET on Windows under some cases.
If you can find a language that's actually slower than Mono C# on Linux, than I'd give you a pat on the back. Mono is not fast.
|
Nobody said a thing about running mono on windows. The OP explicitly said linux.
Also games are completely invalid comparisons. There is no proper driver support in linux. You will not see comparable performance on linux no matter what language was used to make the game in 98% of the time.
|
|
|
05/29/2016, 00:30
|
#15
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,190
|
Quote:
Originally Posted by Xio.
Nobody said a thing about running mono on windows. The OP explicitly said linux.
Also games are completely invalid comparisons. There is no proper driver support in linux. You will not see comparable performance on linux no matter what language was used to make the game in 98% of the time.
|
..... it's not actually a game..... they're benchmarks for algorithms across different languages. Also, you mentioned .NET, which is specifically Windows. Are you done?
|
|
|
 |
|
Similar Threads
|
Linux Server Auf Wunsch mit Ganz vielen Linux Betriebssystemen
11/09/2014 - Trading - 0 Replies
Hallo Liebe com
Ich vermiete einen RootServer mit Einer guten Hardware und Viel GB Ram und 4 000GB HDD
Technische Einzelheiten:
Komponenten
|
Warrock auf Linux ? (Kennt ihr auch andere Games für Linux)
09/11/2011 - WarRock - 7 Replies
Hallo,
kann man Warrock auf Linux spielen ?
Wenn nein kennt ihr Spiele genau wie Warrock die auch auf Linux gehen?
|
Linux (Debian) als Linux-Server?
05/13/2011 - Unix/Linux - 2 Replies
Hi!
Bevor ihr fragt: Ich habe in Google gesucht...
So ok, jetzt aber zu meiner Frage:
Ich weis das man den Apache auf Debian(Linux) per Kommandozentrale installieren kann. So da dacht ich mir: Warum mach ich nicht einen Computer der IMMER läuft und mach den zusätzlich als Server.
Naja, lange Rede kurzer Sinn: Ich will fragen ob man mit dem Apachen eine Website laufen lassen kann, wie das ist mit Php und mysql (also ob und wie man das installieren kann), und welches dann der...
|
All times are GMT +1. The time now is 22:09.
|
|