PDA

View Full Version : How do I increase the stack size to add more attributes?


rebecah
23rd Apr 2008, 07:37 AM
Could someone tell me where the stack size it set to allow for more attributes? Please!

Error that I get after trying to add another attribute

Stack size: 7
Error: Attribute number out of range.

I changed the Attribute number in the raw data section and that seems to prevent the error. I looked at other items for changes to this and found all that I looked at are set to 0 with a stack size of 4. An item I'm using that works similar to what I'm creating is Echo's Carousel. She has 3 attributes that I want to use, but my original item has 7 attributes already. Is it because I'm using more than a certain number?

Inge Jones
23rd Apr 2008, 09:26 AM
You did right to change the Attribute number in raw data. The reason it's usually 0 is that each object comes with a certain number of attribute slots free of charge. If you want more than that you have to specify. I don't know what the number is, so when I make an object with custom attributes I always enter a number there.

Don't worry about the stack size. I have had objects with up to 50 attributes and never needed to raise that number. It's usually 4. I think it probably refers to how many nested Stack Object identies you can store to pop back to. Each object's stack is stored in the lot data. Usually objects don't need a large stack as most of the code runs in the using Sim's space.

Semi-global attributes (semi-attributes) are not added by upping the semi-attribute number in raw data - they are added by adding strings to the attribute text file in the semi-global group.