Commit graph

139 commits

Author SHA1 Message Date
Sei Lisa
aea700fc3f Add support for WARN 3 to completely disable warnings 2018-08-18 17:34:44 +02:00
Sei Lisa
9936f50cc5 Allow passing single IDs when calling external scripts
BUTTON is documented to pass the UUIDs of the controller *and* the sitter when they are different, separated by a "|".

ADJUST is not documented to do that (yet), but it behaves that way.

Both behaviours are undesirable for generic scripts that respond to a link message without being specifically designed for AVsitter, because they don't expect the extra UUID. This can be seen as an AVsitter shortcoming, therefore we implement backwards-compatible workarounds.

For ADJUST, the AMENU argument's range has been extended:

  0, 1 and 2 behave the same as before.
  4, 5 and 6 behave as 0, 1 and 2 respectively, but also inhibit sending the second UUID.

For BUTTON, two special values have been added for the ID field: <C> and <S>, which will be replaced with CONTROLLER and SITTER respectively. For example:

    BUTTON text|num|str

behaves the same as before, sending both CONTROLLER and SITTER in the UUID field when they differ; however:

    BUTTON text|num|str|<C>

always passes only the UUID of the person who controls the menu. Similarly for <S>.
2018-08-18 10:39:55 +02:00
ft
799a557091 adjust RLV plugin to be acceptable for OpenSim's limitations on where to place the assignment operator 2018-08-18 10:31:11 +02:00
Sei Lisa
efe6929206 Update links 2018-05-18 00:21:39 +02:00
Sei Lisa
65ce40036a Fix warning when the initial connection to the database fails
When `mysqli_connect` fails, `$link` becomes false, and the `or` branch is taken, which uses `mysqli_error($link)`, which in turn fails because `$link` is false.

Since it's correctly checking `mysqli_connect_errno()` in the next line, just removing the `or` suffices.

Per report by jonhboy Resident.
2018-05-17 00:45:15 +02:00
Sei Lisa
31b8538e51 Check that M: is at the start and other minor changes. 2018-05-17 00:44:07 +02:00
Sei Lisa
367cea2212 Fix BUTTON link message
Follow-up to a65d7cd, which failed for the main menu. That's because current_menu is -1 for the main menu.

Since current menu is either -1 or points to a MENU entry, it's safe to add 1 to it and bring it to a correct range.

While on it, remove redundant `if`.

Per bug report by RiderDavis.

Fixes #95.
2018-04-22 00:29:51 +02:00
Sei Lisa
897507e679 Allow "-1" in description to be after "#" character, take 2.
This is a safer way to implement #66, as that fix broke [AV]select.
2018-03-26 12:15:50 +02:00
Sei Lisa
bb1cf35948 Revert "Allow "-1" in description to be after "#" character"
This reverts commit e4064605a1.
2018-03-26 12:15:50 +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
Synsational Difference
94309edba5 completed issue #86 LMSOURCE Notecard Feature Enhancement
amended requested changes
2018-03-07 01:56:50 +01:00
codeviolet
df6de8f556
Merge pull request #83 from codeviolet/missing-anim-finder-script
fix issue with ignoring variable speed anims. fixes#80
2018-02-13 20:28:05 +11:00
codeviolet
2d44d1d006
fix issue with ignoring variable speed anims 2018-02-13 20:24:32 +11:00
Sei Lisa
a65d7cdc82 Fix distinguishing BUTTON by submenu
When the same BUTTON appears in different submenus, with different parameters, pressing it always picked the one that appeared first in the notecard.

Fix that by making the search start at the current menu.

