Commit Graph

131 Commits (c3eec8d391a984b19f9a52b58f074462cf3e2d80)

Author SHA1 Message Date
Kitty Barnett c3eec8d391 Added @shownearby=n|y
--HG--
branch : RLVa
2016-07-01 20:22:39 +02:00
Kitty Barnett a0842eedee [FIXED] @touchworld[:<uuid>]=n|y applies to other avatar's attachments + @touchattach[:<uuid>]=n|y isn't applied to other avatar's attachments
--HG--
branch : RLVa
2016-07-01 00:00:07 +02:00
Kitty Barnett 43f80a2803 [FIXED] GCC compiler issues (originally by Nicky Dasmijn - thank you)
* Change RlvCommandOptionHelper::parseOption<RlvCommandOptionGeneric>(rlvCmd.getOption()) to RlvCommandOptionHelper::parseOption<RlvCommandOptionGeneric>(rlvCmd.getOption(), rlvCmdOption ) as otherwise a wrong template go picked wich resulted in linker errors.
    => we don't (need to) check the return type in those cases since it can't ever fail to convert so we just end up with less nice looking code
  * Rearrange RlvBehaviourDictionary to be above the classes that need the defintion (RlvBehaviourDictionary::instance call)
  * Change '(".("RLV_FOLDER_FLAG_NOSTRIP")"' to '(".(" RLV_FOLDER_FLAG_NOSTRIP ")"'. The GCC preprecessor does not like it w/o spaces.
  * Add template<> to those specialization that missed it
  * Change template<> template<> to just template<>
    => GCC seems to hate the templated std::enable_if (try boost::enable_if in the future); meanwhile try to #define a solution
    => Nicky changed a function parameter name matching a template parameter name so start differentiating between the two

--HG--
branch : RLVa
2016-06-25 15:17:31 +02:00
Kitty Barnett aaedd151ce Code cleanup: don't store unknown or invalid restrictions/behaviours
--HG--
branch : RLVa
2016-06-25 00:28:40 +02:00
Kitty Barnett e4f327e747 Code cleanup: integrate some of the Firestorm changes/fixes so we don't wipe them out again
--HG--
branch : RLVa
2016-06-24 16:58:17 +02:00
Kitty Barnett 5b827f656f Added (deprecated) compatibility shims and general clean-up
-> Added @getcam_avdistmin=<channel>, @getcam_avdistmax=<channel>, @getcam_fovmin=<channel>, @getcam_fovmax=<channel> and @getcam_textures=<channel>
  -> Added @getcam_avdist=<channel>, @getcam_fov=<channel>
  -> Added @setcam_mode[:<mouselook|thirdperson>]=force

--HG--
branch : RLVa
2016-06-20 22:38:49 +02:00
Kitty Barnett 61dc1e7b84 Merged with RLVa maintenance tip
--HG--
branch : RLVa
2016-06-19 21:30:34 +02:00
Kitty Barnett 94c33e8ee3 Added @setcam_mouselook=n|y to prevent the user from going into mouselook
--HG--
branch : RLVa
2016-06-19 19:34:17 +02:00
Kitty Barnett 70da447db9 Added @setcam_textures[:<uuid>]=n|y
--HG--
branch : RLVa
2016-06-19 00:38:08 +02:00
Kitty Barnett aaa47b6db2 Added (spherical) exclusion ranges to @recvim, @startim and @sendim
-> Examples:
      * @recvim:0,20=n   - user can only receive IMs from people within chat-range (20m)
      * @sendim:256=n    - user can only send IMs to people who are at least a region away (256m)
      * @startim:0,256=n - user can only start IMs to people who are on the same region they are (between 0moh oh and 256m)
  -> Note that you generally can't rely on having location information for avatars beyond the current region (and maybe 1-3 surrounding neighbours) so large values are of limited use
  -> On an isolated region using 4096m as the upper value will guarantee that you can only IM avatars on the same region regardless of elevation but none anywhere else on the grid

--HG--
branch : RLVa
2016-06-12 16:04:01 +02:00
Kitty Barnett 7c89967a1d Added @showself=n|y and @showselfhead=n|y
--HG--
branch : RLVa
2016-06-11 22:47:23 +02:00
Kitty Barnett 4b884caf43 Added @shownames:<uuid> and @shownametags:<uuid> exceptions
-> [FIXED] "Pay" isn't disabled on the avatar context menu when @shownames restricted
  -> [CHANGED] Show a notification when the user can't offer a teleport due to an RLV restriction

--HG--
branch : RLVa
2016-06-11 22:45:42 +02:00
Kitty Barnett 3318ce60c1 Added variable fartouch distance (@fartouch:<dist>=n|y)
--HG--
branch : RLVa
2016-06-04 17:36:59 +02:00
Kitty Barnett 60f93645aa [FIXED] RlvHandler::hasBehaviourExcept() returns FALSE on modifier commands
-> Example: issue @tplocal:50=n
  -> gRlvHandler.hasBehaviour(RLV_BHVR_TPLOCAL) will return true but gRlvHandler.hasBehaviourExcept(RLV_BHVR_TPLOCAL, LLUUID::null) will return FALSE
  => since it's a modifier command it will be reference counted but that fact is lost on manual matching (tplocal=n != tplocal:<option>=n) so we keep track of reference counting in the command

