Commit Graph

86 Commits (b769f3b83c96ebd1480e1244e6e75e6f9029cb63)

Author SHA1 Message Date
PanteraPolnocy c76deb7661 Add object rezz time to the bridge (in extended info mode), clean up its code a little 2022-07-31 17:42:55 +02:00
PanteraPolnocy b63a4596f9 Use HTTPS in the bridge by default 2022-03-18 14:59:55 +01:00
Beq e2fd2687d4 FIRE-30963 - better physics defaults 2021-05-18 23:27:52 +01:00
PanteraPolnocy a0ee9bf2c7 Refresh movelock position after sitting down (if movement autorelocking is ticked in prefs) to prevent pulling avatar back to previous one after standing up
Suggestion provided by Zi; Also instead of using region resources and timer() - send a HTTP request from the viewer itself
2021-02-12 17:08:13 +01:00
PanteraPolnocy 14d152baab FIRE-30654 Make sure that LSL Bridge won't ask for OpenCollar in public channel, for whatever reason
Newest state/channel will be applied anyway after returning region URL to the viewer
2021-02-06 02:05:22 +01:00
Tonya Souther 5d0704e36c FIRE-23155: Allow the LSL bridge AO interface to only disable stand animations 2019-06-16 13:18:34 -05:00
PanteraPolnocy ec92b2135f An option to extend basic script info feature with various details useful for builders 2018-11-20 00:29:28 +01:00
PanteraPolnocy 57f8ce1e3c FIRE-21622: Actually, treat hover helper force as a region directional vector instead of local one in Flight Assist; Avatar may be upside down and force should always be applied upwards in this case 2018-07-17 15:19:39 +02:00
PanteraPolnocy 1d8f706523 FIRE-21622: Rework Flight Assist to work with llSetForce() instead of llApplyImpulse() 2018-07-13 22:20:25 +02:00
PanteraPolnocy ef8b7fd627 FIRE-21622: Tweak Flight Assist by adjusting speeds, addin proper mass measurement and minimum flight altitude 2018-07-12 11:41:23 +02:00
Liny 33ba653ff4 Fix wording on comment in bridge to be correct. 2018-05-12 21:18:48 -07:00
Ansariel eab6e009d0 Don't try to use LSL bridge if we don't have a URL and log URL request failures 2017-01-06 09:32:25 +01:00
Northspring cf72bb07bc SUP-15946: A bug actually; Avatars vibrate when Movelock is enabled
This reverts a part of change made in commit 104695ae4765 - it seems, that simulator doesn't like so fast position updates
Not bumping Bridge version for auto update, as this is minor change, people with "wobbling while movelocked" should just recreate the Bridge
2015-09-18 09:07:11 +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
Northspring 165d32b2ff Minor Bridge alterations and cleanup
Bridge Recreation not needed
2015-05-16 15:28:52 +02:00
Northspring 93b312b0c9 LSL Bridge: Send acknowledgment of receipt via HTTP to the viewer for SL grids teleport skip to avoid a possible memory leak 2014-09-03 22:13:11 +02:00
Northspring 7156e8239b Synchronized script version in LSL comment to match the actual one from c++ code
Nothing crucial, there is no need to recreate Bridge or such; Just comment change to keep consistency
2014-08-30 20:22:37 +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 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
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 ad37ab7209 Script doesn't need to take controls over meta value - regular keys are available
Also, ask for perms ONCE - on attach()
2014-07-05 14:26:06 +02:00
Northspring eac0622f6f Send an acknowledgment of receipt from script to viewer for all commands, which are not sending back HTTP response for FSLSLBridgeRequestResponder 2014-06-24 19:16:42 +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 d0ac1f7f71 Instead of passing HTTP request to parseCommand() function - just parse it in place
Also: 1) Move most often used commands to the top of that large if() statement and 2) Be a bit more paranoid in changed() event
2014-06-20 19:16:39 +02:00
Northspring 2854e1609b Added a switch to use HTTPS instead of HTTP in LSL Bridge
Disabled by default, for testing purposes only; HTTPS is usually slower, than HTTP
Also, moved variables reset from on_rez() event to initBridge() function, which is called in attach() event anyway
2014-06-20 16:54:38 +02:00
Ansariel ae309e97b2 Fix possible memory leak in LSL bridge 2014-06-20 07:53:52 +02:00
Northspring a72568e6af Don't send an empty list to radar via llHTTPResponse()
llGetObjectDetails() has limited range and not all UUIDs can be resolved; Sending back an empty string to radar for CSV processing is pointless
2014-06-20 05:00:00 +02:00
Northspring 8a608aa0ea Movelock improvement - adding friction 2014-06-20 01:08:10 +02:00
Northspring a4bd86f094 Added possibility to detach Bridge immediately via HTTP command 2014-06-19 20:10:53 +02:00
Northspring e3b3113184 A bit better URLs management in script; Cleaned up variables a bit 2014-06-19 17:19:05 +02:00
Northspring 0608aa0764 Don't call llDetachFromAvatar() when logged in on other viewer than Firestorm without asking for PERMISSION_ATTACH first 2014-06-19 15:56:44 +02:00
Northspring 39d09c6bb1 Viewer probably doesn't want to be greeted so many times...
No more "Hello Bridge" returned to viewer, and saved in logs, after every single command sent to Bridge (including radar queries) - less traffic via HTTP
2014-06-18 21:02:07 +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 e79a3ca7e0 Actually, do the same check for flight assistant... if it's active, then next timer() will set llSetForce() to a proper value 2014-06-18 14:35:24 +02:00
Northspring aa04df9a6d If makeSane() was called from changed(CHANGED_INVENTORY) there is a possibility, that movelock can be disengaged by accident with llStopMoveToTarget() 2014-06-18 14:13:52 +02:00
Northspring ca487d1065 Fixing minor overlook in the script 2014-06-18 13:55:45 +02:00
Northspring 267e997e2d Yet another small clean-up 2014-06-18 03:29:33 +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
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
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 806d9df34b Minor getScriptInfo() function adjustments
- A bit simplier typecasting from list provided by llGetObjectDetails()
- More readable - added spaces before units
- Changed 'kb' to 'KB' and 'cpu' to 'CPU'
- Mono scripts are using dynamic memory allocation nowadays, so reworded "xxx KB consumed for xxx ms of CPU time" to "xxx KB allowed memory limit, xxx ms of CPU time consumed"
2014-05-12 16:34:02 +02:00
Northspring 21351bec7c Minor LSL Bridge speed-up: Replace llSetPrimitiveParams() with llSetLinkPrimitiveParamsFast() in on_rez() event to avoid 200 milliseconds unnecessary sleeping in script
"For almost all situations we recommend you use llSetLinkPrimitiveParamsFast" - http://wiki.secondlife.com/wiki/LlSetPrimitiveParams#Summary
2014-05-04 17:52:48 +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