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
  #1  
Old 08-28-2008, 03:56 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
getstringkeys() and loadvars()

I'm not sure how to use the 2 together.

PHP Code:
function onCreated()
{
  
temp.gang.loadvars("gangs/Los Carteles.txt");
  for (
temp.igetstringkeys("rights-"))
  {
  }

It's hard to put in words, but I know in a database you can do
PHP Code:
with (findNPC("database stuff"))
{
  for (
temp.igetstringkeys("stuff"))
  {
  }

which will get the strings in the database.
I'm just not sure how to get the strings in the text file.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #2  
Old 08-28-2008, 03:59 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I'm not terribly familiar with this, but...
PHP Code:
function onCreated()
{
  
temp.gang.loadvars("gangs/Los Carteles.txt");
  for (
temp.itemp.gang.getstringkeys("rights-"))
  {
  }

?
Reply With Quote
  #3  
Old 08-28-2008, 04:00 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
I've tried that

Script: Function gang.getstringkeys not found at line 69 in script of *Frankie
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #4  
Old 08-28-2008, 04:11 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
getstringkeys() can't but used directly on an object (obj.getstringkeys())
Use it inside a with() scope.

And, for the files, use obj.getDynamicVarNames();

PHP Code:
function onCreated() {
  
temp.file.loadvars("gangs/PizzaClan.txt");
  
  
temp.gang_PizzaClan = new TStaticVar();

  for(
temp.var : temp.file.getDynamicVarNames()) {
    
temp.gang_PizzaClan.(@var) = temp.file.(@var);
  }

  
temp.keys 0;
  
with(temp.gang_PizzaClan) {
    
temp.keys getstringkeys("variable_prefix");
  }

Just a fast mockup, but something like that would work I guess
__________________
Reply With Quote
  #5  
Old 08-28-2008, 04:20 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 Chompy View Post
getstringkeys() can't but used directly on an object (obj.getstringkeys())
Use it inside a with() scope.
No.

PHP Code:
temp.string_foobar "lawl";
temp.string_lolwat "baz";
for (
temp.foogetstringkeys("temp.string_")) {
  echo(
foo SPC "[" makevar("temp.string_" foo) @ "]");

Result:

PHP Code:
foobar [lawl]
lolwat [baz
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 08-28-2008 at 04:40 PM..
Reply With Quote
  #6  
Old 08-28-2008, 04:29 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xXziroXx View Post
No.

PHP Code:
... 
Result:

PHP Code:
... 
Where in your script are you doing object.getstringkeys() though? ;o

I might of worded it wrong, as my vocabulary isn't that big in English
But I did put 'obj.getstringkeys()' in parenthesises
__________________
Reply With Quote
  #7  
Old 08-28-2008, 04:40 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
If I wanted to do it with an object, I would do:


PHP Code:
temp.obj findNPC("foobarbaz");
obj.string_foobar "lawl";  // Just to show a string example.
obj.string_lolwat "baz";  // Just to show a string example.
for (temp.foogetstringkeys("obj.string_")) {
  echo(
foo SPC "[" makevar("obj.string_" foo) @ "]");

__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 08-28-2008, 04:43 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xXziroXx View Post
If I wanted to do it with an object, I would do:


PHP Code:
temp.obj findNPC("foobarbaz");
obj.string_foobar "lawl";  // Just to show a string example.
obj.string_lolwat "baz";  // Just to show a string example.
for (temp.foogetstringkeys("obj.string_")) {
  echo(
foo SPC "[" makevar("obj.string_" foo) @ "]");

Hmm, you're right, but you can't do obj.getstringkeys()

But yeah.. I probably read through your script to fast
__________________
Reply With Quote
  #9  
Old 08-28-2008, 04:45 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 Chompy View Post
Hmm, you're right, but you can't do obj.getstringkeys()
Agreed. I also didn't read your post too well, I was under the impression that you meant something like this for a while:

PHP Code:
with (getstringkeys("foobar")) {
...

__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #10  
Old 08-28-2008, 05:02 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xXziroXx View Post
Agreed. I also didn't read your post too well, I was under the impression that you meant something like this for a while:

PHP Code:
... 
hehe
__________________
Reply With Quote
  #11  
Old 08-28-2008, 07:30 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
Booyah!

PHP Code:
function onCreated() {
  
this.test();
}
public function 
test() {
  
temp.file = new TStaticVar();
  
temp.file.var_1 "moo";
  
temp.file.var_2 46;
  
  
with (temp.file) {
    
temp.keys getstringkeys("this.var_");
  }
  echo(
"Keys: " temp.keys);

Reply With Quote
  #12  
Old 08-28-2008, 09:28 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
PHP Code:
function onCreated() {
  
this.test();
}
public function 
test() {
  
temp.file = new TStaticVar();
  
temp.file.loadvars("gangs/Los Carteles.txt");
  
  
with (temp.file) {
    
temp.keys getstringkeys("this.rights-");
    
    for (
temp.itemp.keys)
    {
      if (
this.("rights-" temp.i)[7] == 1)
      {
        echo(
temp.i);
      }
    }
  }

basically I was trying to cycle through all the accounts and their rights and find out if they had a specific right (leader right)

thanks
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #13  
Old 08-28-2008, 09:39 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Frankie View Post
PHP Code:
... 
basically I was trying to cycle through all the accounts and their rights and find out if they had a specific right (leader right)

thanks
Also, loops inside with() aren't optimized Just thought you would want to know =p
__________________
Reply With Quote
  #14  
Old 08-28-2008, 09:43 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
makevar("this.rights-" @ temp.i) instead of this.("rights-" @ temp.i)
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #15  
Old 08-28-2008, 11:30 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
Quote:
Originally Posted by Chompy View Post
Also, loops inside with() aren't optimized Just thought you would want to know =p
it doesn't work if I take the for() loop out of the with()
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #16  
Old 08-28-2008, 11:32 PM
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
Quote:
Originally Posted by xXziroXx View Post
makevar("this.rights-" @ temp.i) instead of this.("rights-" @ temp.i)
It shouldn't make a difference though, should it? I prefer this.(@ "blah").
__________________
Reply With Quote
  #17  
Old 08-28-2008, 11:42 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 cbk1994 View Post
It shouldn't make a difference though, should it? I prefer this.(@ "blah").
It makes a difference if there are any dots in temp.i... I think.
__________________
Reply With Quote
  #18  
Old 08-29-2008, 12:18 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
this.(STUFF HERE) should only be used with dynamic variables, and makevar("this." @ STUFF HERE)) with normal strings. Otherwise they will spontaneously behave odd from time to time, and maybe they're not supposed to do that, but I've dealt a lot with this particular issue over the last years.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #19  
Old 08-29-2008, 12:32 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 xXziroXx View Post
this.(STUFF HERE) should only be used with dynamic variables, and makevar("this." @ STUFF HERE)) with normal strings. Otherwise they will spontaneously behave odd from time to time, and maybe they're not supposed to do that, but I've dealt a lot with this particular issue over the last years.
I use this.(stuff here) all the time because I hate hate hate how messy code looks when using makevar(), and I have never had any issues.
Reply With Quote
  #20  
Old 08-29-2008, 02:02 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
my post got cut off because Chris started a new page in case you guys didn't see :[

Quote:
Originally Posted by Chompy View Post
Also, loops inside with() aren't optimized Just thought you would want to know =p
it doesn't work if I take the for() loop out of the with()


it's just making me curious now that he said that.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #21  
Old 08-29-2008, 03:11 AM
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
BOOYAH!

PHP Code:
function onCreated() {
  
this.test();
}
public function 
test() {
  
temp.file = new TStaticVar();
  
temp.file.loadvars("gangs/Los Carteles.txt");
  
  
with (temp.file) {
    
temp.keys getstringkeys("this.rights-");
  } 
  for (
temp.itemp.keys)
  {
    if (
temp.file.("rights-" temp.i)[7] == 1)
    {
      echo(
temp.i);
    }
  }

Should work rougly.
Reply With Quote
  #22  
Old 08-29-2008, 03:30 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 TheStan View Post
BOOYAH!

PHP Code:
function onCreated() {
  
this.test();
}
public function 
test() {
  
temp.file = new TStaticVar();
  
temp.file.loadvars("gangs/Los Carteles.txt");
  
  
with (temp.file) {
    
temp.keys getstringkeys("this.rights-");
  } 
  for (
temp.itemp.keys)
  {
    if (
temp.file.("rights-" temp.i)[7] == 1)
    {
      echo(
temp.i);
    }
  }

Should work rougly.
If that was C++ you'd have a memory leak. And you forgot the @ before "rights-" in the loop.
__________________
Reply With Quote
  #23  
Old 08-29-2008, 03:37 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 Inverness View Post
If that was C++ you'd have a memory leak. And you forgot the @ before "rights-" in the loop.
Thank God it's not C++.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #24  
Old 08-29-2008, 03:53 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 LoneAngelIbesu View Post
Thank God it's not C++.
I wouldn't say that.

Having a server crash due to Stan's scripting error would be popcorn-worthy.
__________________
Reply With Quote
  #25  
Old 08-29-2008, 04:32 AM
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
I wouldn't say that.

Having a server crash due to Stan's scripting error would be popcorn-worthy.
That's all well and funny but you seem to be forgetting one thing had you been paying close attention Invern...that isn't my script. I copied and pasted and just moved the for loop and changed "this.(@ blah)" to "temp.file.(@ black)" any other errors are of his property.
Reply With Quote
  #26  
Old 08-29-2008, 04:39 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
I don't understand what temp.file.("rights-" @ temp.i) is any different from temp.file.(@ "rights-" @ temp.i
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #27  
Old 08-29-2008, 05:00 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 Frankie View Post
I don't understand what temp.file.("rights-" @ temp.i) is any different from temp.file.(@ "rights-" @ temp.i
PHP Code:
function onCreated() {
  
temp."foo";
  
temp.i.rights_foo "bar";
  echo(
temp.i.(@ "rights_" temp.e));
  echo(
temp.i.("rights_" temp.e));

Returns:
PHP Code:
Weapon/GUI-script _DylanTest2 added/updated by LoneAngelIbesu
bar
bar 
So, I don't see the difference either.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #28  
Old 08-29-2008, 05:04 AM
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
There is no difference according to code. The different is preference. :/
Reply With Quote
  #29  
Old 08-29-2008, 05:07 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
Quote:
Originally Posted by Frankie View Post
I don't understand what temp.file.("rights-" @ temp.i) is any different from temp.file.(@ "rights-" @ temp.i
I'm actually not sure ... that's how I've always seen it done though, so that's how I've done it. I wonder why people do it (if it really DOES make a difference).
__________________
Reply With Quote
  #30  
Old 08-29-2008, 05:42 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by TheStan View Post
That's all well and funny but you seem to be forgetting one thing had you been paying close attention Invern...that isn't my script. I copied and pasted and just moved the for loop and changed "this.(@ blah)" to "temp.file.(@ black)" any other errors are of his property.
Then don't present it as such?
Say "Hey, you should organize it like this" rather than "Hey, this should work."
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #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
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 01:49 AM.


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