removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<Solution name="Fast_Find_Lines_in_a_Notecard">
<Project name="Fast_Find_Lines_in_a_Notecard" path="Fast_Find_Lines_in_a_Notecard\Fast_Find_Lines_in_a_Notecard.prj" active="true"/>
</Solution>

View File

@@ -0,0 +1,6 @@
<Project name="Fast_Find_Lines_in_a_Notecard" guid="D7F289C1-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D7F28AB3-6C00-1014-B904-200204C60A89">
<Script name="Fast_Find_Lines_in_a_Notecard_1.lsl" guid="D7F2CABE-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,110 @@
// :CATEGORY:Notecard Reader
// :NAME:Fast_Find_Lines_in_a_Notecard
// :AUTHOR:AmaOmega
// :CREATED:2010-01-10 05:20:56.000
// :EDITED:2013-09-18 15:38:52
// :ID:298
// :NUM:397
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// There is an LL function that does this now:
// llGetNumberOfNotecardLines
//
// This is a fast way to find the number of lines in a notecard. It is fast as is, and can be adjusted to be faster if you have an idea about the notecards you will be getting the size of. This is an implementation of a binary search.
// :CODE:
// Made by Ama Omega
// Version 1.1
// Adjust these two values for your notecards:
// A Higher START_INC will be faster if
// you have a large range of possible card lengths
// A Lower START_INC will be faster if
// you have a small range of possible card lengths
// This needs to be less than START_LINE
integer START_INC = 10;
// This should be set to your average note card length.
integer START_LINE = 20;
// Below is the actual code.
integer inc;
integer line;
string name;
key request;
default
{
state_entry()
{
inc = START_INC;
line = START_LINE;
}
changed(integer total_number)
{
inc = START_INC;
line = START_LINE;
name = llGetInventoryName(INVENTORY_NOTECARD,0);
request = llGetNotecardLine(name,line);
}
dataserver(key query, string data)
{
if (query == request)
{
request = "";
if (data == EOF) // Too Far
{
if ( inc == 1 ) // We just went up 1 space. We go up if a line was found.
{