Commit Graph

154 Commits (dfd3d3f2dc98e778eb984e3dd2bd3a5c63a36e41)

Author SHA1 Message Date
Ansariel 165393d761 RLVa: Fix some comments 2016-09-28 10:28:32 +02:00
Ansariel 6a858d9d2a FIRE-20142 - RLVa: BehaviourCallback and BehaviourToggleCallback are not fired properly anymore if RLV command is handled by a command processor 2016-09-28 10:25:16 +02:00
Ansariel e5768d0a4d RLVa: Fix toggle-loop when trying to join a new group under @setgroup=n restriction
Firestorm fires a custom "update grouptitle list" event which will also cause
RlvHandler::handleEvent() being invoked even though we only registered for the
"new group" event, screwing up the logic there. So make sure we really only
handle the event we expect here.
2016-09-27 16:07:51 +02:00
Ansariel f8be60e9d3 Implement RLVa @shownearby command for Firestorm-specific nearby voice list 2016-07-19 12:48:14 +02:00
Ansariel 978447cb12 Implement RLVa @shownearby command for Firestorm radar; still to do: Firestorm-specific nearby voice list 2016-07-19 10:33:06 +02:00
Ansariel 402af82077 Adjust RLVa @shownames command handling for Firestorm radar 2016-07-19 10:32:10 +02:00
Kitty Barnett e33720e5c6 Merged with firestorm-lgpl tip 2016-07-18 18:22:48 +02:00
Kitty Barnett 093592871b Merged with RLVa tip 2016-07-16 20:12:34 +02:00
Kitty Barnett 3774b2eda6 Merged with RLVa-Maintenance tip
--HG--
branch : RLVa
2016-07-12 23:14:23 +02:00
Ansariel 226c2d6d36 Translation fix 2016-07-12 09:08:20 +02:00
Nicky b99bbb72e6 Make GCC happy. 2016-07-12 00:41:18 +02:00
Kitty Barnett 05d22f77ae Merged with RLVa tip 2016-07-11 22:44:01 +02:00
Kitty Barnett 822845e78f [FIXED] Changes to camera FOV persist across relogs and don't reset/restore upon release
--HG--
branch : RLVa
2016-07-11 02:07:44 +02:00
Kitty Barnett fda5eb9ccc Code cleanup: better handling of group joins when @setgroup restricted
-> bundle all permission checks in a predictable single function (see RlvActions::canChangeActiveGroup)
  -> properly handle the case where a user is ejected from a group
  -> provide feedback to the user after we force the previous group back when joining a new group

--HG--
branch : RLVa
2016-07-09 22:08:23 +02:00
Kitty Barnett 21b6dd58ac Compatibility mode allows reporting a different (lower) version number to specific items
-> TPVs implementing dynamic viewer data should call RlvSettings::initCompatibilityMode() with the setting
  -> End-users also have manual control over the list through the "RLVaCompatibilityModeList" debug setting
  -> Format: (;-separated)
       * creator:<uuid>
       * name:<perl-regex>

--HG--
branch : RLVa
2016-07-09 16:24:43 +02:00
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 188cad8e5e Merged with RLVa tip 2016-07-01 00:27:14 +02:00
Tonya Souther 74e20578f9 One last merge fix. 2016-06-25 21:41:11 -05:00
Tonya Souther e62e3a1110 Cleanup merge. 2016-06-25 20:48:02 -05:00
Kitty Barnett 1afd940863 Merged with RLVa tip 2016-06-25 15:19:31 +02:00
Kitty Barnett 21d05e0204 Merged with RLVa tip 2016-06-25 02:05:47 +02:00