]>
Setting up a Linux Dedicated server for Operation Flashpoint isn't the easiest thing to do, but I've seen worse.
First you need to install Operation Flashpoint, and Resistance onto a Windows PC and patch it up correctly to the latest version. You then need to copy the entire lot (well, not the entire lot, but listing what you don't need is pointless, as those files aren't significant in size), over to your Linux server.
Once all files have been copied across you need to extract the dedicated server files into the directory on your server. It's a shar file, so you will need shar utilities to extract everything. Now because Linux can distinguish between files with CaPiTaL letters, you have to convert every single file into lowercase. This would be hell, but the dedicated server comes with a nice little file called 'tolower'. Just run this like so:
./tolower
All your files should now be in lower case. Problem solved. You will find a file called "ofpserver" this is a control script that will allow you to start and stop the server. You will need to edit this in a text editor first to setup the correct parameters for your server. Here is a portion of mine:
OFP_DIR=/home/games/flashpoint CONFIG=${OFP_DIR}/server.cfg PORT=2302 PIDFILE=/home/games/ofp_server.${PORT}.pid RUNFILE=/home/games/ofp_server.${PORT}.run LOGFILE=${OFP_DIR}/log.${PORT}.txt SERVER=${OFP_DIR}/server
Once you have set this up you can start the server by typing "./ofpserver start". Other options are: stop, restart, status and check.
If you want this to start on your system startup you can link this into your startup scripts. Do this by typing:
ln -s
This should then start when your server is started.
You can configure your server to be a bit more specific, details on tweaking your server's bandwidth management can be found in the admin guide provided with the server files. Below you will find an outline of a server config file.
password = "mypassword"; // Server password passwordAdmin = "secretpassword"; // Admin password hostname = "Flashpoint - sponsored by aligrant.com"; // Server's name. motd[] = { "Welcome to my server", "Visit my site: http://www.aligrant.com/" }; motdInterval = 1; // Delay between showing each of the above lines voteThreshold = 0.3; // Vote ratio (1/3, or 33%) voteMissionPlayers = 1; // Minimum players to enable votes MaxCustomFileSize = 35840; // Max custom face/sound files MaxPlayers = 6; // Max players that can connect KickDuplicate = true; // Kick duplicate cd keys
For further fun you can setup your server to enable different settings. Create a sub-directory called "users/player" and then create a file called "userinfo.cfg". In this file you can setup all the things like difficulty settings. Here is a sample, the {1,1} means it's activated for both cadet and veteran mode. {1,0} would only be enabled in cadet mode.
diffArmor[]={1,0}; // extended armour diffFriendlyTag[]={1,0}; // show friendly tags diffEnemyTag[]={0,0}; // show enemy tags diffHUD[]={1,0}; // extended HUD info diffAutoSpot[]={1,0}; // automatically call in spotted enemies diffMap[]={1,0}; // mark enemies on map diffWeaponCursor[]={1,1}; // weapon crosshair (don't disable, it's impossible) diffAutoGuideAT[]={1,0}; // auto guide AT missiles diffClockIndicator[]={1,1}; // Clock diff3rdPersonView[]={1,1}; // Enabled 3rd Person view (much harder with is disabled) diffTracers[]={1,1}; // Turn on bullet tracers diffUltraAI[]={0,0}; // Turn on Super AI (ahhh, how much fun)