Compeiling source files into ...... anything

Compeiling source files into ...... anything

Re: Compeiling source files into ...... anything Posted by Le Chief on Mon Aug 20th 2007 at 2:19am
Le Chief
2605 posts
Posted 2007-08-20 2:19am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
This is really going to sound n00by. How to I compile the source files into say "hl.dll"? I have 2.3 source sdk and I'm just experminting with the code and I cant figure out how to compile into a simple file. I know how to use my compiler ........ I think I am adding the wrong files or something.
Gold Source is in c++ right? Not MSVB?
Aaron's Stuff
Re: Compeiling source files into ...... anything Posted by bengreenwood on Wed Oct 31st 2007 at 6:05pm
bengreenwood
63 posts
Posted 2007-10-31 6:05pm
63 posts 26 snarkmarks Registered: Aug 14th 2007 Occupation: Student Location: England
I'm in a similar position to you regarding being a noob at programming for Half-Life. I managed to get the HPB Bot template compiling though, using VS Express. I've messed around changing a few little things, too. That's about as far as I've got. If you want me to say how I did it, if that'd be any use, I'll write out what I did to get it to work, with links etc.
Re: Compeiling source files into ...... anything Posted by Le Chief on Thu Nov 1st 2007 at 5:53am
Le Chief
2605 posts
Posted 2007-11-01 5:53am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
Yeah sure man :smile: Well I dont have this problem anymore, I know how to code now, just not very good, have done some really cool things though for my mod.

But anyway, its nice to know there is a half-life coder on this site.

So how'd you do it?
Aaron's Stuff
Re: Compeiling source files into ...... anything Posted by bengreenwood on Thu Nov 1st 2007 at 8:40pm
bengreenwood
63 posts
Posted 2007-11-01 8:40pm
63 posts 26 snarkmarks Registered: Aug 14th 2007 Occupation: Student Location: England
Well it sounds like you're quite a bit more advanced than me then. This bot thing is pretty cool, though. You can download the template (you also need the bot itself installed) from the bottom of this page:http://hpb-bot.bots-united.com/hpb_bot.html

I found it pretty easy to set up. First I just downloaded VS Express here: http://msdn2.microsoft.com/en-us/express/default.aspx

Then I got the platform SDK: http://www.microsoft.com/downloads/details.aspx?familyid=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en

Then did the following:
Goto Tools->Options. Expand "Projects and Solutions" on the left and click on "VC++ Directories"

Choose "Include files" from the "Show directories for:" drop down in the top right. Add these two entries (click on the folder looking button):
C:\Program Files\Microsoft SDK\Include
C:\Program Files\Microsoft SDK\Include\mfc

Choose "Library files" from the "Show directories for:" drop down in the top right. Add this entry (click on the folder looking button):
C:\Program Files\Microsoft SDK\Lib

Basically I did all that and got it working pretty easily. It seems like a cool way to learn about programming bots. Obviously I'm learning how to code for HL as I mess around with it. You mind if I ask you some stuff about coding for HL?
Re: Compeiling source files into ...... anything Posted by Le Chief on Fri Nov 2nd 2007 at 12:52pm
Le Chief
2605 posts
Posted 2007-11-02 12:52pm
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
bengreenwood said:
Well it sounds like you're quite a bit more advanced than me then
haha, properly not. I'm a begginer just like you, I do get help though and am reading a coding book.

Ofcourse you can ask me stuff. I have a half-life coding tut on this very site, its just real basic, adding a zoom to the mp5.

And btw, I downloaded and played your mod, I'll send you a pm about it, but yes, I did get stuck in the toilet.
Aaron's Stuff