![]() |
Its currently enabled on Zone Iphone but not Delteria Iphone. The reason probably is because its half done? It works in NPC Weapons but not classes.
|
it is also disabled on Era iPhone
|
PHP Code:
|
We have not enabled it yet on Graal servers. Part of the syntax has already been accepted (but ignored) for a few years.
|
Quote:
So how do we go about getting it enabled? |
For what it's worth the V8 NPC-Server prototype that we tested was a much better idea than this. :(
|
Quote:
|
Just tested this on Zone, why... It didn't give any error at all.
PHP Code:
PHP Code:
Also will there be constructors? Sorry for the spam, but will we be able to extend a TSocket :D? |
Yes arrays seem to be bugged, we will work on it.
|
My desires:
Constructors (being able to overload would also be awesome but perhaps taking it too far) PHP Code:
I added that printf as it will fail since it's not being referenced in that class(see: extern). For this, perhaps being able to simply prepend global. to global functions would be better. On a similar note, i've not tried but i hope we could use something like super.whatever to access base class items we inherited from :o |
Quote:
|
I still hate the whole object:type thing. Would love it if it was more like Java and C#, object something;
|
Quote:
By essence, GScript is a scripting language. GScript is more close to JavaScript-like languages, rather than Java or C#. This type syntax was chose among other language syntaxes, because it is commonly-used to annotate types in ECMAScript-based languages. For example: HTML Code:
// ActionScriptHTML Code:
//#GS2Also, you lose the ability to easily import scripts from similar languages (ActionScript, JavaScript, UnityScript, TypeScript...). HTML Code:
// Java or C#. |
Encountered some issues with inheritance,
PHP Code:
PHP Code:
PHP Code:
I was going to try and do a var BaseTestObj : BaseClass = TestObj; but figured it wouldn't get me too far :) |
The class should extend something , try extends TStaticVar.
It will probably make it singleton but eh as long as you only use it once. But also GS1-3 not being a proper language, it doesn't act like proper languages. Oddly playing around, if you create the object, the class can extend it o.0 not the actual class though? PHP Code:
|
Quote:
PHP Code:
Taken from: http://wiki.graal.net/index.php/Crea...t3#as_operator It did resolve my query regarding referencing the base class..need to use 'as' operator :) |
Ahh nice :)
|
What's the point of extending if you still need to use the "as" expression? Seems rather retarded to me.
It would make sense if you used it in a foreach on an array of objects of different type. Like: "foreach (djur as Animal in this.Animals)" while this.Animals contains Dog, Cat, Parrot etc. I might just be misunderstanding something here, if so, disregard my post. |
Foreach, I did for(various item:class_type in array)
|
Quote:
As a workaround, the following code should work: PHP Code:
|
Quote:
Also welcome to the community for what time you will be staying. |
Quote:
|
He was onto me the other day, but then I lagged out
|
Are you guys hitting on each other o_O
|
Quote:
|
Hey Julien/Stefan,
Any update on my class extending problem? http://forums.graalonline.com/forums...9&postcount=90 Also, will overloading functions be supported? |
Hello,
GS3 is currently emulating classes using only GS2 features. While the GS3 syntax already support constructors, getters / setters, inheritance, classes can only be used as containers as for now. You can only define simple classes with members initialization but functions do not work yet. Example: PHP Code:
|
Quote:
|
We also plan to convert the engine to GS3 sometime :) We more look into targeting Javascript and C# though
|
Why C#?
|
There are several cross-platform game libraries that are based on the Mono / .NET Framework (C#):
Conversion from GS3 to C# would allow the Graal engine / tools / scripts to be compatible with these libraries, and possibly deploy on new platforms. :cool: |
Quote:
|
Quote:
|
Quote:
|
i hope they really go for C# instead of gs3
|
C# will also be useful for me (as it's my language of choice atm :))
|
hello!
lets just hypothesize for one moment that i were to put my scripting abilities towards developing a playerworld which uses gs3, what alternative platforms could i then expect the playerworld to be made available on, and what time frame could i expect this to be within? alternatively, if i were to develop a playerworld using gs2 instead, is the current pc platform even going to be supported in future? thank you! |
Quote:
|
sup bros, gs4.5 comin next week
eidt: i promise |
Is there any updates on this available? I really like the idea of GS3.
|
| All times are GMT +2. The time now is 04:47 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.