Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-15-2007, 12:39 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
Object Synchronization (Clientside<->Serverside)

Basically this would be the ability to sync a TStaticVar on clientside and serverside so a variable change in one is reflected in the other just like with client flags. The reason I want this feature is for my mudlib which uses an all-purpose mud object at GraalObject.mud to store data and I thought it would be more efficient for Graal to sync data to client rather than doing it manually each time its changed.

Ideally the options would be controlled from serverside and there would be static variables to determine how it works, such as what variables to synchronize and if only serverside changes should be synced (like clientr.) or changes to both sides be synced.
__________________
Reply With Quote
  #2  
Old 09-15-2007, 06:54 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I approve.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 09-15-2007, 07:17 PM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Approve.
__________________
Stan.
Reply With Quote
  #4  
Old 09-15-2007, 07:39 PM
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
Yes, please.
__________________

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
  #5  
Old 09-15-2007, 08:30 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
Guilty, Inverness is guilty in making up an amazing idea that should be implented, and along with global functions.
__________________
Reply With Quote
  #6  
Old 09-16-2007, 01:47 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
Inverness.ego ++;
__________________
Reply With Quote
  #7  
Old 09-16-2007, 10:18 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 Inverness View Post
Inverness.ego ++;
man... you're guilty in giving yourself ego in a positive way ;o

Stefan, why can't you implent this? Same with global functions :o
__________________
Reply With Quote
  #8  
Old 09-17-2007, 04:15 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'd love to have this feature sooner rather than later >.>
__________________
Reply With Quote
  #9  
Old 09-23-2007, 09:06 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
Bump

Waiting for a verdict.
__________________
Reply With Quote
  #10  
Old 09-27-2007, 07:30 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
An easy way to fix this is having an event each time a variable changes... Such as:

PHP Code:
function variableChangedvarNameoldValuenewValue )
  {
  
triggerclient(stuff_here"updateVar"this.namevarNamenewValue );
  } 
Then having the clientside find the TStaticVar name:

(@ this.name ).(@ varName ) = newValue;

The this.name should be matching on both clientside and serverside for this to work, however... But it would be one method to do it.
Reply With Quote
  #11  
Old 09-27-2007, 10:02 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 Novo View Post
An easy way to fix this is having an event each time a variable changes... Such as:

PHP Code:
function variableChangedvarNameoldValuenewValue )
  {
  
triggerclient(stuff_here"updateVar"this.namevarNamenewValue );
  } 
Then having the clientside find the TStaticVar name:

(@ this.name ).(@ varName ) = newValue;

The this.name should be matching on both clientside and serverside for this to work, however... But it would be one method to do it.
That was my first thought, I even suggested a hard-coded onVarChange() event for this, however I'm sure having this feature integrated into Graal would make it much more efficient as Graal is already synchronizing serverr. and client. variables.
__________________
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 03:33 AM.


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