Commit Graph

119 Commits (fee815a45de9e2b4e931fef830ebaf8568ebe804)

Author SHA1 Message Date
Ansariel d22d0da0e8 Changed method names for consistency 2016-06-02 09:33:19 +02:00
Ansariel df8446b1ff Fix a typo 2016-04-27 01:00:27 +02:00
Nicky 4b7fb09a47 Merge. 2015-12-21 19:16:34 +01:00
Ansariel b0542a1a46 Refactor FSCommon 2015-11-14 01:36:57 +01:00
Nicky 22316c6e76 Bridge code migrated to new http interfaces. 2015-11-03 22:59:47 +01:00
Nicky c218e524b2 Merge - Step 1; Still enough to do. 2015-10-26 20:20:13 +01:00
Ansariel bc523f11c0 Housekeeping the bridge... 2015-08-15 12:23:17 +02:00
Ansariel 5868147296 Another attempt in fixing a mysterious crash in the LSL bridge creation process 2015-08-15 11:02:03 +02:00
Ansariel f64f55ba91 Fix possible crash in LSL bridge 2015-07-30 19:13:57 +02:00
Northspring 01b394b2dd Alteration of commit 104695ae4765 after some internal discussions 2015-07-28 10:49:13 +02:00
Northspring 6fb470dd5c LSL Bridge: Micro optimizations; If you don't need to keep something in memory - don't
Also, prepend global variables with "g" for easier recognition in code
2015-07-26 20:29:14 +02:00
Ansariel 2caa5273be Merge Viewer-Big Bird 2015-06-04 15:59:17 +02:00
Ansariel 0cd0c588de Fixing re-defined variables, unused variables and other cruelties... 2015-05-09 14:39:40 +02:00
Ansariel f4bfb1aadf Merge LL V3.7.9 (AIS3 + SSA) 2014-10-22 02:02:08 +02:00
Northspring 5d9d82da07 LSL Bridge: Implement version verification 2014-09-05 21:32:46 +02:00
Northspring 8a8ed1b7f6 FIRE-6715: Cut out bridge spam on llOwnerSay when teleporting when bridge is disabled during a session
This also prevents the viewer from calling gSavedSettings on every single llOwnerSay() message, when Bridge is enabled and message is not a proper <tag> at all
2014-09-05 15:51:50 +02:00
Ansariel f61a3dc027 More LSL bridge fixing:
* Before creating a new bridge, detach the previous one first and purge all
  objects in bridge folder that have the same name as the bridge or the wrong
  object might be attached later
* Allow detaching of bridge object even if attachment spot is locked by RLVa
2014-08-29 15:16:36 +02:00
Ansariel 9a80b2c6f5 Use size_t for std::string::find() in LSL bridge 2014-08-18 15:16:44 +02:00
Northspring c08bc38d2d Some LSL Bridge alterations
1) When creating/recreating Bridge do not call some functions twice - removed calls in state_entry(),
2) Because of that makeSane() and initBridge() are no longer necessary - code has been moved into proper places in script's code,
3) Initialize bridge functionality ONLY when worn as an actual attachment; Ground on_rez() sets the prim to temp anyway.
2014-08-12 18:45:15 +02:00
Northspring a2a4bbeeee Inform user if Bridge script is using wrong VM (LSO instead of Mono)
There is "std::string isMono" in fslslbridge.cpp set during script creation, but Techwolf had Bridge running in LSL2 mode recently, which was the cause of stack-heap collision.
2014-08-01 00:27:14 +02:00
Ansariel 9b235b1472 Some minor cleanup in the bridge 2014-07-24 11:48:07 +02:00
Ansariel 1d20c282c2 Detach bridge for 5 seconds after creation so it gets saved properly and we can re-attach it immediately if it gets detached anytime else 2014-07-18 08:43:37 +02:00
Ansariel 38ad6f2864 * Fix the bridge creation process that was working rather random
* Re-attach a detached bridge after 5 seconds to give the asset server time to store the bridge object properties and contents
  or they might be magically lost if it gets re-attached immediately
