Jump to content

Amelia Venus

Resident
  • Posts

    8
  • Joined

  • Last visited

Reputation

1 Neutral
  1. Could do a touch and hold though .. and release to choose .. then you can read where their mouse is ..
  2. well nevermind .. not so much where their mouse is
  3. This can be done via experience. If they are in the experience you can always know their camera parameters.
  4. Well it's human editable 64kb of "Stuff" .. can inject it all into the Linkset Data of the root prim as well
  5. key nc; key numlines; default { state_entry() { llLinksetDataReset(); nc=llGetInventoryKey(llGetInventoryName(INVENTORY_NOTECARD,0)); numlines=llGetNumberOfNotecardLines(nc); } on_rez(integer s) { llResetScript(); } dataserver(key id, string m) { if(id==numlines) { integer ncl=(integer)m; llOwnerSay(m); integer i; for(i=0;i<ncl;i++) { string in=llGetNotecardLineSync(nc,i); llLinksetDataWrite("nc0L"+(string)(1+i/1000000.0),in); } llOwnerSay((string)llLinksetDataAvailable()); llOwnerSay((string)llGetFreeMemory()); llOwnerSay(llLinksetDataRead("nc0L1.000000")); } } changed(integer c) { if(c&CHANGED_INVENTORY)llResetScript(); } }
  6. string coffeepackStr (string source) { string result; integer len = llStringLength(source); integer i; integer a; // unpacked string if (llGetSubString(source, 0, 0) != llChar(1)) { result = llChar(1); // char(1) is our packed string symbol. Change to whichever to suit integer check = TRUE; for (i = 0; i < len && check; i += 2) { a = llOrd(source, i); integer b = llOrd(source, i + 1); // check a in range, check b in range, catch odd length string check = (a >= 32 && a <= 126) && ((b >= 32 && b <= 126) || (!b && i == len-1)); if (check) result += llChar(a << 8 | b); } // unpackable !! return original if (!(len && check)) result = source; } // Packed String else { for (i = 1; i < len; i++) // start at 1 to skip the symbol { a = llOrd(source, i); result += llChar(a >> 8); a = a & 255; if (a) result += llChar(a); // catch odd length string } } return result; } default { state_entry() { llLinksetDataReset(); llOwnerSay((string)llLinksetDataAvailable()); llLinksetDataWrite("123456781234567812345678123456781234567812345678","123456781234567812345678123456781234567812345678"); llLinksetDataWrite("223456781234567812345678123456781234567812345678","123456781234567812345678123456781234567812345678"); llLinksetDataWrite("323456781234567812345678123456781234567812345678","123456781234567812345678123456781234567812345678"); llLinksetDataWrite("423456781234567812345678123456781234567812345678","123456781234567812345678123456781234567812345678"); llOwnerSay((string)llLinksetDataAvailable()); llLinksetDataReset(); llLinksetDataWrite(coffeepackStr("123456781234567812345678123456781234567812345678"),coffeepackStr("123456781234567812345678123456781234567812345678")); llLinksetDataWrite(coffeepackStr("223456781234567812345678123456781234567812345678"),coffeepackStr("123456781234567812345678123456781234567812345678")); llLinksetDataWrite(coffeepackStr("323456781234567812345678123456781234567812345678"),coffeepackStr("123456781234567812345678123456781234567812345678")); llLinksetDataWrite(coffeepackStr("423456781234567812345678123456781234567812345678"),coffeepackStr("123456781234567812345678123456781234567812345678")); llOwnerSay((string)llLinksetDataAvailable()); } } [00:43:26] prim: 131072 [00:43:26] prim: 130688 [00:43:26] prim: 130488
  7. It's it likely that packed strings contain a comma character? The 2 characters would need to be llChar(0) and then the comma. llChar(0) is not >=32.
×
×
  • Create New...