Xiija Posted September 22, 2020 Posted September 22, 2020 don't know if this affects anyone else, but when i copy/paste from the LSL wiki, it will bork a script. i copy pasted a simple changed event ( changed inv ) , and it triggered in my obj on every touch event, but when i erased if from the script and manually wrote the event, it worked fine. anyone else?... anyone?.. Beuller?
Rachel1206 Posted September 22, 2020 Posted September 22, 2020 (edited) Could it be copy/paste with extended character set, where you get some hidden chars added in the LSL script? Edited September 22, 2020 by Rachel1206 1
Wulfie Reanimator Posted September 22, 2020 Posted September 22, 2020 21 minutes ago, Xiija said: i copy pasted a simple changed event ( changed inv ) , and it triggered in my obj on every touch event, What exactly did you try to copy (link or copy it here), and are you 100% sure you pasted what was expected? Does it happen again? It's not impossible that there could have been extra stuff in the clipboard, but it'd more likely cause a syntax error.
Xiija Posted September 22, 2020 Author Posted September 22, 2020 (edited) the copy was just a quick grab from the changed page... http://wiki.secondlife.com/wiki/Changed Quote changed(integer change) { //note that it's & and not &&... it's bitwise! if (change & CHANGED_INVENTORY) { llOwnerSay("The inventory has changed."); } i've had this problem before when snaggin code for other scripts, and when i use the snippet copied from the wiki, the script fails weirdly, but when i type it out manually, it works fine. (from my post in animesh forum, i used ... llGetInventoryName(INVENTORY_SOUND,0); ) anyhoo, i guess rachel is on to something, and i will hand type stuff from now on ty Edited September 22, 2020 by Xiija 1
Mollymews Posted September 23, 2020 Posted September 23, 2020 when I copy from a web page and I have these kinds of problems then I copy paste it into a plain text editor like Notepad. Then copy it from Notepad to the viewer LSL editor
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now