Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need Help!!!!

Ray Zymurgy
Registered User
Join date: 5 Aug 2007
Posts: 12
11-12-2007 13:22
Need Help!!!!

--------------------------------------------------------------------------------

I made a drive menu for sex bed....in that i have self, boy/girl, boy/girl2, girl/girl, anal, oral, bdsm button....when reset script after get all anim in bed i receive that message...
Script run-time error & Stack-Heap Collision

What i can do for resolve this?


Thx
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
11-12-2007 13:32
You will get that message when your script has used too much memory. Look at the way you are storing things and see if you can find a way to use less. If you can't use less, look at splitting some of the work into another script.
Ray Zymurgy
Registered User
Join date: 5 Aug 2007
Posts: 12
11-12-2007 16:09
How many anim i can put in Hud Menu?
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
11-12-2007 16:47
Not sure what you mean. llDialog() can handle up to 12 buttons. Is this a script you are writing, or are you trying to add animations to a script you got from someone else? If you got the script elsewhere, can you find anything about limits in the scripts or notecards that came with it?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-12-2007 17:16
If you have more then 12 anim then you can put 11 on each menu plus a next button to bring up another menu etc. Or you could break the anims down by type like you listed and when you touch on of those buttons it will bring up a menu with just those anims.
_____________________
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
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-12-2007 17:19
There are more examples around but I posted this as an example the other day on how to call up a submenu from the main menu:

CODE

integer CHANNEL = 42;
list MENU_MAIN = ["Hi", "Bye"];// main menu
list MENU_OPTIONS = ["English", "Spanish", "Finished"]; // a submenu
string message2;

default {
state_entry() {
llListen(CHANNEL, "", NULL_KEY, "");
}

touch_start(integer total_number)
{
llDialog(llDetectedKey(0), "What Do you want to say?", MENU_MAIN, CHANNEL);
}

listen(integer channel, string name, key id, string message)
{
if (llListFindList(MENU_MAIN + MENU_OPTIONS, [message]) != -1)
{
llSay(0, name + " picked the option '" + message + "'.");
if (message == "Hi" | message == "Bye")
{
llDialog(id, "Which Language!", MENU_OPTIONS, CHANNEL);
message2 = message;
}
else if (message == "Finished")
{
}
else
{
if(message2 == "Hi")
{
if(message == "English")
{
llSay(0, "Hello");
}
else
{
llSay(0, "Hola");
}
}
else
{
if(message == "English")
{
llSay(0, "Goodbye");
}
else
{
llSay(0, "Hasta luego");
}

}
message2 = "";
}
}
}
}
_____________________
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
Ray Zymurgy
Registered User
Join date: 5 Aug 2007
Posts: 12
11-12-2007 17:37
ok but if i receive this error...how i can upgrade memory?


anybody can help me in-world?

just im me lolll


please
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-12-2007 18:17
There is no way to upgrade the memory. A stack-heap collision can be caused by a couple of things. In your case it is either a list that is too large. Just how many entries do you have in the list for the menu? Or it can also be caused by an endless loop caused by some bad code.

ugh if the names of the anims aren't too over the top. heehee. Then just go ahead and post your code here and we will get it up and running for you.

If you are worried about it or if it is something proprietary then you could drop a mod allowed copy on me in world. Just let me know so I can go in and get it. Check my profile and you will see that I no longer sell anything. All I do is code for myself and the forum.
_____________________
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