=X=Master HeX Posted November 28, 2003 Share Posted November 28, 2003 What in god's name were they thinking when they moved off of .vm files and went to .dll files. Now, as far as I can tell, their little readme tutorial shows you how to make the dll files for windows servers... How in the world do you compile the linux .so needed for linux dedicated servers? Link to comment Share on other sites More sharing options...
=X=Master HeX Posted November 28, 2003 Author Share Posted November 28, 2003 Answering my own question: http://divoid.net/downloads.html This person was kind enough to make a patch file for the game directory source code. Just download it and throw it in your game folder then use the patch command with it to patch the code. A make will make the so file needed for linux dedicated server. On a side note I can't get it to compile under cygwin. It errors out when attempting to make all of the .o files. Any assistance would be wonderfull. Link to comment Share on other sites More sharing options...
Wudan Posted November 28, 2003 Share Posted November 28, 2003 You might be the only one in that boat. However, it should be noted that the Win-compiled DLLs will run on a Linux Dedicated Server. I'm not compiling with MSVC, I'm attempting to compile with MingW, which is Minimalist Gnu for Windows, so I'm sort of in the same boat as creating my own project and/or makefiles. Link to comment Share on other sites More sharing options...
razorace Posted December 1, 2003 Share Posted December 1, 2003 So how do you run .dlls on the linux dedicated server? I never use Linux and need instructions so I can help people that ask. Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted December 1, 2003 Share Posted December 1, 2003 The good thing is, we are all going to learn something new :-) Extra creases in the brain rule! I'm pretty much in the same boat as all of you. I really think they should have kept the "vm" format, was much easier for us. In any case, if you guys find out how to do this, other than those patch files, it would be much appreciated. Take Care! Link to comment Share on other sites More sharing options...
Leg0r Posted December 3, 2003 Share Posted December 3, 2003 has anyone tried using win compiled dll's on a linux dedicated server? need confirmation that it works. if it doesnt work, is there an easy way to convert win compiled dll's to the those linux so's? i guess there isnt :\ Link to comment Share on other sites More sharing options...
Janos Oudrin Posted January 6, 2004 Share Posted January 6, 2004 The patch is good indeed, but the Makefile needs tweaking. For example, you need to add -DFINAL_BUILD to the CFLAGS to get it out of a crash-galore halfway debug mode. After doing this I'm STILL getting a lot of crashes, especially in seige. When I compile the same source on my windows box using the Win32 Release config, it works just fine. Does anyone know which CFLAGS need to be added or removed? Link to comment Share on other sites More sharing options...
divoid Posted January 6, 2004 Share Posted January 6, 2004 maybe your using an older compiler than i am. i wrote the patch and tested it with gcc 3.2.3 and glibc 2.3.1. Ive run the mod in various game modes for weeks at a time and ive only had it crash on me once. so its most likely something on your end Link to comment Share on other sites More sharing options...
Emon Posted January 7, 2004 Share Posted January 7, 2004 Originally posted by razorace So how do you run .dlls on the linux dedicated server? I never use Linux and need instructions so I can help people that ask. Same way it does in Windows I assume. Loading a DLL shouldn't be any different from loading an SO, other than maybe the binary needing to support it, which JA obviously does. I know Wine can load a variety of Windows DLLs without a hitch. Link to comment Share on other sites More sharing options...
MasterSidious Posted January 28, 2004 Share Posted January 28, 2004 I tried the patch link and it didn't work . But anyway, is it possible to just use dlls for linux instead of so? Link to comment Share on other sites More sharing options...
[ONE]Mushroom Posted January 29, 2004 Share Posted January 29, 2004 The patch: http://www.lucasfiles.com/index.php?s=&action=file&id=367 You might like to check the two Linux threads I've posted here too. Link to comment Share on other sites More sharing options...
MasterSidious Posted January 29, 2004 Share Posted January 29, 2004 I put the .patch file in my codemp directory then ran this line: "C:\Program Files\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\codemp\jamp_game-2.patch" -p1 -i patch and it can't run it cause it doesn't know about that file type. What program should I use to run this? Link to comment Share on other sites More sharing options...
zERoCooL2479 Posted January 30, 2004 Share Posted January 30, 2004 Originally posted by Janos Oudrin The patch is good indeed, but the Makefile needs tweaking. For example, you need to add -DFINAL_BUILD to the CFLAGS to get it out of a crash-galore halfway debug mode. After doing this I'm STILL getting a lot of crashes, especially in seige. When I compile the same source on my windows box using the Win32 Release config, it works just fine. Does anyone know which CFLAGS need to be added or removed? This is what I have in my CmakeLists.txt file: -w -DQAGAME -D_JK2 -D__linux__ -DFINAL_BUILD -static with or without the static, its up to you... Good Luck Link to comment Share on other sites More sharing options...
MasterSidious Posted January 30, 2004 Share Posted January 30, 2004 Can't get it to load period. Link to comment Share on other sites More sharing options...
[ONE]Mushroom Posted January 31, 2004 Share Posted January 31, 2004 Originally posted by MasterSidious I put the .patch file in my codemp directory then ran this line: "C:\Program Files\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\codemp\jamp_game-2.patch" -p1 -i patch and it can't run it cause it doesn't know about that file type. What program should I use to run this? Execute the patch script under Linux. You'll need to run make under Linux too. Alternatively you could open up the file in a text editor, see for yourself the changes that need to be made, and make them manually. BTW, I am deeply skeptical of the possibility of a Linux server being able to use the Windows .dll Link to comment Share on other sites More sharing options...
MasterSidious Posted January 31, 2004 Share Posted January 31, 2004 How do I run the patch under Linux if I don't have a Linux system? Is this even possible? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.