--HG--
branch : RLVa
2016-06-04 14:58:00 +02:00
Kitty Barnett d36c0de9e6 Added variable sittp/tplocal distances (@sittp[:<dist>]=n|y and @tplocal[:<dist>]=n|y)
--HG--
branch : RLVa
2016-06-04 13:50:58 +02:00
Kitty Barnett 197c860366 Merged with RLVa refactoring tip
--HG--
branch : RLVa
2016-06-04 11:19:39 +02:00
Kitty Barnett 2864442dd6 Added @sendchannel_except[:<channel>]=n|y (requested)
--HG--
branch : RLVa
2016-06-02 22:18:59 +02:00
Kitty Barnett c0fa9eda0f Allow @tpto position to be specified as <region-name>/<x>/<y>/<z>
--HG--
branch : RLVa
2016-05-29 23:08:55 +02:00
Kitty Barnett 8b6b3be823 Refactoring carousel: converted @detach / @remattach / @remoutfit / @detachme to RlvForceHandler
-> added @remattach:<uuid>=force (requested)
  -> added @detachthis:<uuid>=force (requested)

--HG--
branch : RLVa
2016-05-29 21:42:34 +02:00
Kitty Barnett 86cb92d899 Added @tpto:<position>;<lookat>=force to specify which direction to face when arriving
--HG--
branch : RLVa
2016-05-29 19:27:54 +02:00
Kitty Barnett 824a22ac09 Refactoring carousel: all command option parsing should run through RlvCommandOptionHelper (WIP)
--HG--
branch : RLVa
2016-05-29 14:39:27 +02:00
Kitty Barnett 16d1e8483f Behaviour modifiers can now have a primary object that overrides all other object's modifiers, plus we now have behaviour modifier handlers
--HG--
branch : RLVa
2016-05-16 16:11:17 +02:00
Kitty Barnett 056d8cff55 Added @setcam=n|y, @setcam_eyeoffset[:<vector3>]=n|y, @setcam_focusoffset[:<vector3>]=n|y, @setcam_fov[:<angle>]=n|y, @setcam_fovmin[:<angle>]=n|y and @setcam_fovmax[:<angle>]=n|y
--HG--
branch : RLVa
2016-05-16 01:32:12 +02:00
Kitty Barnett 9d7c376390 Added @camunlock=n
--HG--
branch : RLVa
2016-05-15 22:57:24 +02:00
Kitty Barnett 2a18eb7d71 Added @camfocus:<uuid|pos>[;<dist>[;<dir>]]=force (WIP - first iteration)
--HG--
branch : RLVa
2016-05-15 21:04:42 +02:00
Kitty Barnett 68025f9e1d Added behaviour modifiers as a prelude to camera restrictions and other fun goodies
--HG--
branch : RLVa
2016-05-15 00:35:54 +02:00
Kitty Barnett aa1ce339b5 Refactoring carousel: @edit, @setdebug, @setenv and @showinv toggle handlers
-> minor code touch-up - no functionality changes

--HG--
branch : RLVa
2016-05-14 13:27:37 +02:00
Kitty Barnett 0ccf637e6f Finalized @getcommand[:<behaviour>[;<type>[;<separator>]]]=<channel>
-> <behaviour>: (optional) command filter (e.g. tp)
     <type> : (optional) any|add|force|reply
     <separator> : (optional) user-defined separator
  -> Examples:
     @getcommand:tp;add=0 will show all restrictions that @clear=tp would clear
     @getcommand:;reply;^-^=0 will show all reply commands separated by ^-^

--HG--
branch : RLVa
2016-04-20 01:37:53 +02:00
Kitty Barnett 43e1bb1213 Added RLVa command console
--HG--
branch : RLVa
2016-04-20 01:18:07 +02:00
Kitty Barnett 6f36b8549d Refactoring carousel: apply template voodoo and consolidate all handler and processor classes into one
--HG--
branch : RLVa
2016-04-17 21:49:15 +02:00
Kitty Barnett 75e217b82e Code review: RLVa extensions are no longer optional features
-> @accepttprequest will auto-accept all incoming teleport requests (allows exceptions - see @accepttp)
  -> @allowidle (stays experimental - subject to change)
  -> @getcommand:<filter> can be used to discover which commands are part of the user's RLVa implementation (with user-defined separator)
  -> @findfolders:<filter> works like @findfolder but will return all matches (with user-defined separator)
  -> @getdebug:<setting> can be used to query (but not set) the "RestrainedLoveforbidGiveToRLV", "RestrainedLoveNoSetEnv" and "WindLightUseAtmosShaders" debug settings
  -> @interact will block world interaction but allows drag-drop, the camera tool, mouse steering and access to the "self" context menu
  -> @sharedwear is the counterpart of @unsharedwear and wear locks the shared #RLV folder
  -> @sharedunwear is the counterpart of @unsharedunwear and remove locks the shared #RLV folder
  -> @touchhud will prevent the user from touching/clicking on their HUD attachments (allows exceptions)
  -> @tprequest will prevent the user from requesting teleports (allows exceptions - see @tplure)
  -> force wear commands will activate/deactivate gestures as well
  -> force wear commands will collect from folder links as well
  -> [FIXED] Location on incoming teleport requests isn't censored when @showloc restricted
  -> [FIXED] Message on outgoing teleport offers isn't censored when @startim restricted
  -> [FIXED] Message on outgoing teleport requests isn't censored when @sendim or @startim restricted

