Topic: [TUTORIAL] How to compile a source *windows only :(*
Hey Guys,
I saw a few topics about if others wanted to compile a source. So i thougth i just make a topic so they can do it themself. This tutorial is only for windows :( never tried it on other OS's. You may need admin account for installing the 2 programs, but compiling itself doesnt need admin.
Stuff you need:
1. Download and install Microsoft Visual Studio 2008 C/C++ Express
2. Download and install Python. the 2.7 version
3. Download and unzip bam 0.2.0
4. Download and unzip 'Source (zip)', or get a teeworlds mod source :P
Peparing your PC for Compiling.
1. Make sure everything is installed/unzipped
2. Open windows start menu, and open the programs menu. Then goto 'Microsoft Visual Studio 2008' -> 'Visual Studio Tools' -> 'Visual Studio 2008 Command Prompt' and open it :P.
3. Now type "cd " followed by the path to the unzipped bam folder. So if you unzipped it on your desktop you have to enter: 'cd C:\Users\ * YOUR USERNAME *\Desktop\bam-0.2.0'. And press enter after you typed it.
4. Now type 'make_win32_msvc.bat'.
5. You see a sort of list with all nonsense stuff, wait until you see 'Generating Code...' and wait until you are sure it's finished.
6. You did it!
Compile your source
1. First think about what you want to compile:
All Stuff, then remember 'release'
Only the server, then remember 'server_release'
(if you want a debug version replace release with debug)
2. Open windows start menu, and open the programs menu. Then goto 'Microsoft Visual Studio 2008' -> 'Visual Studio Tools' -> 'Visual Studio 2008 Command Prompt' and open it :P.
3. Now type "cd " followed by the path to the unzipped teeworlds source or mod source folder. So if you unzipped teeworlds source on your desktop you have to enter: 'cd C:\Users\ * YOUR USERNAME *\Desktop\teeworlds-0.5.2-src'. And press enter after you typed it.
4. Now type the path to the unzipped bam folder. So if you unzipped it on your desktop you have to enter: 'C:\Users\ * YOUR USERNAME *\Desktop\bam-0.2.0'. And add behind it: '\bam ' followed by the word you had to remember at step 1. After that press enter.
Example of the ending:
C:\Users\MassDestruction\Desktop\bam-0.2.0\bam server_release
5. Now just wait until that is finished, and you have compiled your first source!
I hope this help you guys! (btw, if you already have installed all stuff and prepared everything skip to 'Compile your source')
~~~ You may NOT edit, or use my work without asking permission at the topic of my work ~~~
if(!game.players[massdestruction]->get_character()) { game.send_chat_target(massdestruction, "You ever gonna learn to aim?") }