Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Why GS2? (https://forums.graalonline.com/forums/showthread.php?t=134256293)

coreys 10-03-2009 09:01 AM

Why GS2?
 
I come back to Graal for the first time in over a year to ask this:

Why GS2?

No, seriously, Stefan, why? I mean, no offense, it's more than I'm capable of as a programmer, but why reinvent the wheel, especially when you can't reinvent it better? It would have been much easier integrate an existing scripting language like Perl or Python (Python being the best choice in my opinion) rather than create your own, and those languages are much faster than GS2. MUCH faster. Scripters would be capable of a lot more.

For example, I see people have been trying to implement A* lately. Anyone who knows enough about this algorithm should know that it is impossible with GS2 to make it run fast enough to be usable in a real game play environment. They probably won't be able to implement other AI features standard in video games these days, like Behavior Trees and HTN Planners.

Not to mention GS2 has a rather half-assed class system, if you can even call it that.

I suggest using Python, but, hey, that's just me. It's probably too late to be switching from that, anyways.

Crow 10-03-2009 10:32 AM

Backwards compatibility.

xXziroXx 10-03-2009 11:35 AM

Quote:

Originally Posted by coreys (Post 1527063)
Anyone who knows enough about this algorithm should know that it is impossible with GS2 to make it run fast enough to be usable in a real game play environment.

I disagree. I've seen three versions implemented and tested in various environments without any slowdowns or lag.

Pelikano 10-03-2009 11:59 AM

Python? LOL

If he'd do that, Graal would have about 3 "programmers", GS2 is so freaking easy compared to other languages.

Crow 10-03-2009 12:11 PM

Quote:

Originally Posted by Pelikano (Post 1527087)
Python? LOL

If he'd do that, Graal would have about 3 "programmers", GS2 is so freaking easy compared to other languages.

And Python is not? Lua is "easy" as well, and so on. It's not like the other languages are complicated.

Skyld 10-03-2009 12:32 PM

Not another "Let's get rid of GScript and replace it with something else" thread. Stefan previously said this about replacing the scripting language with Lua:
Quote:

Originally Posted by Stefan
Lua is much much simplier than languages like Graal Script, Flash etc., and is easier to optimize. However there are few things that make it not good for our use: the syntax is very different to C/C++/Java/JavaScript/Flash/Graal Script, and of course most Graal stuff is not existing or at least not in the extend we are using them (join/leave classes, sleep/waitfor, variable scope, dynamic allocation of variables, automatic event binding etc. etc.). So it's quite interesting, but not a drop-in replacement. If we ever switch to another language or system then only for speed (e.g. a just-in-time compiler which exist for all platforms, including iphone, llvm might be the light at the end of the tunnel) or for better compatibility with code from other platforms, including Flash and Java programs.

Now, let's accept that GScript2 exists and that we're not using Python/Lua and move on with our lives.


All times are GMT +2. The time now is 03:11 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.