Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

List Limit?

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
05-22-2006 21:07
Is there a limit to the number of elememts that a list can contain. When I dump the list I have created which is made up of 2 to 4 digit elements, it stop at 65. Is that the limit or should I look for some other problem in the script?

MOD
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
05-22-2006 21:55
A list is limited to 72 elements when it's being declared in a script, but further elements can be appended to it dynamically; their actual size is only limited by the script's allowed memory, I think. Unless LL has changed something recently...
_____________________
- Making everyone's day just a little more surreal -

Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
Xero Havercamp
Registered User
Join date: 28 Mar 2006
Posts: 5
05-22-2006 22:03
I think a script is limited to 4K in size...
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
05-22-2006 23:53
I thought it was 16 K, including code and storage and stack.

See: http://secondlife.com/badgeo/wakka.php?wakka=memory
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
05-22-2006 23:56
16k for a script Xero. And it gives you nasty messages about stack-heap collisions when it runs out.

Mod. I've got a script that shuffles three decks of cards together somewhere. It's a nasty, nasty bodge, but I'll see if it still works. It certainly used to, so I can verify I've used more than 64 items successfully, but I've not done it recently. I'd be inclined to check elsewhere first.
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
Thanks all
05-23-2006 04:18
I believe I found my mistake. I was reading data in from a card and exceeded the 256 character limit for a line.

Mod
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
05-23-2006 09:49
Yup, that would do it!