|
MENU
|
|
|
|
| Making a mod |
I've been asked many times how to make a mod. This dosen't bother
me to much until the person can not figure out what they are doing and
ask me over and over and over again what they are doing wrong.
Well anyway there are 2 programs that I have used to do this. But
im going to asume if you shelled out $100 for a program, you probably
know what you are doing. So this tutorial will be about dev-c++.
The best thing about it is it's free.
Getting started
Ok what you need to download:
Dev-C++ in a zip file
install that and then download this:
Update Dev-C++ 4.0 to v4.1
Now extract the update into the Dev-C++ folder.
Now you need the wolfenstein source code.
Wolfenstein Official SDK Install that and it will make a wolf_source folder in c:/
Ok now you are ready to start making a mod.
Go to the c drive and make a folder called mymod.
Now inside that folder make a folder called dev.
You will also need to go where the source code was installed and copy the folder "src" into the mymod folder.
Start dev-c++ and choose in the menu "File" the option "New project".
In the appearing dialog window choose "Empty Project" (scroll) and "C project".
After clicking "OK" another dialog window will appear. The name of the project has to be written in it.
the server project is named "qagame_mp_x86" .
Save the project files in the directory "c:\mymod\dev".
The automtically added empty source file has to be deleted.
Open the context menu by right clicking on the file symbol in the left
corner of the window and choose the option "Remove from project".
Adding the source files to the project
Open the context menu by right clicking on the file symbol in the left
corner of the window and choose the option "Add to project". When you are adding files you really only need all the ".c" files and g_local.h that should get you started.
Important: Don't add the file "bg_lib.c" to the project. Otherwise there will be errors when compiling.
You need to add the files in "c:/mymod/src/game".
Now add the files in "c:/mymod/src/game/botai".
You can hold down ctrl and select more then one file.
Bug fix
Ok once you have all the files added you need to go to ai_main on the left side.
Scoll down a little bit and comment out "#define MAX_PATH 144"(to comment out put // infront of it).
Don't give up now you are almost done.
Setting the project options
Open the menu "Project" and choose the option "Project options".
In the appearing dialog window choose the options "Create a DLL" and "Do not create a console".
Insert the following options in the field "Extra comiler options"(copy and paste):
-pipe -fsigned-char -DNDEBUG -O6 -mcpu=pentiumpro -march=pentium
-fomit-frame-pointer -ffast-math -malign-loops=2 -malign-jumps=2
-malign-functions=2 -fno-strict-aliasing -fstrength-reduce -DWIN32
-D_WINDOWS -DC_ONLY -DGAMEDLL
Compiling/Linking
Open the menu "Execute" and choose the option "Rebuild all".
The file will be compiled and linked and saved to the directory "c:\mymod\dev".
Well now you have the source code compiled and ready to code.
Here is something just to get you started:
Giving the medic a panzer
Have fun.
You can ask questions in the forum, I can't promise i will answer them all but i will do my best to help.
One thing I will not answer to is "How do i add ... like in s4ndmod",
but if you need help with something you can feel free to paste some code.
|
|
|
; |