UbitUmarov
acbec23f48
clean appdomain related things
2024-03-26 21:34:33 +00:00
UbitUmarov
782bad9944
and rename it again as just osGetLinkInventoryKey, so it is coerent with llGetInventoryKey (mantis 9119)
2024-03-26 18:32:05 +00:00
UbitUmarov
7c63ff1150
rename new osGetLinkInventoryItemKey as osGetLinkInventoryItemAssetKey
2024-03-24 11:34:23 +00:00
Jeff Kelley
1aa7bea608
osGetLinkInventoryAssetKey
...
deleted: bin/System.Drawing.Common.dll
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt >
2024-03-24 11:25:09 +00:00
UbitUmarov
6afa7d564b
same for osGetLinkInventoryItemKeys
2024-03-05 19:04:36 +00:00
UbitUmarov
c618c4a6c4
rename the new osGetInventoryKeys as osgetinventoryitemkeys and osgetlinkinventorykey as osgetinventoryitemkey for coerence and to make clear that key means the item key within prim inventory and not its asset key as in ll funtion
2024-03-05 18:51:42 +00:00
Jeff Kelley
d58f9f0f5d
osGetSitTarget
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt >
2024-02-29 20:28:20 +00:00
Adil El Farissi
60214e6e81
Add 2 OSSL functions to the LinkInventory collection
...
Add Functions:
+ osGiveLinkInventoryList(integer linkNumber, key destination, string category, list inventory)
Give a group of items located in a child prim inventory
+ osRemoveLinkInventory(integer linkNumber, string name)
Remove an item from a child prim inventory
LSL Script example:
<pre><code>
default
{
touch_start(integer a){
integer linkNumber = llDetectedLinkNumber(0);
list linkInventoryNames = osGetLinkInventoryNames(linkNumber, INVENTORY_ALL);
osGiveLinkInventoryList(linkNumber, llDetectedKey(0), llGetLinkName(linkNumber), linkInventoryNames);
for(integer i = 0; i < llGetListLength(linkInventoryNames); i++){
osRemoveLinkInventory(linkNumber, llList2String(linkInventoryNames, i));
}
}
}
</code></pre>
2024-02-25 07:14:49 +00:00
UbitUmarov
eb9afdaffc
break them a bit more...
2024-02-24 15:47:06 +00:00
UbitUmarov
121f270414
a few changes to last PR (aes methods) - all still untested
2024-02-24 14:50:54 +00:00
Adil El Farissi
b4f33ad594
Replaced OSSLError by OSSLShoutError
2024-02-23 23:42:18 +00:00
Adil El Farissi
db80781e7d
Basic implementation of AES encryption/decryption and respective OSSL functions
...
Add methods:
+ private static string AESEncryptString(string secret, string plainText, string ivString= null)
AES Encrypt a string using a password and a random or custom Initialization Vector.
+ private static string AESDecryptString(string secret, string encryptedText, string ivString= null)
AES Decrypt the string encrypted by AESEncryptString with the same password and ivString used in the encryption.
Methods implementations:
+ Util.AESEncrypt(string secret, string plainText)
+ Util.AESDecrypt(string secret, string encryptedText)
+Util.AESEncryptTo(string secret, string plainText, string ivString)
+ Util.AESDecryptFrom(string secret, string encryptedText, string ivString)
OSSL functions as first case of use:
+ osAESEncrypt(string secret, string plainText)
+ osAESDecrypt(string secret, string encryptedText)
+ osAESEncryptTo(string secret, string plainText, string ivString)
+ osAESDecryptFrom(string secret, string encryptedText, string ivString)
LSL script example:
<pre><code>
string plainText = "Hello World :)";
string secret = "#!qUeRtY$@123^456€!#";
default
{
touch_start(integer i)
{
string encryptedText = osAESEncrypt(secret, plainText);
llOwnerSay("\nEncrypted with osAESEncrypt:\n"+ encryptedText);
string decryptedText = osAESDecrypt(secret, encryptedText);
llOwnerSay("\nDecrypted with osAESDecrypt:\n"+ decryptedText);
// Encription / Decription with custom Initialization Vector.
string ivString = (string)llGetOwner() /* +"_"+ llGenerateKey() */;
string encryptedToText = osAESEncryptTo(secret, plainText, ivString);
llOwnerSay("\nEncrypted with osAESEncryptTo:\n"+ encryptedToText);
string decryptedFromText = osAESDecryptFrom(secret, encryptedToText, ivString);
llOwnerSay("\nDecrypted with osAESDecryptFrom:\n"+ decryptedFromText);
}
}
</code></pre>
Web Rain :)
2024-02-23 21:14:33 +00:00
UbitUmarov
35a40ada77
fix ossl set ProjectionFocus range
2024-02-22 18:16:25 +00:00
UbitUmarov
76c813c2e4
useless changes
2024-02-22 01:47:24 +00:00
UbitUmarov
b383a027dc
cosmetics...
2024-02-21 15:58:05 +00:00
UbitUmarov
152b64179b
a few changes to last PR, let getlink select root; add getkeys permissions checks (don't remember why we have those) plus cosmetics
2024-02-21 15:20:53 +00:00
Adil El Farissi
e835a46ec8
Fix uuid to string
2024-02-20 21:58:39 +00:00
Adil El Farissi
ca722ecdd8
Add some OSSL functions related to child prims inventory manipulations
...
Add functions:
+ osGiveLinkInventory(integer linkNumber, key destination, string inventory)
Give an item located in a child prim inventory.
+ osGetInventoryNames(integer type)
Return a list of items names by type (or INVENTORY_ALL) located in the prim inventory.
+ osGetLinkInventoryNames(integer linkNumber, integer type)
Return a list of items names by type (or INVENTORY_ALL) located in a child prim inventory.
+ osGetInventoryKeys(integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in the prim inventory.
+ osGetLinkInventoryKeys(integer linkNumber, integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in a child prim inventory.
+ osGetLinkInventoryKey(integer linkNumber, string name)
Return the UUID of the specified item name located in a child prim inventory.
+ osGetLinkInventoryDesc(integer linkNumber, string itemNameorid)
Return the description of an item located in a child prim inventory.
+ osGetLinkInventoryName(integer linkNumber, key itemId)
Return the name of an item located in a child prim inventory.
Note: the LinkInventory functions don't have access to the root prim contents. This may change if requested by the community...
2024-02-20 17:36:33 +00:00
UbitUmarov
35e3383167
fix threat level of osDrawText
2023-06-30 23:03:53 +01:00
UbitUmarov
89130b9f0a
fix osSetParcelDetails, plus more cosmetics
2023-06-21 10:30:14 +01:00
UbitUmarov
2849e57920
add osGetPrimCount([key primKey]) and osGetSittingAvatarsCount([key primkey]) that just do want name says unlike ll mess, absent primKey argument means current linkset
2023-06-14 22:45:37 +01:00
UbitUmarov
2e2dee76e4
put back CheckThreatLevel on osDie
2023-06-02 23:14:45 +01:00
UbitUmarov
f8d1e78e8a
mantis 9080: make osDie only work on object rezzed by script linkset, as spec
2023-06-02 23:01:01 +01:00
UbitUmarov
8b6b00d597
fail to find lsl api in ossl should be a global fatal error
2023-06-02 22:37:10 +01:00
UbitUmarov
db1c739ef2
preloadsound is suposed to send ownerid, plus save ns on useless dic searchs
2023-05-31 21:44:48 +01:00
UbitUmarov
864871f490
a few changes
2023-05-05 11:45:17 +01:00
Jeff Kelley
b96ef0d00c
osSetPenColor
...
osSetPenColor1
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt >
2023-05-05 10:45:02 +01:00
UbitUmarov
549ebc1025
add old llList2ListStrided renamed osOldList2ListStrided to easy any possible script fixes
2023-04-27 22:15:19 +01:00
UbitUmarov
4c061a0602
add llListSortStrided and osListSortInPlaceStrided
2023-04-26 20:26:01 +01:00
UbitUmarov
93e06f87f6
add list osGetParcelIDs() and key osGetParcelID(), plus a few changes to previus commits
2023-04-16 20:00:35 +01:00
UbitUmarov
3dd1dd2f76
reduce potencial useless int casts from list items
2023-03-15 10:32:55 +00:00
UbitUmarov
bf90a8d1c5
reduce potencial useless string casts from list items
2023-03-15 09:22:14 +00:00
UbitUmarov
22ba1c7688
avoid array out of bounds on last terrain getheight
2023-02-14 02:02:37 +00:00
UbitUmarov
c3db66a3f9
add LSL:key.NullKey, plus cosmetics
2023-02-10 16:18:37 +00:00
UbitUmarov
9472ec630c
fix typo
2023-02-06 19:26:31 +00:00
UbitUmarov
a4752eb051
ossl cosmetics; change some string comparer to ordinal
2022-11-13 00:05:31 +00:00
UbitUmarov
209b6babb5
mantis 9036: do not allow ForceAttachToAvatarFromInventory to attach coalesced inventory assets
2022-11-12 19:35:45 +00:00
UbitUmarov
d9380c9b83
clean some spurius chars and a few other things. Thanks Vincent Sylvester
2022-11-12 02:49:01 +00:00
UbitUmarov
d27516ac01
cosmetics
2022-10-22 22:51:55 +01:00
UbitUmarov
a28c875ce4
add llSHA256String() same as osSHA256
2022-10-22 14:10:07 +01:00
UbitUmarov
fddb3761a0
use some shared char arrays on string split
2022-10-19 01:38:25 +01:00
UbitUmarov
6ff8ecaae0
appdomains are gone. XEngine does not make much sense without them
2022-10-02 11:38:50 +01:00
UbitUmarov
c972c23d2e
try simplify lsl listen code a bit
2022-06-18 22:40:01 +01:00
UbitUmarov
398fe1ffe6
change again, on disable leave parameters as they where; add values check to osSetProjectionParams
2022-05-22 16:54:19 +01:00
UbitUmarov
1df00ca5cc
limit osTerrainFlush calls to one per minute with silent ignore
2022-03-29 16:36:46 +01:00
UbitUmarov
9bd8e45b30
remove some more of obsolete ninha joints code
2022-03-19 01:06:44 +00:00
UbitUmarov
dea5b83e8b
also revert osMessageAttachments time penalty. It does dispturb current existent action games
2022-01-22 21:27:36 +00:00
UbitUmarov
fbbcc1edd7
== string.Empty is .Lenght == 0
2022-01-13 20:31:52 +00:00
UbitUmarov
dd846ffc6c
update libomv with vector2 and 3 IsZero()
2022-01-09 23:52:42 +00:00
UbitUmarov
da928d6099
!= UUID.Zero is slow
2022-01-09 02:28:51 +00:00