Script reset and left click
|
|
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
|
01-08-2008 22:29
At the end of the road and all the scripts finally done and working, some strange behavior popups
clicking the prim and do everything it wants works fine
when it`s done, i reset all scripts inside it, BUT, after that happens, it is unresponsive to a left click, as if the default action is nothing
touching it with a single right click and the left click works again
i`ve added a llSay() to the default states to check if they reset and they do, sim has no problems, scripts throw no errors, scripts aren`t spamming eachother trough LinkedMessage with an llSay() there aswell, any ideas?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-09-2008 03:46
I seem to remember some trouble with multiple states and not having a touch event in the last state before a reset causing the default state not to accept them. that might be what's occuring, couldn't say for sure without seeing code, but it's a possibility.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
|
01-09-2008 08:34
From: Void Singer I seem to remember some trouble with multiple states and not having a touch event in the last state before a reset causing the default state not to accept them. that might be what's occuring, couldn't say for sure without seeing code, but it's a possibility. thanks void, will try it the moment when the servers come back 
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
01-09-2008 08:52
Ha! One of mine. See http://jira.secondlife.com/browse/SVC-1039. Fixed internally. (And you say the jira never works!  )
|
|
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
|
01-09-2008 09:04
oh damn, hell froze over... gotta get some winter clothing now thanks for linking it, that will resolve the issue, spent something like 2 hours fiddling with it and just get some sleep after giving up and ask here lol
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-09-2008 19:48
I guess the way to fix this, and avoid having a touch handler in the last state would be to create yet another state, with a touch handler and and llResetScript() called from the state entry.... then call the state whenever you would normally call llResetScript().... at least till v1.19... annoying
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Alicia Sautereau
if (!social) hide;
Join date: 20 Feb 2007
Posts: 3,125
|
01-09-2008 20:11
From: Void Singer I guess the way to fix this, and avoid having a touch handler in the last state would be to create yet another state, with a touch handler and and llResetScript() called from the state entry.... then call the state whenever you would normally call llResetScript().... at least till v1.19... annoying that would also work, but as qie suggested, i just added a empty touch() to the 2nd state and it worked perfectly  should have known it was SL as usually instead spending 2 hours figuring what i broke now lol
|
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
01-10-2008 15:49
A second workaround, force an ObjectUpdate by changing the hover text, alpha, or something in your default state's state_entry: From: someone default { state_entry() { llSetText(" ", <1.0, 1.0, 1.0>, 1.0); llSetText("", <1.0, 1.0, 1.0>, 1.0); }
... I couldn't get it to work without actually changing something, temporarily
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-10-2008 18:07
a better hack-around than mine =)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|