Results 1 to 8 of 8

Thread: scripting codes

  1. #1
    ... connecting
    Join Date
    Feb 2013
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    scripting codes

    can someone explain me what everything in a code means?
    maybe it'll help me to discover how to script myself!

    for example, just make a small code, and tell what everything means..

    thanks!

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Hi, its nice that you want to learn scripting, because its a very important skill in the changing world.

    You can read this first, though its pretty short: http://wiki.modsrepository.com/index...cript_Handbook

    If you want to learn programming seriously, learn C, then C++. After that CoDScript would be really easy to learn. You can learn CoDScript right away of course also.
    timescale 0.01

  3. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    pollo (9th April 2013),zwortbanjo (9th April 2013)

  4. #3
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by kung foo man View Post
    Hi, its nice that you want to learn scripting, because its a very important skill in the changing world.

    You can read this first, though its pretty short: http://wiki.modsrepository.com/index...cript_Handbook

    If you want to learn programming seriously, learn C, then C++. After that CoDScript would be really easy to learn. You can learn CoDScript right away of course also.
    It is not necessary to learn any other language before you tackle COD script. It is a really easy language to learn and is a fairly self-contained language, requiring no previous language skills. But like all computer languages it is one that has to be practised. Look at mods to learn how to script for COD. Look at stock GSC files. They also tell you the conventions of the language. But as I said, above practice. Write test mods. Write lots of them! It doesn't matter if they don't work, but what matters is what you learn from them. Enable log file and make sure you read the error reports in console_mp.log file. They taught me the most about COD scripting.

  5. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Of course scripting can be learned by try and error, but CoDScript has hard disadvantages:
    - no debugger
    - no professional books

    Any important language like C or C++ got the best debuggers on the market and a mass of good books - does that help learning a language? Yes!
    timescale 0.01

  6. #5
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by kung foo man View Post
    Of course scripting can be learned by try and error, but CoDScript has hard disadvantages:
    - no debugger
    - no professional books

    Any important language like C or C++ got the best debuggers on the market and a mass of good books - does that help learning a language? Yes!
    Yes, they have the help and books. But .... most C++ stuff does not pertain to COD script and so is irrelvant. It's a bit like arguing that PHP has more support because of its relevance to website design, but ultimately, if the program you are working on isn't PHP, then that's as much help as a chocolate teapot.

  7. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Quote Originally Posted by Tally View Post
    But .... most C++ stuff does not pertain to COD script and so is irrelvant.
    CoDScript is heavily influenced by C/C++. Of course not the hard features like templates and polymorphism, but all the fundamental basics of procedural programming.

    I remember my first days learning to program at age 13, being totally confused, what all this #include main for while etc. means, till I've readed through my book and got practice. And getting this practice with 5 lines examples and a good book for C explaining everything one by one is way easier, than jumping in the cold water of game scripting.

    Well, everybody can decide themselves how they want to start learning programming, but learning C/C++ first (or parallel in parts) is way more serious. Which CoD-Kickstarter ever even implemented a search algorythm? We see on what level the mods are. If something gets a bit more complex, they pass up, because they are lacking basics.

    Of course it takes more time to learn C first, but do we want quality or quantity?
    timescale 0.01

  8. #7
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by kung foo man View Post
    CoDScript is heavily influenced by C/C++. Of course not the hard features like templates and polymorphism, but all the fundamental basics of procedural programming.

    I remember my first days learning to program at age 13, being totally confused, what all this #include main for while etc. means, till I've readed through my book and got practice. And getting this practice with 5 lines examples and a good book for C explaining everything one by one is way easier, than jumping in the cold water of game scripting.

    Well, everybody can decide themselves how they want to start learning programming, but learning C/C++ first (or parallel in parts) is way more serious. Which CoD-Kickstarter ever even implemented a search algorythm? We see on what level the mods are. If something gets a bit more complex, they pass up, because they are lacking basics.

    Of course it takes more time to learn C first, but do we want quality or quantity?
    The point is, you don't need to learn C or C++ in order to write scripts for Call of Duty. I know some very gifted scripters for COD who learned COD script just by looking at mods for the game. No prior language experience at all. So the argument that you should learn another language in order to be a "quality" scripter for Call of Duty just isn't true.

  9. #8
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    in short:
    if you want to mod a cod-game without the purpose of coding ever something else: start with codscript
    if you are seriously interested into programming, you should try to learn C first

    i can say: i learned codscript yrs ago just by studying public mods and the standard gametypes + the help of community posts
    it is very easy to understand, not complex at all
    in the last past month i finally digged into C programming, and now i truely understand how this all works
    now its your decision where to start

    the point is, that finally YOU have to learn programming on YOUR OWN so there is no matter how you choose

    good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •