PDA

View Full Version : learning uscript - C++ or VC++?



legacy-Kiros72
07-14-2005, 08:35 AM
Scripting for UT2004 . . .

Is it just C++ or is it Visual C++?
--- or both? (for the main functions and then for the gui..) :rolleyes:

is Uscript EXACTLY like C++ or VC++???
--- or does it have different functions just with the same syntax and structure?

Anyone know some GOOD online training site(s) for the newest version of C++ (7.**) ?



__
just trying to make sure I understand everything cleary :D

Thx! Thx! Thx!!!

Hsoolien
07-14-2005, 10:57 AM
Uscipt is it's own language a good referenc to how it compares with other languages can be found here:
http://wiki.beyondunreal.com/wiki/UnrealScript_For_Java_Programmers
http://wiki.beyondunreal.com/wiki/UnrealScript_For_CPlusPlus_Programmers
http://wiki.beyondunreal.com/wiki/UnrealScript_For_Visual_Basic_Programmers

legacy-rorshack
07-21-2005, 03:44 PM
It's OOP. Simple as that.

C++, Java, Actionscript 2 - it's the same thing. There are syntax variations, and types are different, of course, but if you know the class OOP structure, you'll have no problem at all. The links HSoolien has posted are a great way to start if you know other OOP language.

elmuerte
07-21-2005, 04:51 PM
C++ and ActionScript 2 are not real OO languages, they are procedural languages with OO support.

But that's not a major deal, you will have to understand the basic procedural language concepts and the OO concept and you will understand most of the languages out there (the rest is just syntax).

If you want to start learning UnrealScript and you dont have any programming experience I suggestion to pick up a Java in 24 hours book (or something like that). After that you should have enough basic knowledge to pickup unrealscript to start learning with. It doesn't mean you get the hang of it in a few days. It'll take (at least) a couple of months to get a good understanding of programming (in general). Learning things takes time. Learn from existing information (that is tutorials but also existing code, try to understand what people did, and maybe why).

legacy-Zach
07-21-2005, 05:14 PM
Originally posted by El_Muerte_[TDS]
C++ and ActionScript 2 are not real OO languages, they are procedural languages with OO support.
*throws away Masters degree in disgust and proceeds to sue Berkley for false advertising*

:rolleyes:

elmuerte
07-21-2005, 05:29 PM
Originally posted by Zach
*throws away Masters degree in disgust and proceeds to sue Berkley for false advertising*

:rolleyes:
A Masters degree in Disgust? interesting, what's that about?

legacy-rorshack
07-21-2005, 05:43 PM
Hey, ElMuerte. Long time no see.

Thanks for the clarification.

legacy-FatalOverdose
07-22-2005, 01:39 PM
Im just starting to look into learning C++ at the moment, Can you edit the native code with c++? Or even make your own?

Wormbo
07-22-2005, 01:57 PM
Originally posted by Zach
*throws away Masters degree in disgust and proceeds to sue Berkley for false advertising*

:rolleyes:
Good idea if they told you (C++ == OOP). You can write an entire C++ program without even thinking about OOP, let alone actually using it. It's not much more than C with the option to use classes.

Originally posted by FatalOverdose
Im just starting to look into learning C++ at the moment, Can you edit the native code with c++? Or even make your own?
You can in UT1, but not in UT200x. The header files are not available.

legacy-FatalOverdose
07-22-2005, 02:24 PM
Thanks, that's a bit annoying i was looking forward to making use of the speed increase. I did wonder why i hadn't bumped into info on how its done.
What would you recommend as a C++ compiler? I've heard Visual C++ from Microsoft might be worth looking into?

legacy-3v1£jesú§
07-24-2005, 04:29 AM
Here's the language reference for Unrealscript:

http://unreal.epicgames.com/UnrealScript.htm

If you've studied C++ or Java (preferably), you will find Unrealscript to seem very familliar to you.

VC7 is evil (quivers)...I'm sticking with VC6 and GTK+, and someday wxWidgets.

legacy-Switch01
07-25-2005, 09:42 AM
Originally posted by 3v1£jesú§
VC7 is evil (quivers)...I'm sticking with VC6 and GTK+, and someday wxWidgets.
VC6 is the one which can't compile my valid C++ code. Hobos report my VC6 CD's were last seen at city dump.


Originally posted by FatalOverdose
Thanks, that's a bit annoying i was looking forward to making use of the speed increase.
If you have enough desperation and patience you can roll your own headers. However, unless you're able to compile shared libs for all 3 platforms, distributing native code would result in hatemail from linux server admins and mac players.

Hsoolien
07-25-2005, 10:09 AM
And native code would also not automaticly send itself to clients that need it to connect either...

legacy-3v1£jesú§
07-25-2005, 09:10 PM
Originally posted by Switch01
VC6 is the one which can't compile my valid C++ code. Hobos report my VC6 CD's were last seen at city dump.

LOL @ VC6 CDs in the dump. I should have known someone would have a retort to my comment. You have a good point there, and I respect your opinion.

I personally just haven't embraced the whole Visual Sudio .net developer framework, because their idea of "cross-platform" means that it can run on both Windows 2000 AND Windows XP, WOW! (rolling eyes)

This may put me behind in Windows application development, but I like to make programs that don't just run on Windows.

Sorry for going a little off-topic. :)

Wormbo
07-26-2005, 01:50 AM
Originally posted by 3v1£jesú§
This may put me behind in Windows application development, but I like to make programs that don't just run on Windows.
Try Java... :confused:

legacy-3v1£jesú§
07-26-2005, 06:20 AM
I took Java in college 4 years ago, and I didn't like it at the time, because I was running an older computer and the Java VM was horribly slow compared to C/C++ programs.

Besides, I think wxWidgets is pretty good. It's kind of similar to MFC , but it compiles on Mac, Linux, and Windows to look like a native application for the OS you compile it on (GTK+ or Motif on xwindow systems), with little or no change to the source. You can compile wx in your programs as static, so there are no library, runtime, or vm dependencies for the programs you deploy.

legacy-Switch01
07-26-2005, 09:33 AM
VC7 has its own share of problems too. I use 7.1 but will get 8.0 Express once it's out. I haven't even touched the .NET stuff so far, C++ & wxWidgets is all I want.

legacy-Psyk
07-27-2005, 08:58 AM
I quite like .NET actually. Ok so it's not multiplatform (even if Microsoft pretend it is) but I quite like it for windows applications. I had to use C# and .NET for a job I did a while ago. I had never done C# before and the only OOP language I had done was UnrealScript. I picked it up in a couple of hours because I understood all the concepts from UScript.

legacy-clearz
07-27-2005, 12:55 PM
Originally posted by Wormbo
Good idea if they told you (C++ == OOP). You can write an entire C++ program without even thinking about OOP, let alone actually using it. It's not much more than C with the option to use classes.

You can in UT1, but not in UT200x. The header files are not available.


C++ is an OOP language with back support for the C procedural language. If you write a procedural program in C++ you are using the back support features and not C++ features. Therefore C++ is OOP but we could probably argue about this till we are blue in the face.

As for UnrealScript, it is very much an OOP language and to say otherwise is madness. While it or Java are not 100% OOP like the infamous smalltalk language it is safe to think of them as 98% OOP. The non OOP features have been added to make these languages easier to use.

legacy-Kiros72
08-02-2005, 01:59 AM
o.o

... so where did everyone just learn UnrealScript? is there some dedicated website about UScript or did everyone just learn because they new some OOP language and they looked at some samples? :weird:

Angel_Mapper
08-02-2005, 02:55 AM
I just jumped into the Epic source scripts and bugged the hell out of MadNad and Mr. Evil until it finally clicked. My only previous programming experience was with BASIC about 18 years ago.

Xyx
08-02-2005, 05:14 AM
I read some basics on the wiki and started modifying somebody else's stuff. One thing led to another, now I can script.

legacy-Psyk
08-02-2005, 07:03 AM
I hear it's very similar to Java. I don't know for sure how similar it is because I've never done Java:)

Hsoolien
08-02-2005, 10:25 AM
I learned cause I wanted to make vecs... Now I do everything but make vecs...



I just jumped in really, bugged my bro about some operators (like != and ||) cause he took a programming course.


I taught myself 8bit Atari Basic years ago as well...