Plan for John Quigley
by John Quigley · 02/11/2002 (12:38 pm) · 4 comments
I've finished the port of Crime Force to Torque linux. It works fine, and the port required very minimal changes. It just goes to show that with a little careful coding, you too can make a cross platform Torque game that will garner billions and billions in mac and linux sales. :)
For the curious, in order to get Crime Force working on linux, I needed to update the Makefiles in order to include Doyoon's custom c++ files in the build. I also needed to fix a filesystem case sensitivity bug. Basically one of the scripts referenced a file by the name "crossHair.png", however the actual filename is "crosshair.png", and the linux filesystem is case sensitive so it can't find the file. Since this could presumably be a common problem, I modified the linux code so that if it can't find a file by the requested name, it will open the parent directory, read the filenames, and use the first case-insensitive match on the requested name.
I'm going to write up a short document describing how to get an existing game compiling under linux.
For the curious, in order to get Crime Force working on linux, I needed to update the Makefiles in order to include Doyoon's custom c++ files in the build. I also needed to fix a filesystem case sensitivity bug. Basically one of the scripts referenced a file by the name "crossHair.png", however the actual filename is "crosshair.png", and the linux filesystem is case sensitive so it can't find the file. Since this could presumably be a common problem, I modified the linux code so that if it can't find a file by the requested name, it will open the parent directory, read the filenames, and use the first case-insensitive match on the requested name.
I'm going to write up a short document describing how to get an existing game compiling under linux.
About the author
Recent Blogs
• Plan for John Quigley• Plan for John Quigley
• Plan for John Quigley
• Plan for John Quigley
• Plan for John Quigley
#2
>looks for some way to scrape up $100 for the engine so he can compile it in Linux< =)
02/12/2002 (8:47 am)
nice... very nice!>looks for some way to scrape up $100 for the engine so he can compile it in Linux< =)
#3
is that case insensitive code for filename's
gonna make it into the repository?
:)
thanks
02/12/2002 (5:13 pm)
Johnis that case insensitive code for filename's
gonna make it into the repository?
:)
thanks
#4
02/13/2002 (11:49 am)
i should check it in today or tomorrow. its only a partial fix, though; i still need it to handle case-insensitive directories too for it to be a complete fix. 
Torque Owner Tim Gift