Per bug report by AceyXx.
2018-01-25 12:17:14 +01:00
Sei Lisa
e4064605a1 Allow "-1" in description to be after "#" character
Closes #66.
2018-01-01 09:47:04 +01:00
Sei Lisa
467cbf8b6b Fix OpenSim compilation of [AV]root-RLV 2017-12-24 11:59:16 +01:00
Sei Lisa
a32c8496ba Add new ONSIT CAPIFSUB to RLV
It captures only when the automatically assigned sitter number corresponds to the role of a sub.
2017-12-24 11:59:16 +01:00
Sei Lisa
6e8a228b3f Pre-optimization prior to making the changes 2017-12-24 11:59:16 +01:00
Sei Lisa
4852d0373e Fix typo in variable name: ASKROLE_CHANEL -> ASKROLE_CHANNEL 2017-12-15 00:37:34 +01:00
Sei Lisa
4c0cfe68f7 Add main script name at the top 2017-12-14 12:26:53 +01:00
Sei Lisa
356355da84 Follow-up fix for 137c31b
At some points, the initials of "Dominant" and "Submissive" were used to identify the role. That needed to be fixed.
2017-12-14 11:50:16 +01:00
Sei Lisa
137c31b1da Place "Dominant" and "Submissive" names in variables at the top
The optimized code remains the same, therefore this change incurs no memory penalty.
2017-12-13 20:10:48 +01:00
Sei Lisa
12fe2c496c Tag OpenSim scripts in the description 2017-12-12 14:40:11 +01:00
Sei Lisa
8e45b14be3 Fix empty button error when the parameter is empty, by adding a space.
Fixes #60.
2017-12-12 13:33:34 +01:00
Sei Lisa
5c862e4962 Change the UUID of TEXTURE_BLANK to the constant. 2017-11-23 16:35:38 +01:00
Sei Lisa
cd6b338e85 Make [AV]sequence compile in OpenSim and include it in Makefile. 2017-11-23 16:35:38 +01:00
Sei Lisa
216d9fbcb8 Include OpenSim plugins and utilities verified to compile.
That doesn't mean they work flawlessly.
2017-11-23 16:35:38 +01:00
Sei Lisa
5592032f9d Fix OpenSim import instructions and refine Mono-related stuff. 2017-11-23 16:35:38 +01:00
Sei Lisa
7a88429ccd Make [AV]object compile in OpenSim. 2017-11-23 16:35:38 +01: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
91e10390fc Allow overriding of flags on invocation of make
For example, make OFLAGS="-O -ShrinkNames" would disable the ShrinkNames optimization.
2017-11-13 14:21:19 +01:00
Sei Lisa
f599fb8f85 Hand optimizations to some scripts.
Gains in bytes:

- [AV]sitA: 3584
- [AV]sitB: 2048
- [AV]adjuster: 1024
- [AV]faces: 1024
- [AV]Xcite!: 0
- [AV]root-security: 0
2017-10-31 22:36:23 +01:00
Sei Lisa
d36b812760 Hotfix for screwup in fc69221896
One 'mainscript' was not changed.
2017-10-30 19:38:42 +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
Sei Lisa
708f7fb2e1 Add .lslt target to Makefile for local testing.
Allows local testing of files that are not optimized.
2017-10-29 12:11:50 +01:00
Sei Lisa
1cd36752ed Add 'opensim' to phony targets. 2017-10-29 12:11:50 +01:00
Sei Lisa
7a48f16349 Optimizations to [AV]faces.
Optimize IsInteger, optimize data memory usage through list item reuse, remove redundant statement.

See http://lsl.project.zone/lsl/types/list#data_memory_usage for more information on reusing of list elements.

See https://gist.github.com/Sei-Lisa/2250e59040a4d10c4b28998ac045fb7d for a demonstration of the mechanism as used in this patch.
2017-10-29 12:11:50 +01:00
Sei Lisa
37d39193c1 Corrected steps for people using the official viewer. 2017-10-29 12:11:50 +01:00
Sei Lisa
49c6a63074 Mention .lslo or .lsl; add preparation instructions for AVpos.
There is a .lsl file (the Lockguard plugin) and there may be more to come, so mention ".lslo or .lsl" instead of just ".lslo".

One user in the group had problems because the AVpos notecard had never been saved; to prevent that, add instructions on preparing an empty AVpos notecard that has been saved.
2017-10-29 12:11:50 +01:00
Sei Lisa
6e8c23a858 Use strReplace where it simplifies reading and saves code. 2017-10-29 12:11:50 +01:00
Sei Lisa
fc69221896 Change mainscript -> main_script for consistency with the others. 2017-10-29 12:11:50 +01:00