Commit graph

169 commits

Author SHA1 Message Date
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
Sei Lisa
68a7477d5b Normalize spaces and remove tabs in link message reference. 2017-10-29 12:11:50 +01:00
Sei Lisa
b191988334 OSS: Use "\u007F" instead of assigning it at runtime. 2017-10-29 12:11:50 +01:00
Sei Lisa
8a10a36515 Fix [AV]faces issue with the timer not being stopped.
The problem has been observed in some items using [AV]faces.

So far the only way I've found to reproduce it was resetting one of the [AV]sit scripts while [AV]faces was reproducing a sequence. Other triggers may be possible.
2017-10-22 11:25:05 +02:00
Sei Lisa
71be6e1b4a Disable [BACK] button from [AV]root-security when not sat.
When no one is sitting, it's still possible to get a menu that has a [SECURITY] option, via RLV's ONTOUCH ASK. This breaks the assumption in the [BACK] button handler, which sent the [ADJUST] menu to an active sitter, and when there was no sitter, the menu was sent to all sitters instead, causing multiple dialogs to be generated. Repro details are in #35.

Fix by disabling the [BACK] button when no active sitter is set. The alternative of faking a click is not viable because we've lost the information of what prim was clicked, which is essential for RLV to know where to force-sit the victim.

Disabling [BACK] is a bit rude on the user, but it has the advantage that they have to click the desired prim again, therefore the information is recovered.

Fixes #35.
2017-10-19 23:45:56 +02:00
codeviolet
4bef4dc247 Merge pull request #50 from Sei-Lisa/sei-64k-nc-limit
Report error in settings.php when max length of 64K is exceeded
2017-09-30 22:05:36 +10:00
Sei Lisa
6cee2ac634 Initialize variable before appending to it. 2017-09-29 12:51:40 +02:00
Sei Lisa
d4359b133e Report error in settings.php when max length of 64K is exceeded.
Fixes #49.
2017-09-29 12:49:31 +02:00
Sei Lisa
032e0369bf Provisional fix for OpenSim event timeouts during dumping.
This is a provisional fix for #45. As discussed there, a proper fix will come later.
2017-09-20 10:15:15 +02:00
codeviolet
e37f991801 Update [AV]LockGuard.lsl
A minor edit so [AV]lockGuard's example pose settings match those used in the inworld examples. Should ease future updates to the examples.
2017-09-19 18:16:24 +02:00
codeviolet
ab62e75132 Merge pull request #36 from Sei-Lisa/sei-settings-php-overhaul
Overhaul of settings.php
2017-09-18 21:05:39 +10:00
Sei Lisa
27ae15b5ec Change utf8 to utf8mb4, checking if we succeed. 2017-09-16 00:02:10 +02:00
Sei Lisa
ca2714c50a Fix uninitialized variable in email_death() 2017-09-15 18:22:18 +02:00
Sei Lisa
57028e44d1 Remove parse_llHTTPRequest_headers function.
It served no practical purpose and used undefined variables to define values that weren't used anyway.

Also, comment out the variables that aren't used after parsing the X-SecondLife headers.
2017-09-15 18:22:18 +02:00
Sei Lisa
a8ec1d4747 Change the string escaping strategy
All variable values in SQL statements should use IntSQL or StrSQL as appropriate, rather than variables directly, with the exception of the table name.

This is akin to using htmlspecialchars to include text in HTML, or urlencode to include text in a URL. Normally you have the text in raw form and convert it as appropriate depending on where you're inserting it.
2017-09-15 18:22:18 +02:00
Sei Lisa
ae6745f26a Fix table issues
- Get rid of Y2K38 problems https://xkcd.com/607/
  - This also removes default value and on-update value for the timestamp, but these were being set explicitly so no harm done.
- Set the text field's character set to UTF-8.
- Set the link's character set to UTF-8.
2017-09-15 18:22:18 +02:00
Sei Lisa
a1b4e36cf4 Simplify regular expression for UUID 2017-09-15 18:22:18 +02:00
Sei Lisa
debd083735 Report bad request if no valid action was specified. 2017-09-15 18:22:18 +02:00
Sei Lisa
3b8453806e Move configuration to a separate file.
This will allow replacing the main file without needing to re-add the settings.

For example, settings.php can be always kept up-to-date locally via a symbolic link, without altering the configuration.
2017-09-15 18:22:18 +02:00
Sei Lisa
2d10bf9cc5 Omit the ending tag.
As recommended in http://php.net/manual/en/language.basic-syntax.phptags.php
2017-09-15 18:22:18 +02:00
Sei Lisa
4b009323f3 Fix typo in table creation statement. 2017-09-15 17:51:28 +02:00