User:Reacheround
HL2MP Dev Notes
In order to root out any and all issues that crop up from building and running a HL2MP mod, I will document the steps taken. These steps will apply to VS.NET 2003.
Conventions
Throughout these notes the following keywords will be used. Make note of their definitions:
- SRC_LOC - location of the source code for your mod (ie. C:\code\MyMod)
- MOD_LOC - location of the mod itself (ie. C:\Steam\SteamApps\SourceMods\MyMod)
Creating the mod
- Crank up the Source SDK and Create a mod (choosing to modify Half-Life 2 Multiplayer)
- Open the SRC_LOC/src/Game_HL2MP-2003.sln solution and build it (get some coffee :p)
- Make a map (this is documented in many places so the ambitious can search around for a tut, and the lazy can just go here) nothing fancy, a single room with a light and an info_player_deathmatch will suffice
- Right-click your new mod link in the Steam window, it should be labeled Half-Life 2 DM (this label is changed in MOD_LOC/GameInfo.txt) and select Create desktop shortcut. Once the shortcut is made, right click it and select Properties. At the end of the target field, add: -dev -console -allowdebug.
- Run your mod
Console errors
When you are at the menu, the only console error you should see is that maplist.txt is missing. Go ahead and select Create Server, select your map and select Start. The first assert you get is in ai_activity.cpp. Check here for the fix. The next assert complains about IsFrameLocking(). A fix for that is also on the known issues list. After ignoring these, you'll see your mod's splash screen (in wonderful missing-material-checkerbox). Click OK and voila, your map (the textures on the physcannon are probably missing too).