Project: Starfighter,
Being bored, I just looked through Wikipedia’s list of opens source games. A particular one caught my eye, Project: Starfighter. According to reviews it would be nice, and so I downloaded the source code. It compiled nicely, without any problems. SDL, SDL_image and SDL_mixer were required, but I happened to already have those packages.
I tried to run the binary that the makefile created, but it didn’t work:
[tim@adamant starfighter-1.1]$ ./starfighter
Couldn’t access the Project: Starfighter data file!
Cleaning Up…
Freeing Graphics
Freeing Background
Freeing Sounds
Resetting Lists
Freeing Font
Removing Mod
Closing Audio
Done Cleaning Up…
Thank You for playing Starfighter
[tim@adamant starfighter-1.1]$ ./starfighter
A googling for the phrase “Couldn’t access the Project: Starfighter data file!” was fruitless, and so I began debugging the source code, which was very neatly written. First, find were the error message string is. The source code is in the code/ sub-directory, so that’s where to search.
[tim@adamant]$ grep -R access code/
code/unpack.cpp: printf(”Couldn’t access the Project: Starfighter data file!\n”);
code/unpack.cpp: printf(”Couldn’t access the Project: Starfighter data file!\n”);
code/graphics.cpp: /* Lock the screen for direct access to the pixels */
After Google, grep is your best friend. In unpack.cpp, this error message is given when the filename denoted by the constant PACKLOCATION can’t be opened. I added a line to the code that printed the value of PACKLOCATION upon failing to read it, recompiled the source code and ran the game again.
[tim@adamant starfighter-1.1]$ ./starfighter
Couldn’t access the Project: Starfighter data file!!!
/usr/share/games/parallelrealities/starfighter.pak
I checked manually, and Project: Starfighter was right: that file didn’t even exist. However, there was a file called starfighter.pak in the main directory. I suppose the makefile just failed to copy it to its right location, and so I did it manually.
[tim@adamant starfighter-1.1]$ mkdir /usr/share/games/parallelrealities
[tim@adamant starfighter-1.1]$ cp starfighter.pak /usr/share/games/parallelrealities/starfighter.pak
After this, the game started up flawlessly. I’ll try to play it now.marie 14k teena mp31723 rocket mp3 error progood 20 mp3 reasonsmp3 medley 2112ninja mp3 21emon27468 22612 30333 24040 mp3 33394mp3 340ml zipable 504 mp3 dvd Mapanal porn stripperporn trailers analclips anal pornoportal anal sex pornopornpasswords analporn anal poundingcreampies anal porn sexsex anal stars porn Maphowto lg ringtonesringtones lg4650polyphonic your ringtones make ownmaking ringtones mp3martin luther jr and ringtone kingmassari ringtonesringtones mep freebuble free ringtones michael Mapcredit estate bad loans realus bad credit remortgage loannews payday loan industry for badbaldwin park loan officer californiahome loan savings rates bangor bankbank home loan ratebank operations loan informationloans california capital bank Map

umm…starfighter works well for me…debina 3.1 sarge..
Comment by al0cunit — September 5, 2006 @ 12:09 pm
sorry..debian ..
Comment by al0cunit — September 5, 2006 @ 12:10 pm
al0cunit: I suppose it works well for most people and that the error that occurred was fairly unique. It probably had something to do with the permissions on /usr/share/games.
Comment by Tim Johansson — September 5, 2006 @ 2:53 pm
yeah..it seems so…i must say that your blog is one of my favourites…
you did a great job…if you only could tell me …how to get started programming games…i know c++ pretty good…but i have never made a game…..what i’m asking is : which SDK should i use and how to get started…
Comment by al0cunit — September 10, 2006 @ 9:51 pm
al0cunit:
Actually, I’m currently writing a 2D platform game (Supermario clone) in C++. It uses SDL, just like Project: Starfighter, and development is going nearly flawlessy. The by far most important resource for me was the tutorials on Cone3D Programming, which has six great tutorials on C++ and SDL cooperating. I only read the first three tutorials, but that was enough to make a fully functioning game.
As to what SDK you should use, I’m not the right person to ask. I\m developing my game on Linux, and use only gedit (text editor) and gcc (compiler). I’ve heard only good things about Dev-C++ for Windows, though.
Good luck.
Comment by Tim Johansson — September 11, 2006 @ 5:55 pm
Ever heard of the eminent command make install?
every installation on gnu/linux is usally done using three commands if not using a package manager such as apt or portage.
These are:
./configure
make
and as root: make install
What you did seems to be a way around using make install :P
Comment by tobbez — September 12, 2006 @ 3:37 pm
Tobbez: That’s what I did, but the makefile failed to move the files. Perhaps I just forgot to su before make install.
Comment by Tim Johansson — September 12, 2006 @ 3:48 pm
@Tim Johansson
ahm..i started with allegro…what ya think..it’s easy to understand..anyway thank you for link…it helped me a lot..
Comment by al0cunit — September 13, 2006 @ 2:19 pm
Oxycodone extraction 93….
Oxycodone reactions….
Trackback by Oxycodone. — January 31, 2008 @ 8:18 pm