Help with running my mod plz

I

internacin

Guest
So, i did what someone else did in their post, and changed ...
bool PlayerHasMegaPhysCannon()
{ return true;

so now you always have the magacannon. So, i have my folder called c:\myMOd. I want to play my game now with this new cannon. What do i do?
 
compile your code and place your compiled stuff in your Half-Life2/ folder
 
In other words, make a backup of your original dll's (in the hl2 folder), and then replace them by your newly compiled dll's.

Enjoy !
 
So, I compiled that particular file i edited. Now what do i do? some specifics would be great!!! thx.
 
AKA. I need to know how to compile my entire mod. Something about DLL's. I"m new, so some detail would be much needed. thanks guys.
 
Ok, a quick run done:
1) You will need a C++ IDE (I personally use Visual Studio 6, but I hear Visual Stuido 2003 works)...
[Optional] 2) If you are using Visual Studio 6 you will need a converter which can be found some place around here, just look for the prjconverter...
3) Find the file Game_sdk.sln or whatever and build the client.dll

I dunno, I think that's right for the Single Player mods, right?
Dunno about multiplayer, and don't even know if this is right, but heyif it is, glad I could help.
 
Basically you need Visual Studio .Net 2003. (i confirm it works, and more it was meant to be used).
For VS6, you must convert the project, as said above.

Then you can open up your Game_Sdk.sln with VS and make changes.

To build everything, choose Build > Build solution.

To build a particular project (the solution contains 2 projects : client dll and server (hl) dll), choose Build > Build xxx
where xxx is the project you're working on (actually the project containing the file currently opened and active in VS).

Once built, use your run_mod.bat to test your modification.

I confirm too that it works for both SP and MP mods.
 
With MP mods, I have no Game_sdk.sln or Everything_sdk.sln files..
Is that right?
 
yes you have, directly under the src/ directory.

if you don't, i would suggest you recreate the mod from the Source SDK tool.
 
why would you tell him to replace his original HL2 dll?!!!!

Just open up th project in .NEt thing, press F7 to compile ..
to run, double click the run_mod.bat that steam created for you.

to load single player maps, bring up the console and type
map
(with a space after p)
and a dropdown list of maps will come, choose any map you like (but not the background_stuff ..)
 
Back
Top