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
  #41  
Old 05-28-2007, 07:59 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by Inverness View Post
Uh, yes it can, just use triggeraction(). The shape needs to be set on both sides.
No, you can't triggeraction to itself on server, so the client receives it.
__________________
- Zidane / Zidaya
Reply With Quote
  #42  
Old 05-28-2007, 11:52 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
Hmm, there are other ways besides triggeraction().

Though, I suppose, with a chests system, if you really have 5000 then its best to have all data pre-loaded and only call server to flip things. Save your chest information to a variable on the clientside, not text file.

Text File = Hard Drive, Variable = RAM.

It can't be saved to a client variable for obvious reasons. Use something like player.chests
__________________

Last edited by Inverness; 05-29-2007 at 12:02 AM..
Reply With Quote
  #43  
Old 05-29-2007, 04:11 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by Inverness View Post
Hmm, there are other ways besides triggeraction().

Though, I suppose, with a chests system, if you really have 5000 then its best to have all data pre-loaded and only call server to flip things. Save your chest information to a variable on the clientside, not text file.

Text File = Hard Drive, Variable = RAM.

It can't be saved to a client variable for obvious reasons. Use something like player.chests
If you can't handle 4-5 mb (at tops.. ever), then.. yeah <.<.
__________________
- Zidane / Zidaya
Reply With Quote
  #44  
Old 05-29-2007, 04:33 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Even a mb for just chests seems a little excessive.
If you're worried about an array not being accessible, maybe create a quick GUI to edit people's chests and such?
Reply With Quote
  #45  
Old 05-29-2007, 05:38 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
2 kb = 5-6 chests already.

It isn't nothing big, a body is like a mb btw.
__________________
- Zidane / Zidaya
Reply With Quote
  #46  
Old 05-29-2007, 06:35 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
Save that data into a clientside var, don't need large file loading everytime I change level.
__________________
Reply With Quote
  #47  
Old 05-29-2007, 06:46 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
clientside var.

hm, I could.

do you mean something like:

Load an array called playerchests? ( so it doesnt show in attr? )
__________________
- Zidane / Zidaya
Reply With Quote
  #48  
Old 05-29-2007, 07:37 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
You should save all chest-related information in an array called player.chests on the clientside. It would be cleared on logout so you would need to have it sent to client on login and make sure you save any changes to server.
__________________
Reply With Quote
  #49  
Old 05-29-2007, 09:23 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Hm, and it could be of any size :o?
__________________
- Zidane / Zidaya
Reply With Quote
  #50  
Old 05-29-2007, 10:37 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
I have yet to find a limit on array sizes, as long as the array is only read by script and not displayed like client flags or dbnpc flags then it should be fine. You can allocate arrays in programming of any size as long as you have the memory to store the data.
__________________
Reply With Quote
  #51  
Old 05-29-2007, 11:40 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by Inverness View Post
I have yet to find a limit on array sizes, as long as the array is only read by script and not displayed like client flags or dbnpc flags then it should be fine. You can allocate arrays in programming of any size as long as you have the memory to store the data.
Thanks, I will change this soon. =D.

rep++
__________________
- Zidane / Zidaya
Reply With Quote
  #52  
Old 05-30-2007, 12:50 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
Quote:
Originally Posted by Inverness View Post
I have yet to find a limit on array sizes, as long as the array is only read by script and not displayed like client flags or dbnpc flags then it should be fine. You can allocate arrays in programming of any size as long as you have the memory to store the data.
Actually, you can put any size into a client. and clientr. variable (or any variable stored on the player's /open for that matter) but it will trim the variable when ever you edit the player using /open on RC. My solution: script your own custom /open ;o
__________________
Do it with a DON!
Reply With Quote
  #53  
Old 05-30-2007, 01:01 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 zokemon View Post
Actually, you can put any size into a client. and clientr. variable (or any variable stored on the player's /open for that matter) but it will trim the variable when ever you edit the player using /open on RC. My solution: script your own custom /open ;o
I know this, however /open is used frequently so it cant even be considered for the large arrays.

We cant script for custom RC now can we? Stefan should fix this problem.
__________________
Reply With Quote
  #54  
Old 05-30-2007, 01:24 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
Quote:
Originally Posted by Inverness View Post
I know this, however /open is used frequently so it cant even be considered for the large arrays.

We cant script for custom RC now can we? Stefan should fix this problem.
I already have.
__________________
Do it with a DON!
Reply With Quote
  #55  
Old 05-30-2007, 04:36 AM
MrAnonymous_P2P MrAnonymous_P2P is offline
Retired Oldbie
MrAnonymous_P2P's Avatar
Join Date: Oct 2006
Location: Cambodia
Posts: 722
MrAnonymous_P2P is an unknown quantity at this point
So..........what is the purpose of all this?
Reply With Quote
  #56  
Old 05-30-2007, 07:50 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by MrAnonymous_P2P View Post
So..........what is the purpose of all this?
What is the purpose of this post?
__________________
- Zidane / Zidaya
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 09:43 PM.


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