Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   getstringkeys() and loadvars() (https://forums.graalonline.com/forums/showthread.php?t=81534)

xXziroXx 08-30-2008 11:57 AM

If I wanted to work with Python, then I'd just... do something.
If I wanted to work with GScript, which I do obviously since I'm still here, then I'd go to Graal.

Inverness 08-30-2008 12:03 PM

Quote:

Originally Posted by xXziroXx (Post 1419124)
If I wanted to work with Python, then I'd just... do something.
If I wanted to work with GScript, which I do obviously since I'm still here, then I'd go to Graal.

It looks like the fact that Stackless Python could be embedded into Graal went right over your head.

xXziroXx 08-30-2008 12:50 PM

Quote:

Originally Posted by Inverness (Post 1419126)
It looks like the fact that Stackless Python could be embedded into Graal went right over your head.

Nice one, wise ass. GraalScript does the job well enough, there's no need for a second language to be embedded or replace the original one with it.

Inverness 08-30-2008 01:00 PM

Quote:

Originally Posted by xXziroXx (Post 1419131)
Nice one, wise ass. GraalScript does the job well enough, there's no need for a second language to be embedded or replace the original one with it.

Yes, GraalScript works, however, Stackless Python offers certain advantages that aren't found elsewhere. You should Google what I said earlier. And I also already stated some reasons for wanting a more solid scripting language.

xXziroXx 08-30-2008 01:14 PM

Wanting a more solid scripting language is one thing, but to remove/replace what everyone are already used too (and have been for many years now) is another.

Inverness 08-30-2008 03:14 PM

Quote:

Originally Posted by xXziroXx (Post 1419133)
Wanting a more solid scripting language is one thing, but to remove/replace what everyone are already used too (and have been for many years now) is another.

Once the Python syntax is learned (and its not difficult in the least) scripting becomes an easy deal again. I don't see the problem.

xXziroXx 08-30-2008 05:00 PM

Quote:

Originally Posted by Inverness (Post 1419145)
Once the Python syntax is learned (and its not difficult in the least) scripting becomes an easy deal again.

So you think programming in GScript is hard then?

Quote:

Originally Posted by Inverness (Post 1419145)
I don't see the problem.

Then you're quire narrow minded, some people like GScript because it's so unique comparing to other languages, and it's extremely friendly to newbie errors - even allowing things that it shouldn't be doing.

Graal's programming language is fine the way it is.

Inverness 08-30-2008 06:04 PM

Do you have some fear of Python you need to tell me about? :p
Quote:

Originally Posted by xXziroXx (Post 1419162)
So you think programming in GScript is hard then?

The sentence you quoted was me referring to other people, like you, who are experienced with GScript. It would be a breeze for you to learn Python.
Quote:

Originally Posted by xXziroXx (Post 1419162)
Then you're quire narrow minded, some people like GScript because it's so unique comparing to other languages,

Examples?
Quote:

Originally Posted by xXziroXx (Post 1419162)
and it's extremely friendly to newbie errors - even allowing things that it shouldn't be doing.

You make it sound like its a good thing. Because of that some people don't fix their problems.

Looking at GS1 scripts from the old days of Valikorlia its quite disgusting to see scripts with uneven numbers of brackets, semicolons in the wrong places, and comparisons with single equal signs, yet the script worked. I am glad such things aren't allowed in GS2.
Quote:

Originally Posted by xXziroXx (Post 1419162)
Graal's programming language is fine the way it is.

Undocumented scripting language is not fine.

DrakilorP2P 08-31-2008 01:32 AM

Quote:

Originally Posted by cbk1994 (Post 1419104)
it's very easy to learn (compared to other languages), and you can do a lot of stuff much easier than with other languages.

I find that it's problematic to learn due to the lack of documentation and consistence.
As for doing things easier, I think you may be referring to the platform. A different language would be able to interface the same thing.

Quote:

Originally Posted by xXziroXx (Post 1419131)
GraalScript does the job well enough, there's no need for a second language to be embedded or replace the original one with it.

I feel that a different language could improve productivity for more than two persons.

Quote:

Originally Posted by xXziroXx (Post 1419133)
Wanting a more solid scripting language is one thing, but to remove/replace what everyone are already used too (and have been for many years now) is another.

ECMAScript is very similar to GScript. Additionally, it shouldn't be too difficult to implement more than one language and make them cooperate to some degree (no need to go nuts).

Quote:

Originally Posted by xXziroXx (Post 1419162)
some people like GScript because it's so unique comparing to other languages, and it's extremely friendly to newbie errors - even allowing things that it shouldn't be doing.

People like it because it's unique? Shakespeare programming language is more unique.
It seems to me that holding the programmer's hand like GScript does makes it internally inconsistent, which exacerbates the problem with the lack of a formal documentation.

xXziroXx 08-31-2008 01:40 AM

I don't understand you two and your "lack of formal documentation" - it's working good enough so far for the majority of programmers on Graal. If you don't know something, then you ask on the forums, which happen how often?

Everything you need to know is on the wiki, more or less. And if you want documentation, how about contributing to the wiki yourselves once in a while? Graal is community run, and always have been. :/

Skyld 08-31-2008 01:48 AM

Quote:

Originally Posted by DrakilorP2P (Post 1419227)
ECMAScript is very similar to GScript. Additionally, it shouldn't be too difficult to implement more than one language and make them cooperate to some degree (no need to go nuts).

No no no! People already get confused trying to mix old and new GScript. Adding more languages will just make that worse.
Quote:

Originally Posted by DrakilorP2P (Post 1419227)
It seems to me that holding the programmer's hand like GScript does makes it internally inconsistent, which exacerbates the problem with the lack of a formal documentation.

Do you honestly think that every other language in the world is based upon reading a manual and instantly understanding everything? There are IRC channels on the Internet with hundreds of thousands of users asking questions about scripting languages, and there are Usenet groups on the Internet with hundreds of thousands of users asking questions about scripting languages, and forums on the Internet with hundreds of thousands of users asking questions about scripting languages.

LoneAngelIbesu 08-31-2008 04:28 AM

Quote:

Originally Posted by Skyld (Post 1419229)
Do you honestly think that every other language in the world is based upon reading a manual and instantly understanding everything? There are IRC channels on the Internet with hundreds of thousands of users asking questions about scripting languages, and there are Usenet groups on the Internet with hundreds of thousands of users asking questions about scripting languages, and forums on the Internet with hundreds of thousands of users asking questions about scripting languages.

I wish you'd bring your wiki back, or make another GS2 wiki... one that can be edited by people that don't pay a subscription fee. Things could be explained a lot better and more (relevant) examples can be given. One thing all other languages have is a mountain of tutorials that teach you how to make a specific program, rather than a list of client-side and server-side functions and variables.

Inverness 08-31-2008 05:41 AM

Quote:

Originally Posted by xXziroXx (Post 1419228)
I don't understand you two and your "lack of formal documentation" - it's working good enough so far for the majority of programmers on Graal. If you don't know something, then you ask on the forums, which happen how often?

I still don't know what the second parameter of GuiMLTextCtrl.addtext() does and I shouldn't have to ask on the forum for something so simple.
Quote:

Originally Posted by xXziroXx (Post 1419228)
Everything you need to know is on the wiki, more or less. And if you want documentation, how about contributing to the wiki yourselves once in a while? Graal is community run, and always have been. :/

When you create a scripting language you don't leave other people to document it for you.

Quote:

Originally Posted by Skyld (Post 1419229)
No no no! People already get confused trying to mix old and new GScript. Adding more languages will just make that worse.

If we do it like I suggest then there wont be any mixing at all.
Quote:

Originally Posted by Skyld (Post 1419229)
Do you honestly think that every other language in the world is based upon reading a manual and instantly understanding everything? There are IRC channels on the Internet with hundreds of thousands of users asking questions about scripting languages, and there are Usenet groups on the Internet with hundreds of thousands of users asking questions about scripting languages, and forums on the Internet with hundreds of thousands of users asking questions about scripting languages.

I'm sure people those people don't ask what parameter goes where in a function because the documentation only says string or integer but not what its for.

Lack of documentation and consistence is exactly my issue with GScript. I don't like how dynamic variable are case-sensitive yet static variables aren't. I don't like how declaring a variable without a prefix that isn't already declared temp is made a global variable.

Python is a well documented and developed scripting language with Stackless offering features that would be quite useful to Graal. The Python doc strings are in the function and member definitions themselves so you've got your documentation method right there in your source code.

Admins 08-31-2008 12:48 PM

I've updated the addtext docu: http://graal.net/index.php/Creation/...Ctrl#Functions

The ultimative plan is to add the documentation directly to the game (Graal.exe) so that you get all needed information from calling "Graal.exe -listscriptfunctions". The next version will also print events there. That function and variable list is also copied from time to time to the servers so that /scripthelp can use the same information.


All times are GMT +2. The time now is 02:17 AM.

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