<p><a href="http://code.google.com/p/lslvault/source/browse/trunk/TeleportOs/TeleportRenameRegionColonTargetVector.lsl">http://code.google.com/p/lslvault/source/browse/trunk/TeleportOs/TeleportRenameRegionColonTargetVector.lsl</a> here is the collide I need to reset when region is restarted to have touch or collision working can you tell me which part of this script is relying on region services so it needs to be reset at restart ?</p>

<div class="gmail_quote">Il giorno 30/mar/2012 12:17, "Gudule Lapointe" <<a href="mailto:gudule@spekuloos.be">gudule@spekuloos.be</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Sorry, but this is ambiguous.</div><div><br></div><div>At the question "<span style="background-color:rgb(255,255,51)">Why should some script to be manually reset(…)"</span>, the answer was given: "they don't, you can reset them automatically with correct change state".</div>
<div><br></div><div>If the question is actually "why should they be reset?". My personal answer is: It sounds logical to me that a script relying on the region needs adjustments when the region conditions change.</div>
<div><br></div><div>But actually, in most cases, a reset is not really needed, it's just the lazy way to ensure everything is done after changes. I have some scripts which I don't reset and where I just force some checks, using sates or a function, when conditions changes (owner, region, attached, …).</div>
<div><br></div><div>About the question "Is this to be considered a bug?", if your script does not reset when you use the correct change state, it would be a bug.</div><div><br></div><div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div>--</div><div><a href="http://www.speculoos.net/" target="_blank">http://www.speculoos.net/</a></div><div><a>secondlife://speculoos.net:8002/</a></div><div>Speculoos, the belgian cookie-flavored metaverse</div></div></span></div>
</span></div></span></div></span></div></span></span>
</div>
<br><div><div>Le 30 mars 2012 à 10:29, Salahzar Stenvaag a écrit :</div><br><blockquote type="cite">Thanks for your answers, they are all quite clarifying especially Justin's remark on stopping/starting which seems an easy and practical workaround. (I'm also impressed by the fact that many of you did answer so rapidly, this means that opensim scripting community is NOT small, should be some way to exchange tricks and tips somewhere).<div>

<br></div><div>My original question however is NOT how to force the restart of the script after a restart (actually I checked my script and it used 256, so probably I have to change it to 1024, and that probably would solve the problem).</div>

<div><br></div><div>The core of the question IS:<span style="background-color:rgb(255,255,51)"> Why should some script to be manually reset to retain their original behaviour? </span>Is this to be considered a bug and so I should file a Mantis, or your experience is different? (Maybe I have to set up some particular things in opensim.ini or I erroneously set a different setup. For instance I set up to NOT delete scripts at startup in my sims, and this might be interacting with other behaviour?).</div>

<div><br></div><div>Maybe when region restarts some events are forgotten to be reinstalled from the simulator script engine? I'm very curious to understand how the XEngine is working so to have a look and figure out myself what's happening. Is there any documentation on this piece of code?</div>

<div><br></div><div>Thanks for your feedbacks and helps,</div><div>salahzar<br><br><div class="gmail_quote">On Fri, Mar 30, 2012 at 4:22 AM, Justin Clark-Casey <span dir="ltr"><<a href="mailto:jjustincc@googlemail.com" target="_blank">jjustincc@googlemail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On 29/03/12 20:34, Salahzar Stenvaag wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I programmed a teleport which uses osTeleportAgent when touched or collistion start (volumedetect), and it works<br>
correctly, but whenever region restarts it MUST be reset manually to work correctly.<br>
I also added change() event checking for 255 changed value to resetscript when region restart is detected but it seems<br>
not working.<br>
Version used is 0.7.3-post fixes.<br>
<br>
Do you observe in your sims the same behaviour? I noticed that many scripts need to be reset after a while otherwise<br>
they are not working :(<br>
Since I'm seeing that recently scripting had a real improvement in OpenSim it is a pity that we don't have a way to be<br>
sure they are correctly working . I keep telling people that they need to restart scripts in opensim whenever they<br>
notice strange behaviours, and this appeared true for many cases...<br>
<br>
<br>
I'm now seeing that starting from 0.7.3 version is possible to stop / show / start all scripts maybe it is possible to<br>
reset all scripts?<br>
</blockquote>
<br></div></div>
stop/start is equivalent to a reset I think, whilst suspend/resume preserve state.<span><font color="#888888"><br>
<br>
-- <br>
Justin Clark-Casey (justincc)<br>
<a href="http://justincc.org/blog" target="_blank">http://justincc.org/blog</a><br>
<a href="http://twitter.com/justincc" target="_blank">http://twitter.com/justincc</a></font></span><div><div><br>
______________________________<u></u>_________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-dev</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>Opensim-dev mailing list<br><a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br><a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a></blockquote>
</div><br></div></div><br>_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br></blockquote></div>