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
  #31  
Old 08-29-2008, 05:52 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
Originally,

("test" @ "pancake") is returning a string because first part is string. And this."testpancake" wouldn't work obviously.
(@ "test" @ "pancake") is returning a variable name because first part was empty.

Though it seems like Stefan has compensated for that now since doing that in a variable works either way. Either that or the reason it was originally done was forgotten by me.

If Stefan could tell us whats up that would be nice.
__________________
Reply With Quote
  #32  
Old 08-29-2008, 06:09 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I don't like how Stefan makes up for things that people make errors in; e.g. profiles as strings. I had no idea they were actually supposed to be objects. If he hadn't done that, I would have of course used the object.
__________________
Reply With Quote
  #33  
Old 08-29-2008, 05:34 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
Its why I want a GS3 that is more stricter and more Object-Oriented and doesn't allow any of the old GS1.
__________________
Reply With Quote
  #34  
Old 08-29-2008, 05:58 PM
TheStan TheStan is offline
Stan?
Join Date: May 2008
Location: U.S.
Posts: 100
TheStan is on a distinguished road
Send a message via AIM to TheStan Send a message via MSN to TheStan
Quote:
Originally Posted by Inverness View Post
Its why I want a GS3 that is more stricter and more Object-Oriented and doesn't allow any of the old GS1.
orly?
Reply With Quote
  #35  
Old 08-29-2008, 06:40 PM
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 Inverness View Post
Its why I want a GS3 that is more stricter and more Object-Oriented and doesn't allow any of the old GS1.
I'd rather have something well defined and documented, like Lua, Squirrel, Python, GameMonkey, Lisp, some dialect of BASIC, Perl, awk, ECMAScript, Java, PHP, Ruby or Tcl.


Quote:
Originally Posted by TheStan View Post
orly?
I am thoroughly offended by this horrible abuse of not only the English language, but some cultural references as well.
Reply With Quote
  #36  
Old 08-29-2008, 06:45 PM
TheStan TheStan is offline
Stan?
Join Date: May 2008
Location: U.S.
Posts: 100
TheStan is on a distinguished road
Send a message via AIM to TheStan Send a message via MSN to TheStan
Quote:
Originally Posted by DrakilorP2P View Post
I am thoroughly offended by this horrible abuse of not only the English language, but some cultural references as well.
Just kidding there Drakilor.
Reply With Quote
  #37  
Old 08-30-2008, 12:05 AM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by TheStan View Post
Just kidding there Drakilor.
Everyone seems to be offended these days xD. I personally use something like this:

PHP Code:
this.("prefix_" varname) = "foo"
Reply With Quote
  #38  
Old 08-30-2008, 02:44 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 DrakilorP2P View Post
I'd rather have something well defined and documented, like Lua, Squirrel, Python, GameMonkey, Lisp, some dialect of BASIC, Perl, awk, ECMAScript, Java, PHP, Ruby or Tcl.
If Stefan were to use a well established language; which is what I would prefer, then I say to use Stackless Python.

Not allowed to give you a URL (most retarded rule ever) so search on google for "why stackless" and pick first result.

Of course if Stefan wanted to use this then he would need to be implementing some sort of security features and all that stuff. The source code is available for that.

I don't think Stefan has time to do anything like that however, even if I think it would be beneficial in the long run.
__________________
Reply With Quote
  #39  
Old 08-30-2008, 05:48 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
GS2 is a pretty awesome language; it's very easy to learn (compared to other languages), and you can do a lot of stuff much easier than with other languages. While the price may be speed of running the code, it's still a very good starting language, and I think it is fine for Graal. I don't see any need to change it to a completely different language, just listen to some of the suggestions (**custom objects**, catchevent, etc).
__________________
Reply With Quote
  #40  
Old 08-30-2008, 06:10 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 cbk1994 View Post
GS2 is a pretty awesome language; it's very easy to learn (compared to other languages), and you can do a lot of stuff much easier than with other languages. While the price may be speed of running the code, it's still a very good starting language, and I think it is fine for Graal. I don't see any need to change it to a completely different language, just listen to some of the suggestions (**custom objects**, catchevent, etc).
Python is an awesome language, easy to learn compared to others, and you can do a lot of stuff much easier than with other languages. And there aren't weird things like only built-in variables being case sensitive and odd leftover functions for compatibility, variables without prefix being global instead of local to the function like in most other languages.
__________________
Reply With Quote
  #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
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 02:16 PM.


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