Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #31  
Old 05-22-2007, 01:46 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
I already know points are left behind but I meant the object itself. If it wasn't destroyed on loss of references it could still function.
__________________
Reply With Quote
  #32  
Old 05-22-2007, 08:15 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Hmm...i doubt gscript has a garbage collector. Make a random global TStaticVar(), remove the code that made it and check up on it every now and then .
Reply With Quote
  #33  
Old 05-22-2007, 11:45 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Fun stuff!
Good job
__________________
Do it with a DON!
Reply With Quote
  #34  
Old 05-28-2007, 11:20 AM
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
Quote:
Originally Posted by Twinny View Post
Hmm...i doubt gscript has a garbage collector. Make a random global TStaticVar(), remove the code that made it and check up on it every now and then .
There is, it's quite accurate, checking recursive links.

About the "not accessible" error: I have fixed it, will upload new npcservers soon.

About npc rights problems: The problem is that people write their account name wrong (wrong case), so the npcserver is not accepting it; to fix it write it correctly e.g. Shadow87 instead of shadow87, I will also upload new npcservers soon.

Last edited by Admins; 05-29-2007 at 10:23 AM..
Reply With Quote
  #35  
Old 02-26-2008, 12:53 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Reviving thread here but are variable functions available on the client yet? I tried to make one but it didn't work
Reply With Quote
  #36  
Old 02-26-2008, 06:08 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Twinny View Post
Reviving thread here but are variable functions available on the client yet? I tried to make one but it didn't work
They work (at least in simple cases):

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.test_func = function () {
    echo(
"I win!");
  };

  
this.test_func();

I've seen the functionality break down within with() blocks.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/

Last edited by Tolnaftate2004; 02-26-2008 at 06:10 PM.. Reason: Because te****nc contains raunchy language!
Reply With Quote
  #37  
Old 02-27-2008, 01:07 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 Tolnaftate2004 View Post
I've seen the functionality break down within with() blocks.
If you return in a with() block crazy stuff happens.
__________________
Reply With Quote
  #38  
Old 02-27-2008, 04:10 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Inverness View Post
If you return in a with() block crazy stuff happens.
This is true, but I meant that dynamic functions are treated more like inline functions.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
temp.var = new TStaticVar();
  
with (temp.var) {
    
this.test_func = function () {
      echo(
"I win!");
    };
  }

  
temp.var.test_func(); // Doesn't work

__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #39  
Old 02-27-2008, 10:07 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
strange, no idea but would ths work


PHP Code:
temp.var.test_func = function() 
{
  echo(
"I Win!");

__________________

Last edited by Tolnaftate2004; 02-27-2008 at 10:36 AM.. Reason: edit != quote (sorry)
Reply With Quote
  #40  
Old 02-27-2008, 10:37 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by xAndrewx View Post
strange, no idea but would ths work


PHP Code:
temp.var.test_func = function() 
{
  echo(
"I Win!");

Yes, granted they are called & defined in the same scope (as far as I can tell).
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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:53 AM.


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