Sign in to follow this  

scripting?

This topic is 4093 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Coding generally refers to everything that is compiled. Scripting generally means anything that is interpreted at run-time.

This means that the coded (sometimes called 'hard-coded' due to being harder to change) part of the game is turned into machine instructions long before it's put on a CD and shipped out. Scritped means that it's still just code right up to when it's run.

The main difference design-wise for scripting and coding is that scripting is genearlly more flexible, less complicated, and high-level (as in deals less with 'low-level' hardware, drivers, etc. and more with 'high-level' ideas such as "unit", "building", and "spell"). Scripting is often done so that team members with less programming experience can change gameplay (scripting languages generally have a more simplified syntax and are easier to write programs in). The advantage of hard-coding is that it can be faster, potentially alot faster.

Check out the forum FAQ of the Scripting Languages and Game Mods forum for more!

Share this post


Link to post
Share on other sites
Scripts are meant to make your code/program more flexiable, they are loaded and ran during run-time without having to compile them into the code. Therefore you can change how the program behave by changing the script. For example, the game world of warcraft uses XML and LUA script for their UI, thus enabling us the ability to use custom UIs.

Share this post


Link to post
Share on other sites
There is no difference between 'scripting' and 'coding', because the comparison and the terms themselves in this context don't make any sense. As the other posters said, there is code that is compiled into native code, which is faster but when you make changes you need to recompile, and there is code that is interpreted line by line which is generally considered slower, but allows you to modify the code any time(even when the program runs) without recompiling.

Quote:

so, is it basically simpler language? can someone show me a difference of the syntax from a scripting and coding? preferably in python


What do you mean 'is it basically a simpler language'? Scripting is not a language, it's more like a term that implies how a program written in any language is executed. There are syntax differences between Python and C++, or between Python and Ruby, or between C and C++, but not between 'scripting' and 'coding'. There are languages that are mainly interpreted(Lua,Python,Ruby) and languages that are mainly compiled(C/C++) or languages that can be both compiled or interpreted(OCaml). But it's not an inherent characteristic of the language, one can come up with an interpreter for C or a "compiler" for Python(Pyrex, for example, comes close). Using the term 'scripting language' for Python, as you mentioned, is wrong. Python can be used to small make 'scripts' that are used by a larger program, but you can also write a large stand-alone program in Python, and in that case calling it 'scripting' doesn't make sense.

In sort, don't worry too much about it. 'Scipting' is a vague term, unlike 'interpreted' and 'compiled' which are well defined. C++ does what C++ does, Python does what Python does and that's that.

Share this post


Link to post
Share on other sites

This topic is 4093 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this