Because the old “Compiling a mod under Windows” thread was not very well explained. i’m making a new one here now.
I included a link with the source also, wich i uploaded myself. The things i edited was only the workspace files,
as they are now directly openable in Visual Studo Express 2008.
On the bottom of this post i included some extra’s!
Also, maybe this is sometimes some ‘childy’ but i wanted to explain it as best, so even beginners can do it. (And we don’t get extra extra extra questions about where a particular button is)
I Also made a fast VIDEO show so if you don’t know where to click or something you can just look at it and watch what you do wrong.
http://www.youtube.com/watch?v=PFcQCkEw-qw - Watch in HD only!
If you already have Visual C++ Express Edition (2008) or Visual Studio you can Skip Step 1
[anchorlink=#step1]Step 1) Downloading Visual Studio[/anchorlink]
[anchorlink=#step2]Step 2) Getting the source[/anchorlink]
[anchorlink=#step3]Step 3) Editing some code to test[/anchorlink]
[anchorlink=#step4]Step 4) Building the source[/anchorlink]
[anchorlink=#step5]Step 5) Packing up[/anchorlink]
[anchorlink=#step6]Step 6) Going in-game[/anchorlink]
[anchorlink=#extra1]Extra 1) Adding MP40 to ALLIES and THOMPSON to AXIS[/anchorlink]
[anchorlink=#extra2]Extra 2) Getting ETPUB[/anchorlink]
[anchor]step1[/anchor]Step 1) Downloading Visual Studio - [anchorlink=#index]To Top[/anchorlink]
Download Visual C++ 2008 Express Edition here.http://www.microsoft.com/express/download/default.aspx
Scroll down to the bottom and select language you like and press Download.
Save it and run it (File is about 2,6MB).
Just press overall next and accept license just as normal setup.
There are 2 optional products: Microsoft Silverlight and SQL Server. I recommend NOT to install them by now, as you don’t need them and it takes extra time.
Now it’s downloading all the needed stuff - Wich is around 92MB.
After installing the installer asks if you want to register, it’s not necessary now but it’s an advice to do it because then you can use it for more then 30 days.
Congratulations, you installed Visual Studio 2008
[anchor]step2[/anchor]Step 2) Getting the source - [anchorlink=#index]To Top[/anchorlink]
When you are serious gonna make a mod, i recommend that you use the ETPUB source (found in Extra - 2) as this already contains killing sprees and much more. Also NoQuarter and Jaymod are build on it so
Download the Source HERE: http://www.unitedgamingresource.com/filebase/wolfet/WET_Source.zip
This is 100% trustable file, it’s just latests ET source but i converted it already to Studio 2008 files so you don’t have to do the conversion.
Extract the .ZIP anywhere you want, but a suggestion is NOT TO extract it in one of your ET directories.
Open up /src/wolf.sln
Oke, you can skip Step 3 if you just want to go now with no modification, else i will make an example of changing a clip size from a MP40. It is recommended, as you can quickly see later or it worked out or not.
[anchor]step3[/anchor]Step 3) Editing some code to test - [anchorlink=#index]To Top[/anchorlink]
Here I’m showing how to change the clip size from MP40 and Thompson to 32
Expand cgame and then expand source files and search for bg_misc.c
Press Control+G (Goto) and type 148. This will bring you directly to the line of the MP40 section.
Change the numbers 30 to 32 there. May also do this in line 153 (Thompson)
[anchor]step4[/anchor]Step 4) Building the source - [anchorlink=#index]To Top[/anchorlink]
Press right mouse on Solution ‘wolf’ and press Build Solution. Just ignore all the warnings for now, those doesn’t matter.
Now you just made a DEBUG build, if you are releasing your mod set the build option to Release.
[anchor]step5[/anchor]Step 5) Packing up - [anchorlink=#index]To Top[/anchorlink]
Testing your mod, you first have to pack up 2 files. It can be done with winrar or any other program that supports packing of ZIP.
The files to pack up are: cgame_mp_x86.dll and ui_mp_x86.dll those are both client files.
The qagame_mp_x86.dll is a server file, you don’t packup that file.
Just change the extension from .zip to .pk3.
Then just call it something like mymod.pk3 for now.
Now go to your ET installation, although it’s not recommend to use your ET-Play installation it’s possible.
Make a new directory, for example mymod.
Place the mymod.pk3 and the qagame_mp_x86.dll in your mod folder.
[anchor]step6[/anchor]Step 6) Going in-game - [anchorlink=#index]To Top[/anchorlink]
I’m not gonna do it the hard way so: make a extra shortcut to ET.exe and give it an extra parameter: +set fs_game mymod where mymod is the folder where you placed in your mod.
Then just press HOST GAME ans START SERVER.
Just join a team now, if you did step 3 you see now that the clip size is 32 in stead of reguler 30.
CONGRATULATIONS, You just build your own mod!
[anchor]extra1[/anchor]Extra 1) Adding MP40 to ALLIES and THOMPSON to AXIS - [anchorlink=#index]To Top[/anchorlink]
Oke here i will explain how to add MP40 to Allies and Thompson to Axis, it’s actually quite easy.
At first, expand game, then expand source files and open up bg_classes.c
Basicly under every WP_THOMPSON, add WP_MP40 and under every WP_MP40 in the next section add WP_THOMPSON.
Compile everything and redo earlier steps.
IN-game result is now this:
The code gets this:
[anchor]extra2[/anchor]Extra 2) Getting ETPUB - [anchorlink=#index]To Top[/anchorlink]
First install SVN: http://tortoisesvn.net/downloads,
Then make a new folder, for example ETPUB en press right mouse button->SVN Checkout
THen give this link: http://svn2.assembla.com/svn/etpub/trunk/
Open src/wolf-vs2k8.sln and do the Build step again.
Now goto the folder /Debug of /Release (Depending on what kind of build you made.
And voila - There are the .dll’s again!
Don’t forget to also include the etpub pk3 (client) and replace your dlls by them, else you have much missing files