Topic: [HowTo] Compile 0.7 on windows
Just a quick instruction to how to compile teeworlds 0.7 on windows with Visual Studio since there are some changes since 0.6.
I will not explain what you need for compiling at all, things like Visual Studio and python etc. should be clear. This guide is for those who already know how to compile 0.6. In short, it's all about downloading SDL and Freetype.
You need:
Teeworlds source: https://github.com/teeworlds/teeworlds/ … master.zip
Bam 0.5: https://github.com/matricks/bam/archive/v0.5.1.zip
SDL: https://buildbot.libsdl.org/sdl-builds/ … o-4174.zip (you may want to download the latest version)
Freetype: https://codeload.github.com/ubawurinna/ … zip/master
1) Download and extract the teeworlds source. Download and extract and compile bam.
In order to compile teeworlds, we will now need SDL and Freetype.
2) Download and extract SDL. You will find an "include" and "lib" folder there. Copy them into your teeworlds source folder at \teeworldsSource\other\sdl.
3) Now go to \teeworldsSource\other\sdl\lib\win32\ and copy "SDL2.lib" and "SDL2main.lib" into the root direction of your teeworlds folder (\teeworldsSource\).
4) Download and extract Freetype. Also here you will find an "include" and "win32" / "win64" folder. Copy them into your teeworlds source at \teeworldsSource\other\freetype.
5) Now go to \teeworldsSource\other\freetype\win32\ and copy "freetype.lib" into the root direction of your teeworlds folder (\teeworldsSource\).
Now we are ready to compile, although we are not finish.
6) First, the commands in bam.lua have changed. Available are "game", "client", "server", "content". Default is "game" and means server, client and content.
Compile what you want but at first I recommend to do "game" because this will create client, server and - most important - your "/data/" folder (but you can also create the data folder with "content").
7) Second, the place where the finish stuff comes out has changed. It's not the root direction like in 0.6 anymore, you will now find it at \teeworldsSource\build\x86.
8) To start your compiled client or server, you need SDL2.dll and freetype.dll. Copy them from \teeworldsSource\other\sdl\lib\win32 and \teeworldsSource\other\freetype\win32 into \teeworldsSource\build\x86.
Finish! Now you should be able to compile and start teeworlds.
The most annoying thing is to copy SDL and freetype into the right folders, but with the links above and this instruction I hope it's more easy for you.