View Single Post
  #15  
Old 05-17-2011, 02:16 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by ffcmike View Post
Is this update supposed to be removing the need to manually update gmaps whenever a gmap level is uploaded?

This seems to be the case and if true.
So it seems pretty definite that this is the case, and while this is a decent update I've noticed some strange behaviour regarding clientside scripts joined to gmap npcs.
Sometimes normal functions which are part of a joined sub-class, called onCreated or on the first onPlayerEnters will return the "not found" error in f2/scripts, and this starts working again when the gmap is updated by the old manual way.

For instance...

NPC script:

PHP Code:
this.join("class1");

//#CLIENTSIDE
function onCreated(){
  
this.test();

class1 script:

PHP Code:
this.join("class2");

//#CLIENTSIDE
function test(){
  if(
this.someCheck()){
    
this.doSomething();
  }

class2 script:

PHP Code:
//#CLIENTSIDE
function someCheck(){
  return 
somecondition;

Would result in:

"someCheck not found in script of <some gmap npc>".
Reply With Quote