1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

Programming / Coding for Source

  • Quakis
  • June 16, 2007 at 6:32 PM
  • Quakis
    • June 16, 2007 at 6:32 PM
    • #1

    I'm willing to go learn as much as a can for modding the Source engine and coding is something else that'd be useful, it's best I start now than never. Just to be sure, what language does it use? C or ...? (I haven't look into it much but I can't get any decent search results for "Source Coding" etc)

    Secondly any recommended resources to get started I guess - apps/tools/websites? I'm mainly looking into doing the gameplay side of things just to note. Any help would be apprieciated to push me in the right direction, I'm dedicated to give it a go.

    (and don't give me lectures on how hard, etc whatever might be either...)

  • skdr
    • June 16, 2007 at 6:40 PM
    • #2

    http://developer.valvesoftware.com/wiki ... rogramming

    http://developer.valvesoftware.com

  • Skjalg
    • June 17, 2007 at 1:52 PM
    • #3

    Great that you are starting :]

    I think the language for coding for source (and most other games) is c++. But if you've already looked at some c, its not that far off I actually suggest you start with the small tutorials that skdr posted where you edit some weapons ingame etc... that will definatly get you hooked

  • Quakis
    • June 17, 2007 at 5:26 PM
    • #4

    Just installing all the needed files right now. Although different, I'd been working with the CON scripting in Duke3d/Eduke32 quite a lot recently and got the hang of it - but should still develop on it for my mods - and enjoy working with it. Math related questions and exams I seem to enjoy working the answers out for compared to those writing papers. Hopefully I can get into this as well, expecting fustrations, but once I get the basics it's really just advancing my knowledge. I just hope I can compile without any problems.

  • BaRRaKID
    • June 18, 2007 at 11:46 AM
    • #5

    http://forum.interlopers.net/viewtopic.php?t=16895

    http://forum.interlopers.net/viewtopic.php?t=14587

    Those two tutorials might help. If you're just starting with source modding i recommend to visit the interlopers.net tutorials section, since they (we) have almost everything you will need

  • Quakis
    • June 18, 2007 at 1:42 PM
    • #6

    Cheers for the response, tutorials look useful!

  • R_Yell
    • June 18, 2007 at 4:07 PM
    • #7

    Probably you will want to subscribe hl coders list, with valve staff like Mike Durand, that's where the real action is

    http://list.valvesoftware.com/mailman/listinfo/hlcoders

    Or just browse all the messages, lot of interesting info there.

    http://www.mail-archive.com/hlcoders@li ... tware.com/

  • Wunderboy
    • June 19, 2007 at 1:37 PM
    • #8

    Couple of tips from someone who's been there, done that...

    Source requires C++ and either Visual Studio 2003 or 2005 to compile. I used 2003 with the first codebase and 2005 with the second. Apparently it will work with the free Express editions but it requires some extra work to get your build environment set-up.

    HLCoders can be useful but be warned that people can be a bit "elitist" at times. ALWAYS check the archive to see if your questions already been asked before posting (http://www.mail-archive.com/hlcoders@li ... tware.com/) because sometimes you'll get a rather rude response if you ask about something thats come up before. Also be warned that any "noob" type questions will probably get you a reply like "go read a C++ book".

    Best advice is when asking a question be as clear as possible about your problem, show proof that you have tried to solve it yourself (and aren't just asking for someone to do it for you) and ask in an intelligent manner. Posts like that generally get the best responses.

    Oh and yeah, tutorials. Some of them can be quite out of date as they were posted for the first SDK Codebase and subsequently don't work with the second SDK code release. Be aware of that before you start copy and pasting. To get the most value from a tutorial, don't actually copy it blindly, read it, comprehend what it's doing and try to implement the idea yourself using the example code as a guide. Not only will you get less bugs but a greater sense of achievement if you've adapted the code to your own needs and learned something along the way.

    Don't forget the VERC forums which have been closed and moved to steampowered. Theres lots of stuff/discussions there which can be useful.

    Old: http://www.chatbear.com/board.plm?b=390

    New: http://forums.steampowered.com/forums/f ... .php?f=191

    And last of all - the SDK is *BUGGY*. Expect a lot of hair pulling trying to figure out why wierd stuff happens or stuff wont compile.

    Good luck!

  • Quakis
    • June 19, 2007 at 4:55 PM
    • #9
    Quote

    HLCoders can be useful but be warned that people can be a bit "elitist" at times. ALWAYS check the archive to see if your questions already been asked before posting (http://www.mail-archive.com/hlcoders@li ... tware.com/) because sometimes you'll get a rather rude response if you ask about something thats come up before. Also be warned that any "noob" type questions will probably get you a reply like "go read a C++ book".

    Thought as much about the "elistism" - I'll probably only post when I really need to. Majority of the time I prefer to figure out stuff myself - better understanding and satisfaction of doing so - Again it's like that with Eduke32 CON coding. Right now I'll do what I did to learn the former by reading through tutorials, understand what means what, do practical stuff throughout my understanding - again like I did with the previous (of which I'll still do as well)

    Quote

    Oh and yeah, tutorials. Some of them can be quite out of date as they were posted for the first SDK Codebase and subsequently don't work with the second SDK code release. Be aware of that before you start copy and pasting. To get the most value from a tutorial, don't actually copy it blindly, read it, comprehend what it's doing and try to implement the idea yourself using the example code as a guide. Not only will you get less bugs but a greater sense of achievement if you've adapted the code to your own needs and learned something along the way.

    No need to worry about that, it's pretty much what I do when working with Eduke32 CON coding, you won't learn anything without doing it yourself and figuring out problems your having. On another note typing out the lines rather than copying helps get used to writing code out a lot more (well, I already have with CON, just need to get used to C++ now) I've been reading through some tutorials on cprogramming.com about C++ (no experiments yet) and got quite a little bit of knowledge compared to when I first looked at the codes throughout the source files.

    Pretty much I've had a bit of experience with coding in another language, so learning another shouldn't be too hard (and the fact it's easier to understand than it did some two years ago when I couldn't understand coding for... hell)

    Quote

    And last of all - the SDK is *BUGGY*. Expect a lot of hair pulling trying to figure out why wierd stuff happens or stuff wont compile.

    Cheers, I'll keep that on mind. Thanks for the response.

  • Psy
    • June 19, 2007 at 5:04 PM
    • #10

    Good luck. I couldn't get my head around C++.

  • Defrag
    • June 19, 2007 at 5:19 PM
    • #11

    Here's a good starter for C++:

    Teach Yourself C++ in 21 days (a complete lie, but it's still a decent starting point and deals with a lot of C++'s main features). Click.

  • Wunderboy
    • June 19, 2007 at 5:24 PM
    • #12
    Quote from Psycho

    Good luck. I couldn't get my head around C++.

    No-one ever believes me when I say this but it's true. I learnt C++ by looking at the source code of HLMV and typing just about every keyword into google to find out what the functions did.

    I admit, I had years of previous programming language experience like Visual Basic, Z80 assembler and various C syntax scripting languages before I started but it was still "fun".

  • Psy
    • June 19, 2007 at 6:15 PM
    • #13

    I think I might use this guide to learn some C++ over the holidays. I could do with something else to do other then mapping and I enjoy learning something new.

    What program do I have to download?

  • Skjalg
    • June 19, 2007 at 6:46 PM
    • #14

    Visual Studio 2005 <3

  • Quakis
    • June 19, 2007 at 8:41 PM
    • #15

    Just to get this out of the way, I have Visual Studio 2003 installed here but any possibilities of running to problems?

    Edit;

    Quote

    Here's a good starter for C++:Teach Yourself C++ in 21 days (a complete lie, but it's still a decent starting point and deals with a lot of C++'s main features). Click.

    If I'm not mistaken, if thats a copy of the book from Sams, I have that in book form (third edition) I've been scanning through it recently and might go through it at some point - my dad got it cheap from a carboot atleast two years ago - but I'm finding some stuff on the site I mentioned ealier pretty useful too. Thanks anyway (then again, having it in digital form can be useful)

  • Kakburk
    • June 20, 2007 at 5:58 PM
    • #16

    I think there's a possability there will be problems trying to compile your code with the 2003 version. I'm not completly sure but that's my guess. However I think there says something about it in the HL2 coding wiki and that there are fixes to download to the SDK. But try before you start searching, I might be misstaken and it's unecessary for you to search fixes which don't actually exist. ;P

  • Psy
    • June 20, 2007 at 6:03 PM
    • #17

    I'm downloading the one of this page.

    http://%7boption%7d

    The C++ one.

  • Quakis
    • June 20, 2007 at 9:05 PM
    • #18
    Quote from Kakburk

    I think there's a possability there will be problems trying to compile your code with the 2003 version. I'm not completly sure but that's my guess. However I think there says something about it in the HL2 coding wiki and that there are fixes to download to the SDK. But try before you start searching, I might be misstaken and it's unecessary for you to search fixes which don't actually exist. ;P

    I gave a few compiles before and it loaded up fine, even some simple weapon changes took affect. Let's just hope I don't run into compile problems due to version number in future!

  • Zacker
    • June 21, 2007 at 8:48 PM
    • #19

    VS 2003 giving problems? Sounds unlikely to me as I still believe it's the official supported IDE for the Source SDK.

  • wacko
    • June 24, 2007 at 2:46 AM
    • #20

    both 2005 and 2003 are supported now as of last October. if you load up the wrong sln file in the wrong IDE you will run into issue.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  2. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  3. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  4. Any of the old guard still around? D:

    Thrik
    June 20, 2026 at 10:11 PM
  5. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  6. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  7. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  8. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  9. Classic Maps Reborn For CS2

    SillySpaceCat
    May 31, 2026 at 10:33 PM
  10. [CS2] Dvina

    Pulbusha
    May 29, 2026 at 5:54 PM

Users Viewing This Thread

  • 2 Guests
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™