MOH Central

General Forums => General Chat => Topic started by: Elgan {sfx} on October 22, 2005, 06:33:10 PM

Title: linux?
Post by: Elgan {sfx} on October 22, 2005, 06:33:10 PM
some time in the future i will have to get linux it seems.

   

   i know nottttthing. SOoooooo

   

   i can run linux on here and windows right? i think me second hdd is empty actualy.

   

   Is linux processor specific? like mac will only run on its own hardware. windows will run on any, i think linux has different versions for different types of cpu?

   

   The reason isssss.

   

   i need to make a dll that will infact interact with the inside of mohaa, i can place this on servers and it would do stff like filter out text or whatever i can work out.  I have compiled a dll before but have enever compiled a whatever linux uses, a .fo ?  you cant use the same code either?

   

   i will need a linux box probably to texst the damn files, going to be annoying i can see it now:(.

   

   will have to write a dll version with easy code and then try and find meathods to do the same in linux and compile and then reboot in linux and then try it and then go back.

   

   maybe i should make future mods windows only until i know enough to try linux:D
Title: linux?
Post by: Card {sfx} on October 22, 2005, 08:40:57 PM
Elg,

   I have given in with linux servers(They WIN..LOL)....

   I had ALL my mods running on windows servers for over 1 1/2 years.....

   Then i went with clanservers(linux)

   Almost every single player map would crash.....

   I tried FOREVER to get the qconsole log working(they had to add it to command line)..so anything i did i was at the mercy of the GSP.....

   

   Then when FINALLY i got it working....NO useful info in the qconsole log...DAMN!!!..LOL

   (maps would crash no info in the log...)

   So i went back to windows....SAME files.......NO crashes........

   Yes you can run windows and linux on same box( I THINK)...different HD's i guess

   

   My guess with the linux issue is linux is NOT forgiving with the errors that come from single player maps....
Title: linux?
Post by: Rookie One on October 23, 2005, 02:03:09 AM
The reason is, the Linux port of the MoHAA server is unofficial. You can't really expect it to work properly.

   

   You don't even need a second hard drive for Linux, there are some distros that work from a FAT32 partition (e.g. ZipSlack - my first one, a light version of Slackware, good for learning stuff). If you want a true Linux, though, you need to create a new partition.

   

   The DLLs' substitute in Linux are .so files (shared objects). And no, native wincrap code will not work in Linux. All DLL stuff involve wincrap API. I'd say you get the source of any Q3-engine based game (or the Q3 code itself) and see how they done it. Basically, they switch the right code on by #ifdefs depending on the target platform, and every one of them (the code blocks) is totally different.

   

   Linux will work on any platform that has a native port of the GNU Compiler Collection (which is basically every platform there is - from Amiga and SGI to i386 and x64), so don't worry. ;) There are some distros (Gentoo in particular) that even compile the kernel during the installation according to your CPU to ensure maximum performance (well, I always install the standard kernel and then download the newest source from www.kernel.org, configure, compile and install it on my own anyway ;) - it really can speed the system up!).
Title: linux?
Post by: Elgan {sfx} on October 23, 2005, 05:17:01 PM
hm ok cool.

   

   are the mohaa;sh linux files proted also?

   

   who ported them, how :S

   

   when it comes to it, prob will just have to find out how to stuff in windows then ask on forums how to achieve the same in linux .so and mess:S
Title: linux?
Post by: Rookie One on October 24, 2005, 08:05:18 AM
Spearhead server has also been ported, but not the client, while there is both a client and a server available for Allied Assault. The ports have been done by Icculus (http://www.icculus.org/), I have no idea how he does it but he has already ported quite a few games to Linux. I guess he has some sort of exclusive source access.
Title: linux?
Post by: Elgan {sfx} on October 24, 2005, 05:56:27 PM
hm thanxc for the info

   

   that guy is '1337'