Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-11-2009, 09:43 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Sending data

Basically, here's my problem:

I have an object clientside which I need to send serverside, so I use object.saveVarsToArray(false). When the object is received serverside, it's loading it, then saving it to a text file (for this example, data/test.txt).

Then, on demand, I need a player to be able to load the object that was saved serverside. Normally I would loadVars() the file, then saveVarsToArray(false) and send it clientside, where it can be loaded to recover the object.

However, I will be sending potentially huge amounts of data. I doubt that I will exceed the limits of triggerclient/server, but I want it to be robust in case it should happen.

As far as I know, triggerclient/server will cut off the paramaters, rather than split into multiple packets (this may be the wrong word, correct me if so) and waiting for all of them to arrive to trigger the action. If this is the case, how can I send large amounts of data back and forth (client -> server and server -> client) without losing any of it? I suppose I could split the trigger up manually, but that would be a bit messy, and I'm hoping there's a better way.

Any suggestions?
__________________
Reply With Quote
 


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 11:00 PM.


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