I tested it with compiling zlib and libpng from source. That worked for the dynamic link library (additional dll file), but i got a lot of errors while compiling it as a static link library (lib file). So i use it with the old zlib.lib / libpng.lib and disable SAFESEH for ref_gl at the moment. It's not the best solution, but enough for testing.
If anyone want to compile it (i installed the german version, so it is possible that the translation is not the best and some menus or options have other names):
1. Download and install
Visual Studio 2012 Express for Windows Desktop (
http://www.microsoft.com/visualstudio/eng/downloads#d-2012-express).
2. Get the paintball2 source code (Sourceforge CVS or downloads page).
3. Open the file
paintball2.vcproj (there may be an error message like "no program found to open this file", click OK and visual studio will start) and start the upgrade with OK. Visual studio shows you a migration log in your browser if it is done.
4. Go back to visual studio and change the
Solution Configuration to "Debug" (dropdown, under the menu bar).
5. Open the file
client.h [
Solution Explorer -->
Solution "paintball2" (2 projects) -->
paintball2 -->
Header Files -->
client.h]. Search "#define OGG_SUPPORT" (without "") and change it to "//#define OGG_SUPPORT" (without "").
6. Make a right click on
paintball2 [
Solution Explorer -->
Solution "paintball2" (2 projects) -->
paintball2] and go to
Properties. Then go to
Configuration Properties -->
General and change the
Output Directory from "..\debug\exe\" to "..\". Close the properties window.
7. Make a right click on
ref_gl [
Solution Explorer -->
Solution "paintball2" (2 projects) -->
ref_gl] and go to
Properties. Then go to
Configuration Properties -->
General and change the
Output Directory from "..\..\debug\ref_gl\" to "..\..\". Close the properties window.
8. Make a right click on
ref_gl and rename it to
ref_pbgl.
9. Open the file
string.h [
Solution Explorer -->
Solution "paintball2" (2 projects) -->
paintball2 -->
External Dependencies -->
string.h]. Search "#if defined(__cplusplus) && _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY" (without "") and change it to "#if defined(__cplusplus) && _CRT_SECURE_CPP_OVERLOAD_STANDA" (without "").
10. Search in the same file (
string.h) "#if defined(__cplusplus) && _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY" (without "") and change it to "#if defined(__cplusplus) && _CRT_SECURE_CPP_OVERLOAD_SECURE" (without "").
11. Make a right click on
ref_pbgl [
Solution Explorer -->
Solution "paintball2" (2 projects) -->
ref_pbgl] and go to
Properties. Then go to
Configuration Properties -->
Linker -->
Advanced and change the
Image has Safe Exception Handlers setting from "Yes (/SAFESEH)" to "No (/SAFESEH:NO)". Close the properties window.
12. Try to compile it.
Visual studio 2012 saves the project as paintball2.vcxproj instead of paintball2.vcproj. Use that new file (with x in the name) to open it again.