Commit graph

27 commits

Author SHA1 Message Date
Sei Lisa
f1ec6bde26 Add code that forces an error if compiled in LSO to all scripts
This should prevent accidents when saving in inventory in the official viewer.
2018-10-10 13:50:07 +02:00
codeviolet
57c8176afa Update Missing-anim-finder.lsl
addresses https://github.com/AVsitter/AVsitter/pull/84#discussion_r173986549
2018-03-20 17:32:33 +01:00
codeviolet
31622ceb9b remove unnecessary code
the removed code is not needed as anims are only considered var-speed if basename was used in a var-speed submenu
2018-03-20 17:32:33 +01:00
codeviolet
87266b2f79 var-speed only if basename used in a var-speed submenu 2018-03-20 17:32:33 +01:00
codeviolet
103d9611d9 Update Missing-anim-finder.lsl 2018-03-20 17:32:33 +01:00
codeviolet
2d44d1d006
fix issue with ignoring variable speed anims 2018-02-13 20:24:32 +11:00
Sei Lisa
dea6153fec More OpenSim compilation fixes. 2017-11-23 16:35:38 +01:00
Sei Lisa
08263c921e Improve OpenSim-friendliness. 2017-11-23 16:35:38 +01:00
Sei Lisa
bf8f10bfe6 Fix several calls that had wraparound hazards.
llGetSubString("abc", 3, -1) gives "abc"; llList2List(L, 1, -1) gives L when L has length 1. In general, llGetSubString or llList2List return the whole thing when the starting index is grater than the last element in the list.

There were a number of spots with that hazard, so fix all we found.
2017-11-19 18:38:33 +01:00
Sei Lisa
aa9cba13a5 Add the script name at the top, with a one-line description
It should help ensuring that you have the right script contents when saving. It also provides a short description, to get a rough idea of what it's about.

The only code change is the product name in [AV]xcite! to add a TM symbol to Xcite!
2017-11-19 18:33:04 +01:00
Sei Lisa
11489e2864 Fix problem with blank lines.
Lines that are empty after the diamond didn't work due to wraparound.
2017-10-29 12:43:55 +01:00
Sei Lisa
4b51b08c45 Simplify the math for better accuracy. 2017-10-29 12:43:55 +01:00
Sei Lisa
5f2acee9d3 Add instructions and chat message. 2017-10-29 12:43:55 +01:00
Sei Lisa
6ed9496177 Allow AVpos-shifter to modify position and rotation at once. 2017-10-29 12:43:55 +01:00
codeviolet
dc8b6c8386 use timer to avoid event timeout in OpenSim (#40) 2017-09-09 18:56:10 +10:00
Sei Lisa
4ed043d823 Fix precedence of the "!" logical NOT operator.
We knew that in OpenSim, the bitwise NOT "~" operator's precedence was broken (see <http://opensimulator.org/mantis/view.php?id=3268>), but it appears that the same bug affects the logical NOT operator "!" as well, so it needs parentheses when followed by more expressions.
2017-09-02 09:45:52 +02:00
Sei Lisa
7482550bef Some micro-optimizations.
- [AV]sitA: Compute loading progress percentage without converting to float. Remove some 'else' clauses, adding 'return' where appropriate. That required moving the retrieval of the next notecard line near the top. A block has been left indented for clarity, and will be unindented in the next commit.
- [AV]prop: Remove some 'else' clauses, adding 'return' where appropriate. A block has been left indented for clarity, and will be unindented in the next commit.
- [AV]Xcite!: Change (string)llList2Integer to llList2String, after verifying that the elements in the list are always integers, and therefore this can't cause problems.
- [AV]root-RLV-extra: Remove unused event.
- [AV]faces: Change llListReplaceList with a replacement of [] to llDeleteSubList, to save one argument. Remove unnecessary 'else'.
- [AV]sequence: Comment out unused condition. It would be removed by the optimizer anyway, but this will hopefully help with clarity.
- AVpos-shifter: Change var++ to ++var (the optimizer would also do this anyway).
2017-09-02 09:45:52 +02:00
Sei Lisa
65c067cc30 Prepare the core scripts for OpenSim.
- Add Makefile and release creation instructions.
- Add a simple Python program to automate the OpenSim conversion based on markings in the code.
- Add .gitignore entries for the generated files.
- Add parentheses around assignments as required by OpenSim. This is done only to the core scripts.
- OpenSim isn't compatible with SL when there are conditions of type key. Those are all converted. Conditions of other types, except integer, are expanded for clarity and optimization, as they generate the same or better code that way, and currently the optimizer can do a better job when they are expanded.
- Floats in scientific notation need a dot.
- llParseStringXXXX doesn't work the same in OpenSim as in SL, when the separator is an Unicode codepoint that doesn't represent a character. For that reason, the internal separator, which is U+FFFD ("Replacement Character") is changed automatically by the Python program to U+001F (Unit Separator control character). For further safety, function strReplace is altered to use osReplaceString instead of llParseStringKeepNulls/llDumpList2String.

Furthermore, the ~ operator has the wrong precedence in OpenSim, but that was handled by a previous commit. Note that appearances of the ~ operator that were not preceded by a ! have only been replaced in the core scripts.
2017-09-02 09:45:52 +02:00
Sei Lisa
202b4503d1 Remove or add parentheses as necessary to improve clarity.
There should be no changes in the code compiled from source directly.
2017-09-02 09:45:52 +02:00
Sei Lisa
2488349a1b Comment and formatting changes; no actual code changes.
- Add spaces between functions.
- Add comments on numeric codes and a few others.
- Reformat lists and one function.
- Remove spaces at EOL.
- Use actual copyright symbol.
2017-09-02 09:45:52 +02:00
Sei Lisa
f97f8c5a5b Whitespace-only changes.
- Remove CR before LF to allow Git to use system-specific line terminators.
- Expand tabs to spaces.
- Remove spaces at end of line.
2017-08-31 12:08:57 +02:00
codeviolet
705ac02889 adding settings.php and Noob-detector.lsl per #20 2017-08-28 12:02:53 +02:00
vm
001bfa1ecd add listen handle 2017-08-27 03:45:46 +02:00
Sei-Lisa
e03807caa7 Fix update-receiver.lsl failing to self-delete, and a security issue. (#22)
The types in the list are strings, so they won't match a key.

Remove the pin from the prim when removing the script.
2017-08-27 10:39:50 +10:00
vm
1f53bac37d re-add web service 2017-08-02 21:41:33 +10:00
codeviolet
34f30ac80a first commit 2017-07-31 17:43:31 +10:00
codeviolet
8624bbdbbd add MLP converter 2017-04-04 12:13:05 +10:00