Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 08-30-2008, 11:57 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #42  
Old 08-30-2008, 12:03 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
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.
__________________
Reply With Quote
  #43  
Old 08-30-2008, 12:50 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #44  
Old 08-30-2008, 01:00 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
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.
__________________
Reply With Quote
  #45  
Old 08-30-2008, 01:14 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #46  
Old 08-30-2008, 03:14 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
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.
__________________
Reply With Quote
  #47  
Old 08-30-2008, 05:00 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
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 View Post
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #48  
Old 08-30-2008, 06:04 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Do you have some fear of Python you need to tell me about?
Quote:
Originally Posted by xXziroXx View Post
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 View Post
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 View Post
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 View Post
Graal's programming language is fine the way it is.
Undocumented scripting language is not fine.
__________________

Last edited by Inverness; 08-30-2008 at 06:24 PM..
Reply With Quote
  #49  
Old 08-31-2008, 01:32 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by cbk1994 View Post
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 View Post
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 View Post
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 View Post
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.
Reply With Quote
  #50  
Old 08-31-2008, 01:40 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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. :/
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #51  
Old 08-31-2008, 01:48 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by DrakilorP2P View Post
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 View Post
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.
Reply With Quote
  #52  
Old 08-31-2008, 04:28 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Skyld View Post
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.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #53  
Old 08-31-2008, 05:41 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
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 View Post
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 View Post
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 View Post
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.
__________________
Reply With Quote
  #54  
Old 08-31-2008, 12:48 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:45 PM.


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