How to make a CTF server

Post here if you need help setting up your server, etc.
Post Reply
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

How to make a CTF server

Post by .:Avl:.C10ud »

Well, I think I FINALLY figured out how to make a CTF server. Many people have asked how to do this and I think that this would be very helpful to many people out there.

So, where do we start? First, we need to get the armagetron source. The version we need for a CTF server is the 0.2.8 SVN branch. The command I used to get this was:

Code: Select all

$ svn co https://armagetronad.svn.sourceforge.net/svnroot/armagetronad/armagetronad/branches/0.2.8/armagetronad armagetronad
EDIT: Fixed- now 0.2.8 instead of 0.2.8.0

Note that the SVN version does not come with a prebuilt configure script so you will have to generate your own using bootstrap.sh which requires automake. Now that we have the code, we must download the pigsty patch. Make sure that the patch is in our armagetronad source folder, and then untar it.

Code: Select all

$ tar -xvf pigsty-061021.zip
Now that all the resources and the patch have been unzipped, we will patch our code.

Code: Select all

$ patch -p0 < pigsty-061021.patch
Now that we have patched our code, we can begin the build process. First, we will generate a configure script using bootstrap.sh. On FreeBSD, you may need to modify the bootstrap.sh script to point to the location of the automake tools since they may not be in your path, but in /usr/local/libexec/automakeXX and /usr/local/libexec/autoconfXX.

Code: Select all

$ ./bootstrap.sh
Once we are notified that we have a working configure script, we can configure. The code given would install in the user's home directory.

Code: Select all

$ ./configure --prefix=$HOME --disable-glout --enable-automakedefaults --disable-sysinstall --disable-etc --disable-useradd --disable-initscripts
Finally, the standard make and make install. You will obviously want to su to root if you are installing outside your home folder.

Code: Select all

$ make
$ make install
On FreeBSD, you may need to run as:

Code: Select all

$ gmake
$ gmake install
Next, copy the Your_mom directory from the SOURCE_DIR/resources to your new resource folder in $PREFIX/share/games/armagetronad-dedicated/resource. You can now modify the sample config files given in the SOURCE_DIR/config/examples. Now you should have a functional CTF server. All that's left is tweaking settings!

Hopefully this helps someone :D

EDIT: Many people including myself wanted a pre-patched version of the code, so I uploaded it here
EDIT: Fixed- 0.2.8 instead of 0.2.8.0
EDIT 4-20-07: Updated SVN and used Luke Jr's latest patch.
Last edited by .:Avl:.C10ud on Fri Apr 20, 2007 1:46 pm, edited 2 times in total.
Image
END OF LINE.
New England
On Lightcycle Grid
Posts: 25
Joined: Mon Oct 30, 2006 3:07 am

Post by New England »

great, i love it.

Is it for Mac, Linux, or PC?
Patriots Rule!
Common Sense.
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

well, this is source code, so it should run on anything u can compile it for. The instructions were given for a *nix system. I use Fedora Core 6 for my home system and FreeBSD for my servers, that process was tested on both. It should be easily adaptable for mac, and if you have windows, then you can probably build with mingw.
Image
END OF LINE.
User avatar
kyle
Adjust Outside Corner Grinder
Posts: 2004
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Post by kyle »

cool i added it to the wiki along with some settings

http://wiki.armagetronad.net/index.php/Sty

note:i did not have time to completely reformat it yet
User avatar
Z-Man
God & Project Admin
Posts: 11764
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Many thanks, that really is a FAQ you're answering here.
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

yes, i noticed. I've been wanting one forever and now i FINALLY got it figured out... sortof... well, here is my next problem. The thing crashes every few hours. None of my other servers crash (I run Flynn's Arcade #1, #2, and Ghostland). When I run my CTF server though, it crashes every few hours (just CTF server). It seems as if people spammed it or something? There are like 5 new bans each time it crashed. I'm not sure what's going on. any ideas?
Image
END OF LINE.
User avatar
Z-Man
God & Project Admin
Posts: 11764
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Hmm, no clue. Is the full code you uploaded the version you are running? If yes, a debug recording (without AIs, if possible) of the crash may be helpful. If it's really a spam problem, it would possibly affect everyone.
User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Post by ed »

Nice tutorial.
That's pretty much the way I set it up.
This version has been running CTWF for long time, it's also run ctf and styball without crashing, so I can't help you there, sorry.
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

yes, the code i uploaded is the code I used. The steps I put in the tutorial are the ones I used to build it on my FreeBSD system... I uploded my core dump here if it helps.

thx ed :D well, i guess i did it right then. I think i'll post that tutorial on the wiki.

I think it might be just my server. I am running it on a 500Mhz box built with my parts collection in my basement lol. A few weeks ago someone donated me their old 650Mhz system though, so i put that in as a mail server. I'm going to test it out on that one and see if it runs better until I get my new server together. I have a 2.2Ghz sempron and a MB but the BIOS chip is fried, so i got it cheap off a friend. I'll go on ebay and get a new chip for that and hopefully that should solve my problems lol. I'm really surprised though, how even a small box can perform when running FreeBSD. When I first started a year and a half ago hosting armagetron then I had my 2 servers running on a 100Mhz box with no noticeable difference from other servers :D
Image
END OF LINE.
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

one more thing, I'm not quite sure why the patch hasn't been applied to anything more recent than 0.2.8. The current version is 0.2.8.2.1. I'm going to try to patch 0.2.8.2.1 manually this afternoon. I'll post up a tarball when I verify that it is working.
Image
END OF LINE.
User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Post by ed »

It's the 0.2.8 branch. This is the most recent version of 0.2.8. that will become 0.2.8.3.
The next one up is 0.3 which is a different branch altogether.
(correct me someone if I'm wrong)

edit: I see you used branch 0.2.8.0, try 0.2.8 instead.
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

oh! ok... hmm... interesting. i accidentally checked out 0.2.8.0 first, and then tried 0.2.8 and they had the same revision number so i assumed they were the same... well, that explains alot. no wonder it didn't apply right to 0.2.8.2 lol. I'll go fix that now.
Image
END OF LINE.
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

k, fixed all that now in the above tutorial and on the wiki page. thx for spotting that ed :D sry im new to SVN's revision tracking stuff.
Image
END OF LINE.
Post Reply