View Single Post
  #1  
Old 12-16-2005, 10:42 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Clientside script update problem

CheeToS said he would post a thread about this, but he apparently didn't.

With the current revision of Graal4 (or the NPC server...?), when updating scripts (classes at least...) on a server, the clientside script is basically removed/disabled. I tested this with a basic script:

HTML Code:
function onCreated()
{
  this.attr[2] = 0;
  this.setTimer(0.1);
}

function onTimeout()
{
  this.attr[2] = this.attr[2] + 1; // this.attr[2]++ seems to be broken.
  this.setTimer(0.1);
}

//#CLIENTSIDE
function onCreated()
{
  this.setTimer(0.05);
}

function onTimeout()
{
  this.message(this.attr[2]);
  this.setTimer(0.05);
}
(Yes, I know the script sucks...)

My theory is that it's related to the recent setbackto gani fix, but I'm probably wrong.

It'd be nice if you could get this fixed quickly.

[edit]

This only occurs for NPCs that the client already knows about. If I say, reset a DB-NPC, then warp it back into a level with the player, the player sees the new clientside script just fine.

Last edited by Rick; 12-16-2005 at 10:52 AM..
Reply With Quote