Has anyone successfully compile the SP Project?

D

DefiNatelyDk

Guest
I've finally gotten the server.dll project to compile, but it still says it can't load any singleplayer maps. Also the dll seems way too small to be the right one.

Has anyone pulled this off? I've installed the SDK numerous times and I still get the same dll.
 
yes. Make sure you compile both the client.dll and the server.dll.
 
1) Make sure you've compiled both client and server dlls
2) Make sure they actually compile and you aren't getting errors
3) There are no maps that you can load to my knowledge. I think you have to actually move them to your mods map dir, but im not sure. I Know the new game level selection thing doesn't work.
And, yes, many people have compiled it :p
 
if you're using VS .NET 2003. highlight the whole project ('solution' (both dll trees)). then build solution. compiles everything and places it into C:/Mod/Mod directory. make sure you have the enviroment variable setup
 
Well it looks like I've finally done it. I'm using MSVS C++ 6.0 Enterprise SP5 and it has been a huge hassle getting it all to compile correctly.

Thanks for all the help guys, I really appreciate it. In the end I just had to make sure all of my converted Workspace and Project files were for the right kind of game, then just tweak the living crap out of the dsp files until I got them to work.

Man what a pain in the ass. I've done some serious mod coding for Serious Sam, but I've never had to mess with my build settings much.

I really can't believe someone at Valve didn't take the time to set it up for one of the most widely used compilers out there. How long would that have taken someone who knew what was up? Like an hour tops? Took me days, lol.

I guess a lot of the stuff I modified could have been done with the project->settings, but it's so much easier for me to see what needs to be done in code.

BTW, what the heck are all the header files doing in the Source Files folder? What a mess :rolling:
 
The header files are just there because it's Valve's style to put class template headers in with the actual definitions. :afro:
 
N3ur0 said:
The header files are just there because it's Valve's style to put class template headers in with the actual definitions. :afro:
Class template headers and definitions must be stored in the same file, or the compiler will have 2 definitions of everything.
 
My bad, terminology mixup. I suppose I don't know what the technical terms are (shame on me). I'm talking about the headers which define the class:
Code:
#ifndef _WEAPON_SMG1_H
#define _WEAPON_SMG1_H
class CWeaponSMG1 : public CHLMachineGun {
public:
void Reload( void );
};
#endif
And the actually source files which define the functions:
Code:
#include "weapon_smg1.h"

void CWeaponSMG1::Reload( void )
{
return BaseClass::Reload()
}
 
Sandman said:
Class template headers and definitions must be stored in the same file, or the compiler will have 2 definitions of everything.

I'm pretty sure that's not the case, my Serious Sam mod workspace for example:
 
Sand, if you only define the member functions once, you will have one definition + one declaration.
 
Back
Top