2014-07-17 16:41:53 +02:00
Ansariel f53aec8445 Let's use interators when iterating over vectors... 2014-07-17 11:24:24 +02:00
Ansariel cf7ae4e016 FIRE-14122: Moved bridge from illegal attachment spot to "Center 2"; Also set bridge object params properly without LSL 2014-07-17 11:09:59 +02:00
Ansariel 39727765a3 Optimize this... 2014-07-10 15:13:30 +02:00
Ansariel 0ecb573669 Prepare some stuff for FIRE-14122 and replace string literals cluttered all over the place 2014-07-10 08:21:17 +02:00
Northspring 9a7c4c95c8 Fetch news from status.secondlifegrid.net viewer-side, not script-side
Also, removing option from menu...
2014-07-07 14:10:42 +02:00
Northspring 937acfc075 Option to fetch latest news from status.secondlifegrid.net at login via Bridge and print it in chat
Also, menu option under Content. Bumping script version to 2.17.
2014-07-06 22:18:01 +02:00
Northspring 102f4dd2b3 Average CPU time used by the object for pathfinding navigation (OBJECT_CHARACTER_TIME) added in Script Info, if object is set in script as a pathfinding character 2014-06-23 22:40:33 +02:00
Northspring 197a644081 Objects with comma in name cannot cause getScriptInfo() to fail - encode their OBJECT_NAME fields with base64 in script, then decode in the viewer before printing on screen
Also, added some logging in case of invalid Bridge script behaviour
Bumping version to 2.15, hopefully final one for now
2014-06-18 18:18:31 +02:00
Northspring 871d89abf7 Send state of some values via HTTP to Bridge at login only when it's actually needed
Movelock, Flight Assist: They're defaulting to false / 0.0 script-side, in on_rez() event, anyway - so sending commands to disable them, when they're already turned off, is redundant
2014-06-18 02:00:05 +02:00
Northspring bf550b254d Make Bridge messages localizable, also small cleanup
Thanks to Tonya for help with C++ "bridgeGetScriptInfo" part
2014-06-18 01:39:23 +02:00
Tonya Souther 13762d2aab Fixing dumb bit of arithmetic I committed. 2014-06-17 09:03:38 -05:00
Northspring 8486f503e8 It's the Bridge itself who should tell if movelock is enabled or not - not the viewer
Message like that can be handy on laggy regions - user will know when the locking actually has started / stopped
Not bumping Bridge version for this one, it's a minor addition - besides, next release will force recreation of old Bridge script anyway; Nightly users can recreate manually if they wish
2014-06-17 15:52:21 +02:00
Northspring dd7c029a25 FIRE-11635: Make OpenCollar and LockMeister integration optional 2014-06-16 16:57:50 +02:00
Northspring 338a008b71 Make boost speed in Flight Assistant modifiable 2014-06-16 05:48:43 +02:00
Northspring cd4fd4f68b Flight Assistant code rewrite + some minor script modifications 2014-06-16 01:35:11 +02:00
Northspring eab01ce6b5 Removed Radar Tag functionality, which was disabled by default and never used anyway 2014-06-14 17:19:49 +02:00
Tank_Master 8863d9beaf Compile fixes 2014-06-09 23:27:05 -07:00
Northspring 84ab89435c Minor Bridge adjustments, bumping its version to 2.10 for auto-update
- Changed Bridge transparent texture UUID used on its creation (size: 256x128 pixels) to the default Lab's transparent one (size: 32x32 pixels); Works the same, takes a bit less of memory.
- llSetTexture() and llSetPos() have 0.2 sleep time, LlSetLinkPrimitiveParamsFast() has no delay like that (see commit 220bc95019e6). This means fresh Bridge will be ready for work a little faster.
- Added recreation-reset for few more Bridge prim parameters
- getZOffsets: Change pre-pending to a regular appending
2014-05-22 19:57:05 +02:00
Northspring 49c8bd1b48 FIRE-7425: Built-in movelock improvement - added option to lock and unlock position after stopping or starting movement (Preferences => Move & View => Move) 2014-05-03 16:11:26 +02:00
Ansariel 26aa6ad7cc Refactor LSL bridge to better work with OpenSim, provided by Cinder Roxley:
* Don't flip UseLSLBridge setting when in OpenSim
* Check for bridge existence before using it
* Cut off the bridge creation process on OpenSim
* Some other refactoring
2014-04-05 22:02:32 +02:00
Ansariel 41a95264c3 Replace #define with real constants in FSLSLBridge 2014-04-05 18:53:27 +02:00
Northspring ea19eef50a FIRE-12662: Make FS Movelock account specific - also Flight Assistant and publishing radar tag, because they're sharing the same function 2014-03-17 21:28:49 +01:00
Northspring 72e4465b65 FIRE-10718: llGetSimulatorHostname() is causing LSL Bridge to sleep for 10 seconds during check for current hostname in order to prevent double-click teleport on SL grid, so let's check this in the viewer itself and send 1/0 as additional value
Thanks to Nicky for reminding me about the LLGridManager class
2014-03-16 08:08:23 +01:00
Ansariel 8715156f14 Fix crash when trying to create bridge but script source file doesn't exist 2014-02-27 12:44:12 +01:00
Ansariel fe0df4b2ee Get rid of annoying bridge recreation each time after logging in from a different computer or grid:
Instead of generating a random UUID that is stored on the computer, use a UUID that is random and unique to each avatar -> bridge folder UUID
2014-02-27 11:32:35 +01:00
Ansariel 5bf83bb182 Merge 2014-02-27 10:08:11 +01:00
Ansariel a9ec541758 Fix copyright headers in Firestorm Bridge files 2014-02-27 10:03:38 +01:00