Change font size
It is currently Sun Jul 22, 2018 2:51 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 5 posts ]
Author Message
 Post subject: Lost-Prim Hunter Script
PostPosted: Tue Aug 25, 2009 3:45 pm 
OSG Elite
User avatar

Joined: Wed Mar 11, 2009 3:57 pm
Posts: 444
Have you deleted a prim with a script in it and it still loads when you fire up OpenSim ? Many of us have. ;P
Here is a simple little script to help hunt the bugger down.

I made this little LSL Script (at bottom of this note) and placed it at the extact coordinates as reported in the OpenSim.log on Launch for the Scripted Missing prim. I made this prim longer on the Z-Axis so that I could locate and manipulate it. After entering the Offending prims UUID saved the script and touched it. See comments at top of script. It travelled to ONE MILLION on the Z axis !, yes... you read that right! I brought the linked prims back to the surface and set the offending script to not running and was able to successfully delete it.

This has been filed into a Mantis report


{L_CODE}:
// Place the Offending PRIMS UUID as found in OpenSim.log on startup on next line. NOT the Scripts UUID.
key obj_id = "c40a2dae-509a-4553-affe-2c9ee63b95dd";
//
// Place this new prim at the location as shown in OpenSim.log.  Make it bigger then what you are looking for. IE 2m on Z
// Touch when placed and say YES to link/de-link  and teh offending prim will be attached to this
//
// NOTE WARNING:  Make sure that you have THIS PRIM in SELECTED in EDIT MODE when you touch it.  DO NOT LET IT GO !
// This will track off to the offending prim, you might be surprised to see where it goes !
//
default
{
    state_entry()
    {
        llSetObjectName("Lost-Prim-Hunter");
        llSay(0, "Prim-Linker running");
    }
    touch_end(integer num_detected)
    {
        llRequestPermissions(llGetOwner(), PERMISSION_CHANGE_LINKS);
    }
     run_time_permissions(integer perm)
    {
        // Only bother rezzing the object if will be able to link it.
        if (perm & PERMISSION_CHANGE_LINKS) llCreateLink(obj_id, FALSE);
    }
}

_________________
No further support of any kind, for any of my materials. Use as/is whereis.
PLEASE UNSTICKY Any Stickied Posting by myself.


Top
 Profile  
 
 Post subject: Re: Lost-Prim Hunter Script
PostPosted: Tue Aug 25, 2009 6:32 pm 
Site Admin
User avatar

Joined: Wed Jul 16, 2008 7:22 pm
Posts: 186
Very nice idea!


Top
 Profile  
 
 Post subject: Re: Lost-Prim Hunter Script
PostPosted: Thu Aug 27, 2009 1:10 pm 
OSG Elite

Joined: Wed Aug 05, 2009 1:59 am
Posts: 417
Thank you! Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!....
I have a bumpercar like 30 million meters down one of my regions, and still going, and going, and going, and going....
:o


Top
 Profile  
 
 Post subject: Re: Lost-Prim Hunter Script
PostPosted: Thu Sep 03, 2009 6:23 am 
OSG Elite
User avatar

Joined: Fri Oct 17, 2008 11:30 am
Posts: 300
Location: Yorkshire, England
Neat idea, Whitestar. I like it.

(With me it was a motorcycle I'd imported from SL, several months ago - in fact, about five minutes before I discovered that vehicles don't work the same in OS ...)

_________________
John
UK resident; OSGrid & Second Life: "Barrington John"; code monkey in RL
OSGrid region server: P4/3.6GHz/2GB, Ubuntu Karmic/Mono 2.6/MySQL 14.14v5.1.37, home ADSL (~8.5Mbps/0.85Mbps), 8-14 regions, 2 users


Top
 Profile  
 
 Post subject: Re: Lost-Prim Hunter Script
PostPosted: Thu Oct 01, 2009 3:21 pm 
Furious Typer
User avatar

Joined: Tue Aug 18, 2009 1:24 pm
Posts: 64
Location: Netherlands
I'm getting a lot of error when i run....

{L_CODE}:
Lost-Prim-Hunter: System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.



Server stack trace:

   bij OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llCreateLink(String target, Int32 parent) in d:\OSGRID\OSGRID RELEASES\git.release\OpenSim\Region\ScriptEngine\Shared\Api\Implementation\LSL_Api.cs:regel 3399

   bij System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

   bij System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

   bij System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)



Exception rethrown at [0]:

:o :o :o :o :o :o

_________________
۩____________________________________________________________________۩
Website: http://verwijs.wordpress.com
Website: http://verwijs-pc.nl (dutch)
Twitter: http://www.twitter.com/OpenSimFan/
Osgrid Profile: http://www.osgrid.org/elgg/pg/profile/Christopher.MetalFan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 5 posts ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net