What is the programing language.
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- EGOSOFT
- Posts: 13129
- Joined: Sat, 9. Nov 02, 11:45
What is the programing language.
What is the programing language used in X2. Im going to learn C++. Is that going to help?
Come watch me on Twitch where I occasionally play several of the X games
-
- EGOSOFT
- Posts: 54309
- Joined: Tue, 29. Apr 03, 00:56
-
- Posts: 2981
- Joined: Mon, 29. Dec 03, 03:29
-
- Posts: 244
- Joined: Tue, 24. Feb 04, 19:37
Mod package is a good place to start for modding the game. But modding and scripting are two different things.
There is a pretty decent list of scripting commands here:
http://xscripting.com/forums/index.php?showtopic=47
And there are some good scripting resources here:
http://65.92.32.23:8080/modules.php?nam ... g_Handbook
There is a pretty decent list of scripting commands here:
http://xscripting.com/forums/index.php?showtopic=47
And there are some good scripting resources here:
http://65.92.32.23:8080/modules.php?nam ... g_Handbook
-
- Posts: 2981
- Joined: Mon, 29. Dec 03, 03:29
-
- Posts: 244
- Joined: Tue, 24. Feb 04, 19:37
Burianek wrote: Sorry, this is a good 1st start to learning c++, not modding / scripting, though it will help. Misunderstood your question.
Scripting languages for games are unique to the game/engine they are made for. And since that is all they are - a scripting language - attempting to learn something like C++ beforehand is very much overkill. If you have never written code before, I would not attempt to learn C++ unless you had to, such as if you had to take a college course on it for CS curriculum.
If you really feel like you need to learn a language before attempting scripting, I would suggest a general-purpose scripting language, like Perl. It is not a strongly-typed language like C++, it is not nearly as complicated as C++, and it doesn't need to be compiled like C++. There's a Windows version of Perl made by ActiveState - Google it. Installation is easy.
Learning Perl would at least give you a basic fundamental knowledge of some programming contructs, like for/if/while loops, arrays, and function definition/declaration/calling.
But if all you wanted to do was write scripts for X2, I wouldn't even bother with that. Learn the X2 scripting language, play with it, experiment.
-
- EGOSOFT
- Posts: 13129
- Joined: Sat, 9. Nov 02, 11:45
Welcome to my hell starting in september!!!!!!!!!Shara wrote:
I would not attempt to learn C++ unless you had to, such as if you had to take a college course on it for CS curriculum.
Come watch me on Twitch where I occasionally play several of the X games
-
- Posts: 244
- Joined: Tue, 24. Feb 04, 19:37
Xenon_Slayer wrote:Welcome to my hell starting in september!!!!!!!!!Shara wrote:
I would not attempt to learn C++ unless you had to, such as if you had to take a college course on it for CS curriculum.
Gotcha

Do yourself a favor then - Go get Kernighan's and Ritchie's C book, The C Programming Language.
Link here:
http://cm.bell-labs.com/cm/cs/cbook/
Get yourself the free gcc C compiler off the internet, and start learning C. Many of the things you will learn in your first C++ class will be things you can also do in C.
I won't try and interject too much of my opinion of C++ here - needless to say I'm extremely biased because of what I learned about programming languages as an undergraduate CS student. I'll just say this: if you learn C, you'll be very prepared for a C++ course, and you'll have learned one of the fundamental languages that most of today's high-level languages are built on. It kinda goes like this:
ADA -> C -> Everything else
If you know C you can write in anything else. Java, Perl, C++, C#, VB, Phython, Snowball... it won't matter.
Best advice I ever got as an undergraduate CS student:
"Languages are tools. After you learn the fundamentals of programming, and learn how to use one language, you should be able to pick up any language and use it with some degree of proficiency. Each tool is different, some are more suited for certain tasks than others. The job of the programmer is to know which tool is best for each job, and then use it."
Don't get stuck on one language - they all have their uses.
G'luck.
-
- Posts: 270
- Joined: Mon, 23. Feb 04, 15:03
Spot on dude"Languages are tools. After you learn the fundamentals of programming, and learn how to use one language, you should be able to pick up any language and use it with some degree of proficiency. Each tool is different, some are more suited for certain tasks than others. The job of the programmer is to know which tool is best for each job, and then use it."

Once you've got the underlying concepts figured out it all gets alot easyier from there.
-
- Posts: 1087
- Joined: Sun, 7. Mar 04, 23:03
-
- Posts: 128
- Joined: Sat, 6. Mar 04, 20:18
-
- Posts: 244
- Joined: Tue, 24. Feb 04, 19:37
Personally, I don't consider OOP to be a part of a language - it's a design model - a methodology. Some languages implement it intrinsically, like Java and C#, while others don't (like C++ and Perl), but it's still a separate concept, and really deserves it's own learning space.
It is definately something a first-year CS student shouldn't have to deal with.
It is definately something a first-year CS student shouldn't have to deal with.