Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-06-2011, 02:54 AM
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
NPC Sword and Shield no longer synchronised?

It seems showcharacter NPCs where sword and shield variables are set serverside are no longer being sent to the client, is this something that's intended?

This is somewhat if an inconvenience due to the fact that I actually set these synchronised variables serverside where it makes sense so that it's only the specific variables sent to the client and less script.
Albeit it's a guess that this is the more efficient thing to do as opposed to having such a script entirely clientside, clarification would also be good.
Reply With Quote
  #2  
Old 09-04-2011, 12:24 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
Similarly it now seems as if npc.image is not synchronised to clients when using setimg(); serverside onCreated.

For instance with:

PHP Code:
function onCreated() {
  
this.setimg("light2.png");

The image is not appearing, whereas using setimg(); clientside or setting the image within the offline NPC script editor it's fine.
Reply With Quote
  #3  
Old 09-04-2011, 04:54 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Semi-related: It'd be cool if we could control the syncing behaivor. I.e:

this.variable.synctoclient([bool disablesyncing]); - Tells NPC to synchronize variable with client-side.
__________________
Quote:
Reply With Quote
  #4  
Old 09-04-2011, 04:57 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
Quote:
Originally Posted by fowlplay4 View Post
Semi-related: It'd be cool if we could control the syncing behaivor. I.e:

this.variable.synctoclient([bool disablesyncing]); - Tells NPC to synchronize variable with client-side.
I can see this being handy
Reply With Quote
  #5  
Old 11-19-2011, 05:17 AM
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
Similarly it now seems as if npc.image is not synchronised to clients when using setimg(); serverside onCreated.

For instance with:

PHP Code:
function onCreated() {
  
this.setimg("light2.png");

The image is not appearing, whereas using setimg(); clientside or setting the image within the offline NPC script editor it's fine.
I just realised now that the reason this wasn't working is simply because light2.png does not exist serverside. I think it's an image downloaded with the client rather than a mainfile, so setimg(); must be checking to see if the image exists before applying it and synchronising it, whereas setting it within the name field of the editor will still synchronise it.

light2.png should probably be added to mainfiles.

Last edited by ffcmike; 11-19-2011 at 05:48 AM..
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 06:54 PM.


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