--HG--
branch : RLVa
2016-04-10 14:07:23 +02:00
Kitty Barnett 1f8896ff69 Refactoring carousel: move behaviour/command handlers back into their proper spots for consistency
--HG--
branch : RLVa
2016-04-03 12:31:51 +02:00
Kitty Barnett 2991ff751e Refactoring carousel: simplify the behaviour and command template structure and add a template handler for toggles to replace RlvUIEnabler
--HG--
branch : RLVa
2016-04-03 02:40:44 +02:00
Kitty Barnett cc93446ce7 Refactoring carousel: added a RlvBehaviourInfo::BHVR_BLOCKED behaviour flag to selectively block certain commands
-> currently only used for @setenv=n|y

--HG--
branch : RLVa
2016-03-29 12:25:20 +02:00
Kitty Barnett 54e8d2fd52 Refactoring carousel: behaviour lookup code (WIP - templates have come to save the day)
--HG--
branch : RLVa
2016-03-29 11:45:34 +02:00
Kitty Barnett c372dd36a8 Refactoring carousel: combine all the different force-wear commands into one virtual RLV_CMD_FORCEWEAR command
--HG--
branch : RLVa
2016-03-28 20:00:15 +02:00
Kitty Barnett ee951f8fc7 Refactoring carousel: behaviour lookup code (WIP)
--HG--
branch : RLVa
2016-03-28 17:20:42 +02:00
Kitty Barnett ffeee4889e - internal : RLVa files #include clean-up
--HG--
branch : RLVa
2015-06-25 17:04:02 +02:00
Kitty Barnett c1e8671e7c - changed : reimplemented the @adjustheight command using LL's new hover functionality
--HG--
branch : RLVa
2015-03-30 23:12:44 +02:00
Kitty Barnett c4d557d529 Merged with default tip (Revision aeab2661776f)
--HG--
branch : RLVa
2014-10-29 21:45:12 +02:00
Kitty Barnett 922162846c - fixed : @getstatus and @getstatusall should specify an (optional) separator
-> added support for both @getstatus:tp;|=123 and @getstatus:;|=123

--HG--
branch : RLVa
2014-02-26 22:25:30 +01:00
Kitty Barnett da78d3f231 - added : @tprequest=n|y and @accepttprequest[:<uuid>]=n|y
-> small expansion of RlvActions to handle teleport offer/request checks

--HG--
branch : RLVa
2013-11-09 01:20:15 +00:00
Kitty Barnett 206157a1fb - changed : mark @adjustheight as deprecated since it's not supported by SSA
-> a wearable edit workaround would be clumsy, not work under all circumstances and could potentially cause asset corruption

--HG--
branch : RLVa
2013-10-12 22:04:30 +02:00
Kitty Barnett 7cc90ebfd0 - fixed : @notify:<option> falls through to @showhovertext and appears to fail even when it doesn't
--HG--
branch : RLVa
2013-05-13 18:21:38 +02:00
Kitty Barnett 723f415ad3 - internal : indicate failure when receiving @adjustheight if using server bakes
--HG--
branch : RLVa
2013-04-17 21:13:14 +02:00
Kitty Barnett 8e7cbffba3 - fixed : @setgroup:<uuid>=force,setgroup=n forces the active group back to the previous group
-> if an object is singularly holding a @setgroup restriction then it is now also exempt from it

--HG--
branch : RLVa
2012-09-17 01:47:07 +02:00
Kitty Barnett 0846837902 - internal : properly support @*this=force from the LSL attach() event
--HG--
branch : RLVa
2012-07-28 20:26:19 +02:00
Kitty Barnett a2257ff3d0 - changed : @sittp=n no longer prevents @sit:<uuid>=force from succeeding if the target is >1.5m away
--HG--
branch : RLVa
2012-06-10 13:01:57 +02:00
Kitty Barnett 410ee7cbd3 Merged with forgotten RLVa-1.4 code review branch
--HG--
branch : RLVa
2011-09-09 16:59:46 +02:00
Kitty Barnett 276e151642 - internal : deprecate RlvWLSnapshot in favour of the new user WindLight preferences
--HG--
branch : RLVa
2011-09-04 23:25:04 +02:00