From fbe27a9f57b560edcec973b8dcc0c92948d181e0 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:06:37 -0600 Subject: [PATCH 01/12] Update main.lsl --- main.lsl | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/main.lsl b/main.lsl index e6fd1a5..56723c1 100644 --- a/main.lsl +++ b/main.lsl @@ -11,8 +11,8 @@ key linecountid; key lineid; key MyKey; -string hailsVersion = "0.1.1a"; //Version Number -string rcInfo; +string hailsVersion = "0.1.1b"; //Version Number +string rcInfo = "Release_Candidate 1"; string card = "hails.urls"; //Notecard name string objectName = "hails.media2Prim"; //Primitive name string objDesc; @@ -22,9 +22,9 @@ string hailsHome; string forceHomeURL = "https://hails.cc/"; string hailsTexture = "9d0c0e2d-852e-b2d0-9e5e-a64b2f78bc3a"; -integer debug = FALSE; //DEBUG toggle, TRUE = ON | FALSE = OFF -integer debugIM = FALSE; //Instant Messaging DEBUG toggle, TRUE = ON | FALSE = OFF -integer rc = FALSE; //Dev Variable +integer debug = TRUE; //DEBUG toggle, TRUE = ON | FALSE = OFF +integer debugIM = TRUE; //Instant Messaging DEBUG toggle, TRUE = ON | FALSE = OFF +integer rc = TRUE; //Dev Variable integer linemax; integer doPhantom = TRUE; //Primitive Phantom Status, TRUE = ON | FALSE = OFF integer doGrab = TRUE; //Primitive Grab/Drag Functionality, TRUE = ON | FALSE = OFF @@ -57,8 +57,7 @@ vector gray = <0.667,0.667,0.667>; integer random_integer(integer min, integer max) { return min + (integer)(llFrand( max - min + 1 )); } //Random number generation -checkDebug() -{ +checkDebug() { objDesc = llGetObjectDesc(); if (objDesc == "v" + hailsVersion + " - DEBUG") { llOwnerSay(hailsObjName + " DEBUG enabled.. SKIP"); } else if (objDesc == "debug") { debug = TRUE; debugIM = TRUE; llOwnerSay(hailsObjName + " DEBUG mode Enabled.."); llInstantMessage(MyKey, "IM DEBUG mode Enabled.."); llSetObjectDesc("v" + hailsVersion + " - DEBUG"); llSetObjectName(objectName + " - DEBUG"); } @@ -71,8 +70,7 @@ checkDebug() hailsSetup() //Setup Primitive Function { - MyKey = llGetOwner(); - llClearPrimMedia(mediaFace); + MyKey = llGetOwner(); llClearPrimMedia(mediaFace); if (rc) { llSetText("v" + hailsVersion + " - " + rcInfo, fuchsia, 0.71); llSetObjectDesc("v" + hailsVersion + " - " + rcInfo); } else { llSetText("", ZERO_VECTOR, 0.0); } if (hailsStartSetup & doSetup) { if (debug) { llOwnerSay(hailsObjName + " StartSetup already TRUE. . .SKIP."); } else { if (llGetAlpha(oppositeFace)) { hailsStartSetup = TRUE; } else { hailsStartSetup = FALSE; } } } if (hailsStartSetup & doSetup) //main function logic @@ -87,21 +85,18 @@ hailsSetup() //Setup Primitive Function } } -media2Prim() -{ +media2Prim() { llSetPrimMediaParams(mediaFace,[PRIM_MEDIA_AUTO_PLAY,TRUE, PRIM_MEDIA_HOME_URL,hailsHome, PRIM_MEDIA_CURRENT_URL,hailsURL, PRIM_MEDIA_HEIGHT_PIXELS,1024, PRIM_MEDIA_WIDTH_PIXELS,800, PRIM_MEDIA_PERMS_INTERACT,0x0, PRIM_MEDIA_CONTROLS,1, PRIM_MEDIA_AUTO_SCALE,1, PRIM_MEDIA_AUTO_LOOP,1]); if (debug) { llOwnerSay(hailsObjName + " has updated URL: (" + hailsURL + ") "); } } -checkSimPop() -{ - integer numOfAvatars = llGetRegionAgentCount(); - integer counter; +checkSimPop() { + integer numOfAvatars = llGetRegionAgentCount(); integer counter; if (debug) { llOwnerSay(hailsObjName + " is checking Sim Population.."); } while (numOfAvatars < 1) { if (counter < 1) { llSetTimerEvent(0.0); llClearPrimMedia(mediaFace); if (debugIM) { llInstantMessage(MyKey, "Sim is empty, hibernating.."); } } - llSleep(15); + llSleep(2.5); //Short Snooze ..zzzzzZzzzzz.. if (counter > 1000) { counter = 1; } else { ++counter; } numOfAvatars = llGetRegionAgentCount(); if (debug) { llOwnerSay(hailsObjName + " is re-checking Sim Population.."); } @@ -126,8 +121,7 @@ default { } state_entry() { if (debug & debugIM) { llSetObjectDesc("debug"); } - hailsObjName = objectName + ":"; - hailsSetup(); + hailsObjName = objectName + ":"; hailsSetup(); linecountid = llGetNumberOfNotecardLines(card); //get the number of notecard lines if (debug) { llOwnerSay(hailsObjName + " is Performing Start up.."); } lineid = llGetNotecardLine(card, random_integer(0, linemax)); From 17109e6075da09240394253aa635f218aacd5515 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:22:12 -0600 Subject: [PATCH 02/12] truncating functions --- main.lsl | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/main.lsl b/main.lsl index 56723c1..bbb1cc4 100644 --- a/main.lsl +++ b/main.lsl @@ -65,30 +65,23 @@ checkDebug() { else if (objDesc == "nosettext") { rc = FALSE; llSetText("", ZERO_VECTOR, 0.0); llSetObjectDesc("v" + hailsVersion); } else if (objDesc == "resetme") { llSetObjectDesc("v" + hailsVersion); llClearPrimMedia(mediaFace); hailsSetup(); llResetScript(); } else if (objDesc == "dosetup") { llSetObjectDesc("v" + hailsVersion); doSetup = TRUE; hailsStartSetup = TRUE; hailsSetup(); } - else { llSetObjectDesc("v" + hailsVersion); llSetObjectName(objectName); } -} + else { llSetObjectDesc("v" + hailsVersion); llSetObjectName(objectName); } } -hailsSetup() //Setup Primitive Function -{ +hailsSetup() { MyKey = llGetOwner(); llClearPrimMedia(mediaFace); if (rc) { llSetText("v" + hailsVersion + " - " + rcInfo, fuchsia, 0.71); llSetObjectDesc("v" + hailsVersion + " - " + rcInfo); } else { llSetText("", ZERO_VECTOR, 0.0); } if (hailsStartSetup & doSetup) { if (debug) { llOwnerSay(hailsObjName + " StartSetup already TRUE. . .SKIP."); } else { if (llGetAlpha(oppositeFace)) { hailsStartSetup = TRUE; } else { hailsStartSetup = FALSE; } } } - if (hailsStartSetup & doSetup) //main function logic - { + if (hailsStartSetup & doSetup) { if (debug) { llOwnerSay(hailsObjName + " Begin Setup/Optimization function..."); } //debug llSetTexture(TEXTURE_BLANK, ALL_SIDES); llSetTexture(hailsTexture, mediaFace); llSetColor(black, ALL_SIDES); llSetColor(white, mediaFace); llSetAlpha(1.0, ALL_SIDES); llSetAlpha(0.0, oppositeFace); llSetStatus(STATUS_BLOCK_GRAB_OBJECT, doGrab); llSetStatus(STATUS_PHANTOM, doPhantom); hailsStartSetup = FALSE; if (debug) { llOwnerSay(hailsObjName + " Setup is Complete."); } - llSleep(0.27); //Take a nap ..zzZzz.. - } + llSleep(0.27); } else { - if (debug) { llOwnerSay(hailsObjName + " SKIP Setup Function. . ."); } - } -} + if (debug) { llOwnerSay(hailsObjName + " SKIP Setup Function. . ."); } } } media2Prim() { llSetPrimMediaParams(mediaFace,[PRIM_MEDIA_AUTO_PLAY,TRUE, PRIM_MEDIA_HOME_URL,hailsHome, PRIM_MEDIA_CURRENT_URL,hailsURL, PRIM_MEDIA_HEIGHT_PIXELS,1024, PRIM_MEDIA_WIDTH_PIXELS,800, PRIM_MEDIA_PERMS_INTERACT,0x0, PRIM_MEDIA_CONTROLS,1, PRIM_MEDIA_AUTO_SCALE,1, PRIM_MEDIA_AUTO_LOOP,1]); - if (debug) { llOwnerSay(hailsObjName + " has updated URL: (" + hailsURL + ") "); } -} + if (debug) { llOwnerSay(hailsObjName + " has updated URL: (" + hailsURL + ") "); } } checkSimPop() { integer numOfAvatars = llGetRegionAgentCount(); integer counter; @@ -102,8 +95,7 @@ checkSimPop() { if (debug) { llOwnerSay(hailsObjName + " is re-checking Sim Population.."); } } if (debug) { llOwnerSay(hailsObjName + " Sim Pop check PASSED."); } - counter = 0; - } + counter = 0; } default { on_rez(integer start_param) From 2f9291c6b00f5b0d47044448df2850c9c72cd19f Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:31:05 -0600 Subject: [PATCH 03/12] Concatenate --- main.lsl | 66 ++++++++++++++++++-------------------------------------- 1 file changed, 21 insertions(+), 45 deletions(-) diff --git a/main.lsl b/main.lsl index bbb1cc4..48113da 100644 --- a/main.lsl +++ b/main.lsl @@ -8,30 +8,26 @@ //ONLY PLACE ONE IMAGE/MP4 LINK PER LINE IN THE NOTECARD key linecountid; -key lineid; -key MyKey; +key lineid; key MyKey; string hailsVersion = "0.1.1b"; //Version Number string rcInfo = "Release_Candidate 1"; string card = "hails.urls"; //Notecard name string objectName = "hails.media2Prim"; //Primitive name -string objDesc; -string hailsObjName; -string hailsURL; -string hailsHome; +string objDesc; string hailsObjName; string hailsURL; string hailsHome; string forceHomeURL = "https://hails.cc/"; string hailsTexture = "9d0c0e2d-852e-b2d0-9e5e-a64b2f78bc3a"; integer debug = TRUE; //DEBUG toggle, TRUE = ON | FALSE = OFF integer debugIM = TRUE; //Instant Messaging DEBUG toggle, TRUE = ON | FALSE = OFF -integer rc = TRUE; //Dev Variable -integer linemax; +integer rc = TRUE; //Dev Variable integer doPhantom = TRUE; //Primitive Phantom Status, TRUE = ON | FALSE = OFF integer doGrab = TRUE; //Primitive Grab/Drag Functionality, TRUE = ON | FALSE = OFF integer doSetup = TRUE; //Whether to perform setup functionality integer hailsStartSetup = FALSE; // LEAVE ALONE | Default State integer mediaFace = 0; // TOP = 0 | +X = 1 | +Y = 2 | -X = 3 | +X = 4 | BOTTOM = 5 integer oppositeFace = 5; // Set to the opposite side of mediaFace variable! +integer linemax; float hailsTimer = 2.25; // Short pause timer float hailsTimer2 = 10.75; @@ -86,31 +82,23 @@ media2Prim() { checkSimPop() { integer numOfAvatars = llGetRegionAgentCount(); integer counter; if (debug) { llOwnerSay(hailsObjName + " is checking Sim Population.."); } - while (numOfAvatars < 1) - { + while (numOfAvatars < 1) { if (counter < 1) { llSetTimerEvent(0.0); llClearPrimMedia(mediaFace); if (debugIM) { llInstantMessage(MyKey, "Sim is empty, hibernating.."); } } llSleep(2.5); //Short Snooze ..zzzzzZzzzzz.. if (counter > 1000) { counter = 1; } else { ++counter; } numOfAvatars = llGetRegionAgentCount(); - if (debug) { llOwnerSay(hailsObjName + " is re-checking Sim Population.."); } - } + if (debug) { llOwnerSay(hailsObjName + " is re-checking Sim Population.."); } } if (debug) { llOwnerSay(hailsObjName + " Sim Pop check PASSED."); } counter = 0; } default { - on_rez(integer start_param) - { + on_rez(integer start_param) { checkDebug(); llClearPrimMedia(mediaFace); - llSleep(0.75); llResetScript(); - } - changed(integer change) - { - if (change & (CHANGED_OWNER | CHANGED_INVENTORY | CHANGED_REGION)) - { + llSleep(0.75); llResetScript(); } + changed(integer change) { + if (change & (CHANGED_OWNER | CHANGED_INVENTORY | CHANGED_REGION)) { if (debug) { llOwnerSay(hailsObjName + " has detected a change, Rebooting. . ."); } - checkDebug(); llClearPrimMedia(mediaFace); llSleep(hailsTimer); llResetScript(); - } - } + checkDebug(); llClearPrimMedia(mediaFace); llSleep(hailsTimer); llResetScript(); } } state_entry() { if (debug & debugIM) { llSetObjectDesc("debug"); } hailsObjName = objectName + ":"; hailsSetup(); @@ -119,33 +107,21 @@ default { lineid = llGetNotecardLine(card, random_integer(0, linemax)); hailsRandTimer = random_integer(59, 199); if (debug) { llOwnerSay(hailsObjName + " TimerEvent set for " + (string)hailsRandTimer); } //Debug - llSetTimerEvent(hailsRandTimer); - } - touch_start(integer total_number) - { + llSetTimerEvent(hailsRandTimer); } + touch_start(integer total_number) { checkDebug(); llSetTexture(hailsTexture, mediaFace); llClearPrimMedia(mediaFace); if (debug) { llOwnerSay(hailsObjName + " Touch Function has been Activated"); } hailsRandTimer = random_integer(59, 199); llSetTimerEvent(0.0); lineid = llGetNotecardLine(card, random_integer(0, linemax)); - llSleep(0.25); //Take another nap ..zzZzz.. - } - timer() - { + llSleep(0.25); //Take another nap ..zzZzz.. } + timer() { checkDebug(); checkSimPop(); - lineid = llGetNotecardLine(card, random_integer(0, linemax)); - } - dataserver(key id, string data) - { - if (id == linecountid) - { - linemax = (integer)data - 1; - } - else if (id == lineid) - { + lineid = llGetNotecardLine(card, random_integer(0, linemax)); } + dataserver(key id, string data) { + if (id == linecountid) { + linemax = (integer)data - 1; } + else if (id == lineid) { hailsURL = data; hailsHome = data; media2Prim(); hailsRandTimer = random_integer(59, 199); llSetTimerEvent(hailsRandTimer); if (debug) { llOwnerSay(hailsObjName + " TimerEvent set for " + (string)hailsRandTimer); llOwnerSay(hailsObjName + " is Sleeping for " + (string)hailsTimer); } //Debug - llSleep(hailsTimer); - } - } -} + llSleep(hailsTimer); } } } From 095c44caa881b5b5ce9442bb854c4a3c8dd4184e Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:42:33 -0600 Subject: [PATCH 04/12] update 0.1.1b - FLATTENING --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index cb87a35..28358f9 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,14 @@ https://i.imgur.com/dc9RNYg.mp4 ## Change-log +### Minor Patch 4 +*UNRELEASED* - **10/19/23** +__Version__: *0.1.1b* +- - - - - - - - - - +- Script Optimization + - Lines Truncated to reduce script size + - Similar Functions/Code Concatenated +- - - - - - - - - - ### Minor Patch 3 *RELEASED* - **10/14/23** __Version__: *0.1.1a* From e9abdcd9d8ba5dd7a47639650bdb40ac62bd34fd Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:44:55 -0600 Subject: [PATCH 05/12] v0.1.1b --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 28358f9..23979e3 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,9 @@ __Version__: *0.1.1b* - Script Optimization - Lines Truncated to reduce script size - Similar Functions/Code Concatenated +- Script Commenting + - General Fixes/Proofreading/updates +- README Cleanup/Additions - - - - - - - - - - ### Minor Patch 3 *RELEASED* - **10/14/23** From bf772ecb8ef93fb43c95ee8ea08dc7e234d476c2 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:46:01 -0600 Subject: [PATCH 06/12] TOC --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 23979e3..0a41fcb 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Notecard-based (LSL) script for randomly grabbing urls and displaying media obje - [Example Notecard](#example-notecard) - [Usage](#usage) - [Change-log](#change-log) + - [Minor Patch 4](#minor-patch-4) - [Minor Patch 3](#minor-patch-3) - [Minor Patch 2](#minor-patch-2) - [Minor Patch](#minor-patch) From 639717616861b6f7d73296641e6b6082cca3ea0b Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:46:43 -0600 Subject: [PATCH 07/12] Cleanup --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a41fcb..4785002 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Notecard-based (LSL) script for randomly grabbing urls and displaying media obje - [Minor Patch 4](#minor-patch-4) - [Minor Patch 3](#minor-patch-3) - [Minor Patch 2](#minor-patch-2) - - [Minor Patch](#minor-patch) + - [Minor Patch 1](#minor-patch) ### Example From dca11ebe315bd333b9c459d20bf0e7aa60f7b093 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:42:56 -0600 Subject: [PATCH 08/12] fix, syntax error --- main.lsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lsl b/main.lsl index 48113da..71349bc 100644 --- a/main.lsl +++ b/main.lsl @@ -113,7 +113,7 @@ default { if (debug) { llOwnerSay(hailsObjName + " Touch Function has been Activated"); } hailsRandTimer = random_integer(59, 199); llSetTimerEvent(0.0); lineid = llGetNotecardLine(card, random_integer(0, linemax)); - llSleep(0.25); //Take another nap ..zzZzz.. } + llSleep(0.25); } timer() { checkDebug(); checkSimPop(); lineid = llGetNotecardLine(card, random_integer(0, linemax)); } From 960bc4a71d299e3932a45ca4fb9fa960d8958134 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Tue, 31 Oct 2023 09:50:33 -0600 Subject: [PATCH 09/12] Minor TEST fix to Setup Logic + Debug --- main.lsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lsl b/main.lsl index 71349bc..8c5f083 100644 --- a/main.lsl +++ b/main.lsl @@ -66,7 +66,7 @@ checkDebug() { hailsSetup() { MyKey = llGetOwner(); llClearPrimMedia(mediaFace); if (rc) { llSetText("v" + hailsVersion + " - " + rcInfo, fuchsia, 0.71); llSetObjectDesc("v" + hailsVersion + " - " + rcInfo); } else { llSetText("", ZERO_VECTOR, 0.0); } - if (hailsStartSetup & doSetup) { if (debug) { llOwnerSay(hailsObjName + " StartSetup already TRUE. . .SKIP."); } else { if (llGetAlpha(oppositeFace)) { hailsStartSetup = TRUE; } else { hailsStartSetup = FALSE; } } } + if (llGetAlpha(oppositeFace)) { hailsStartSetup = FALSE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to FALSE"); } } else { hailsStartSetup = TRUE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to TRUE"); } } } if (hailsStartSetup & doSetup) { if (debug) { llOwnerSay(hailsObjName + " Begin Setup/Optimization function..."); } //debug llSetTexture(TEXTURE_BLANK, ALL_SIDES); llSetTexture(hailsTexture, mediaFace); llSetColor(black, ALL_SIDES); llSetColor(white, mediaFace); llSetAlpha(1.0, ALL_SIDES); llSetAlpha(0.0, oppositeFace); llSetStatus(STATUS_BLOCK_GRAB_OBJECT, doGrab); llSetStatus(STATUS_PHANTOM, doPhantom); hailsStartSetup = FALSE; From abe8c22a36ca6c1bdec268543845941b3cf2e501 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:17:21 -0700 Subject: [PATCH 10/12] minor fixes --- main.lsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lsl b/main.lsl index 8c5f083..1af13a8 100644 --- a/main.lsl +++ b/main.lsl @@ -66,7 +66,7 @@ checkDebug() { hailsSetup() { MyKey = llGetOwner(); llClearPrimMedia(mediaFace); if (rc) { llSetText("v" + hailsVersion + " - " + rcInfo, fuchsia, 0.71); llSetObjectDesc("v" + hailsVersion + " - " + rcInfo); } else { llSetText("", ZERO_VECTOR, 0.0); } - if (llGetAlpha(oppositeFace)) { hailsStartSetup = FALSE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to FALSE"); } } else { hailsStartSetup = TRUE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to TRUE"); } } } + if (llGetAlpha(oppositeFace)) { hailsStartSetup = FALSE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to FALSE"); } } else { hailsStartSetup = TRUE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to TRUE"); } } if (hailsStartSetup & doSetup) { if (debug) { llOwnerSay(hailsObjName + " Begin Setup/Optimization function..."); } //debug llSetTexture(TEXTURE_BLANK, ALL_SIDES); llSetTexture(hailsTexture, mediaFace); llSetColor(black, ALL_SIDES); llSetColor(white, mediaFace); llSetAlpha(1.0, ALL_SIDES); llSetAlpha(0.0, oppositeFace); llSetStatus(STATUS_BLOCK_GRAB_OBJECT, doGrab); llSetStatus(STATUS_PHANTOM, doPhantom); hailsStartSetup = FALSE; @@ -93,7 +93,7 @@ checkSimPop() { default { on_rez(integer start_param) { - checkDebug(); llClearPrimMedia(mediaFace); + llClearPrimMedia(mediaFace); llSleep(0.75); llResetScript(); } changed(integer change) { if (change & (CHANGED_OWNER | CHANGED_INVENTORY | CHANGED_REGION)) { From 9d078c1893fee3b47eb2cdd19feba2ac6a24a948 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:33:13 -0700 Subject: [PATCH 11/12] Fullbright Support | Fixes to Setup Logic --- main.lsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lsl b/main.lsl index 1af13a8..8a38dbb 100644 --- a/main.lsl +++ b/main.lsl @@ -66,10 +66,10 @@ checkDebug() { hailsSetup() { MyKey = llGetOwner(); llClearPrimMedia(mediaFace); if (rc) { llSetText("v" + hailsVersion + " - " + rcInfo, fuchsia, 0.71); llSetObjectDesc("v" + hailsVersion + " - " + rcInfo); } else { llSetText("", ZERO_VECTOR, 0.0); } - if (llGetAlpha(oppositeFace)) { hailsStartSetup = FALSE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to FALSE"); } } else { hailsStartSetup = TRUE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to TRUE"); } } + if (llGetAlpha(oppositeFace)) { hailsStartSetup = TRUE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to TRUE"); } } else { hailsStartSetup = FALSE; if (debug) { llOwnerSay(hailsObjName + " STARTSETUP set to FALSE"); } } if (hailsStartSetup & doSetup) { if (debug) { llOwnerSay(hailsObjName + " Begin Setup/Optimization function..."); } //debug - llSetTexture(TEXTURE_BLANK, ALL_SIDES); llSetTexture(hailsTexture, mediaFace); llSetColor(black, ALL_SIDES); llSetColor(white, mediaFace); llSetAlpha(1.0, ALL_SIDES); llSetAlpha(0.0, oppositeFace); llSetStatus(STATUS_BLOCK_GRAB_OBJECT, doGrab); llSetStatus(STATUS_PHANTOM, doPhantom); hailsStartSetup = FALSE; + llSetTexture(TEXTURE_BLANK, ALL_SIDES); llSetTexture(hailsTexture, mediaFace); llSetColor(black, ALL_SIDES); llSetColor(white, mediaFace); llSetAlpha(1.0, ALL_SIDES); llSetAlpha(0.0, oppositeFace); llSetStatus(STATUS_BLOCK_GRAB_OBJECT, doGrab); llSetStatus(STATUS_PHANTOM, doPhantom); llSetPrimitiveParams([PRIM_FULLBRIGHT, mediaFace, TRUE]); hailsStartSetup = FALSE; if (debug) { llOwnerSay(hailsObjName + " Setup is Complete."); } llSleep(0.27); } else { From 519d34f1cd2499d49817de88b0295bd5ee59b317 Mon Sep 17 00:00:00 2001 From: Hails <26784904+Hailey-Ross@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:46:11 -0700 Subject: [PATCH 12/12] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4785002..9e76c21 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ https://i.imgur.com/dc9RNYg.mp4 ## Change-log ### Minor Patch 4 -*UNRELEASED* - **10/19/23** +*RELEASED* - **11/13/23** __Version__: *0.1.1b* - - - - - - - - - - - Script Optimization @@ -59,6 +59,8 @@ __Version__: *0.1.1b* - Similar Functions/Code Concatenated - Script Commenting - General Fixes/Proofreading/updates +- Setup Functionality Fixes + - Added Fullbright to on for MediaFace variable - README Cleanup/Additions - - - - - - - - - - ### Minor Patch 3