MSC++

Stoned

New Adventurer
Joined
Jul 24, 2009
Messages
856
Reaction score
0
Age
28
From what I have heard, the scripting language is a lot different from C++. In fact its often referred to as MSC++. Is this true? Or will you still need to know C++ to do scripting(or hard on coding, either or)
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
How is this off topic? ><

MSC++ is usually used to refer to the hard code... The HL1SDK is almost entirely custom commands and data types, and the MSC code is doubly so. Thus, as a background in C++ only offers only moderate assistance, we refer to it as "MSC++", or also, "Dogg works in mysterious ways" (as well as several other nick names that the board would censor.)

If that's what you're at, then you're in luck, as I have this handy system for teaching yourself C++ in just 21 days:
c++_in_21_days_ars_longa_vita_brevis.png

Now, the script system, on the other hand, is a lot simpler, but it has a lot of fun little quirks, being built on said code, and they crop up more than often enough to make it very tricky to master. About the only thing it has in common with C++ is that it uses brackets in its syntax (like, nearly every language out there these days). However, a general understanding of programming logic (ie. experience programming with multiple languages) will help, a lot.

In the next patch, however, we should have a system to allow mappers to test and submit their own scripts. This means, of course, coming up with a more user accessible set of script tutorials. :/
 

Stoned

New Adventurer
Joined
Jul 24, 2009
Messages
856
Reaction score
0
Age
28
Thothie said:
How is this off topic? ><

MSC++ is usually used to refer to the hard code... The HL1SDK is almost entirely custom commands and data types, and the MSC code is doubly so. Thus, as a background in C++ only offers only moderate assistance, we refer to it as "MSC++", or also, "Dogg works in mysterious ways" (as well as several other nick names that the board would censor.)

If that's what you're at, then you're in luck, as I have this handy system for teaching yourself C++ in just 21 days:


Now, the script system, on the other hand, is a lot simpler, but it has a lot of fun little quirks, being built on said code, and they crop up more than often enough to make it very tricky to master. About the only thing it has in common with C++ is that it uses brackets in its syntax (like, nearly every language out there these days). However, a general understanding of programming logic (ie. experience programming with multiple languages) will help, a lot.

In the next patch, however, we should have a system to allow mappers to test and submit their own scripts. This means, of course, coming up with a more user accessible set of script tutorials. :/

everytime I try and learn C++, everything goes to shits and I pretty much durp and call it quits. Maybe the easiest way is just reading this.
 

zeus9860

Active Adventurer
The True Followers of the Lost
Crusaders
Blades of Urdual
Alpha Tester
Joined
Feb 28, 2008
Messages
2,581
Reaction score
37
Age
32
Location
lolwut
If you get bored really quick, don't even bother. I also quit c++ a year ago, spent like 6-7 months doing the same shit over and over, lots of boredomness because you just do the samething for a long time untill you get the hang of it.
Though it didnt seem so hard to learn while taking a class related to that...

Also, it'll take you quite alot of time/practice/patience/good mood to learn just the basics. Probably alot more since you are on your own there.

Talking about this, just reminded me to give a 3rd try to mapping and fail some more at it, rofl. :roll:
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Well, for the short of attention span, the script system is likely the best solution. To do anything more than the most basic NPC's via templates, you do have to get the hang of basic program flow logic, but beyond that, it couldn't be much simpler. Weapons are still pretty complex, but we aren't opening that can of worms for the open script system.

For client effects and for tricky NPC positioning, you also need to learn vector math, but MSC has the richest set of vector math functions I've ever seen for that. Nearly anything you can do code side with the existing functions in MSC can be done script side, as nearly every function that MSC++ has, or the HL engine has, is available in one simplified script command or other.
 

Stoned

New Adventurer
Joined
Jul 24, 2009
Messages
856
Reaction score
0
Age
28
Bah, maybe i'll just take a computer science course when I get the chance.
 
Top