Forum Thread
by member
  Posts  
Couple of basic Source programming questions (Forums : Coding & Scripting : Couple of basic Source programming questions) Locked
Thread Options
epicbox
epicbox Mastermind
Oct 6 2012, 7:27pm Anchor

Hello there,

Like the title says, I would like to ask you about some very basic aspects of programming a mod in the Source engine.

I've followed the Valve Wiki Programming Guide kind of step by step. Some points so far:

  • My compiler choice was  Visual C++ Express 2010
  • I set up the debugging config
  • I set up the compile config

Now, I'm trying to implement a head-bobbing code into the mod. I've correctly replaced the codes.

Now my question goes for the final actions. Do I need to debug the code? Do I compile directly? When I compile and the code is right, will my mod ONLY have the head-bobbing? For experienced programmers this might sound like everyday's cake but I truly don't want to mess anything up, so I gotta ask the pros.

Thanks in advance.

Jok3r098
Jok3r098 “A computer is like air conditioning – it becomes useless when you open Windows” - Linus Torvals
Oct 6 2012, 9:12pm Anchor

if youve replaced the code, then the only thing left to do is test, if youre going to fuck up youd have done it by now :P, so compile it and run

epicbox
epicbox Mastermind
Oct 6 2012, 10:00pm Anchor

Gotcha, compile and run. I'll post the results.

So what is the point of debug, then?

--

Are you in or out?

Jok3r098
Jok3r098 “A computer is like air conditioning – it becomes useless when you open Windows” - Linus Torvals
Oct 7 2012, 11:53am Anchor

debug is for if you have problems, perhaps you should write some basic programs before diving straight into games and learn the tools like Visual studio

Oct 7 2012, 12:04pm Anchor

you debug your code to see where exceptions occur.
agreed with jok3r098, learn the visual studio tools it offers before starting out.

Edited by: atsebak

epicbox
epicbox Mastermind
Oct 7 2012, 6:05pm Anchor

I decided to do just that, will most likely help me a lot in the future.

Thanks a lot.

--

Are you in or out?

Reply to Thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.