Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Reading from Notecards vs Lists

Susie Chaffe
Registered User
Join date: 13 Mar 2007
Posts: 29
09-12-2008 14:28
I have a number of ferries running around the Linden waterways...following coordinates read from a notecard.
Some of these routes are long (Corsica 150+ sims), so up to now it has been impractible to load all the points into a list.
However with the release of Mono this is no longer the case.
Can anyone explain to me if there would be any real benefit to reading from a list instead of point by point from a notecard ?
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
09-12-2008 16:03
asset server lag

with list's you kinda know what to expect in delay times vs the VM ... using a note card system your kind of at the whim of the asset servers
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-12-2008 16:42
Personally I never use notecards, if I had customers then it might be different. You just have to be a little bit more creative with the script, but you can make it so that you can load the list from chat. Just remember to break it up into 1024 byte chunks first.

You can take a look at a slurl tp hud script that I have that outputs to chat for backup or reads in from chat.

http://www.google.com/notebook/public/04649246122957173952/BDSeqSgoQlN3opqgj?hl=en
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
09-12-2008 17:24
I think Osgeld nailed it.

Frankly, if it's working well as is, I'd leave it alone.
Susie Chaffe
Registered User
Join date: 13 Mar 2007
Posts: 29
09-13-2008 11:08
Thanks for the input everyone....I will give it a try.

The only remaining problem is how to pad out a strided list, some of the notecard lines have 3, 4 or even 5 instructions per line (token, vector, rotation etc).
Time to dig into the Wiki again :)
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
09-13-2008 15:23
Just always append the same number of items. Append "" for the ones that don't matter. E.g.:

MyList += [ arg1, arg2, arg3, "", "" ];

And, based on my nonscientific tests, you can forget the clumsy list appension optimization trick -- it doesn't seem to save space with Mono.
_____________________