Viewer 26.5 for scripters
The changes in the Linden Lab viewer that a script can notice, from release 26.2 to release 26.5 (26.5.0, source commit 746d768339). Everything here is viewer behaviour: it depends on the viewer the other avatar runs, and third-party viewers pick these changes up on their own schedule. Simulator changes are in the simulator release notes.
Game control
Section titled “Game control”Game control arrives on the main release line with 26.5 (#6202); 26.2 had none of it. The viewer sends controller input to the region, and scripts read it in the game_control event after PERMISSION_GAME_CONTROL is granted. The Game Control feature page has the modes, axes and buttons.
- Sending is on by default: the “send data to server” preference ships enabled (#6507), so a 26.5 user produces game control data without touching preferences.1
- Data goes only to regions that advertise the
GameControlEnabledsimulator feature. In other regions the viewer computes the state but sends nothing.2 - The controller “toggle sit” action looks for a seat before it sits on the ground: the nearest non-attached prim with its click action set to
CLICK_ACTION_SITwithin twice the avatar’s height. Set that action withllSetClickActionand your furniture answers a controller button; a seat with a sit target but the default click action is not found.3 - With no seat in range the action sits on the ground, but refuses when the ground is more than 30 m away, and otherwise autopilots the avatar to the spot first instead of snapping down (#6341).4
Scripted camera
Section titled “Scripted camera”Fixes to the follow camera driven by llSetCameraParams:
CAMERA_POSITION_LAGandCAMERA_FOCUS_LAGare no longer cut short by the distance limit. The camera may now drag beyondCAMERA_DISTANCEwhile the avatar moves, as the lag asks for; only the viewer’s own maximum distance, scaled down when the user zooms in, still clamps it (#6532, after #6278 had rebuilt the clamp around the subject-relative offset so a moving avatar keeps the intended geometry).5- A scripted camera survives momentary loss of its source. When the follow-cam parameters drop out for a moment, as can happen at a parcel or region border while the seat is re-established, the viewer keeps the last valid camera for up to 3 s before falling back to third person (#6237).6
- When a seat disappears for good, the viewer now clears the active follow-cam parameters as it stands the avatar up, instead of leaving the camera locked where the vehicle was.7
Script editor and SLua
Section titled “Script editor and SLua”The SLua editor work, previously a project viewer, is in the release (#3537 and follow-ups). What a scripter sees:
- The editor’s compiler menu offers LSL on Mono, LSL Legacy, LSL on Lua and Lua. The two Lua targets are enabled only when the region reports the
LuaScriptsEnabledsimulator feature.8 - In such a region, the New Script button in the Build floater’s Contents tab defaults to a Lua script; the choice is remembered while you stay on the same object and resets when you edit a different object or the region’s Lua support changes (#6221).9 Pick LSL explicitly if that is what you want
- The Build menu gains separate recompile entries per target, and the recompile queue skips scripts whose metadata says they are the wrong language (#5574).10
- Keyword highlighting and tooltips fall back to the viewer’s bundled definitions when the region omits a language’s definitions, instead of going blank (#6162).11
- Tabs in incoming chat, including script chat and error text, are expanded to four spaces before any other formatting, so indentation in
llSayoutput survives (#4926).12
For the language itself see LSL vs SLua and slua.dev.
External editor and the VS Code plugin
Section titled “External editor and the VS Code plugin”The viewer runs a local WebSocket JSON-RPC server for an external editor, used by the sl-vscode-plugin (#4599, #5834). The protocol is documented in the viewer tree at doc/external-editor-json-rpc.md.
- The server and the forwarding of script output are both on by default (
ExternalWebsocketSyncEnable,ExternalWebsocketForwardDebug).13 llOwnerSayoutput andDEBUG_CHANNELerrors are copied to the connected editor, tagged as owner-say or debug; they still appear in nearby chat as before.14- The editor can explore an object’s whole inventory, save a rezzed object’s scripts back to the rezzer’s inventory (plugin #99), and run recompile-all and reset-all on an object (#6191).15
- Compile errors are parsed from the simulator message with their line and column, so the editor can jump to them.16
Environment
Section titled “Environment”- The viewer no longer switches existing users back to the shared environment after every teleport;
SwitchToSharedEnvAfterTeleportdefaults off and is turned on only for first logins (#5806).17 A user who has chosen a local environment keeps it across teleports, and still sees nothing fromllSetAgentEnvironmentor parcel settings until they switch back to shared
- Chat modernization (#6179) rebuilds IM and conversation history on top of the Chat Service. It changes how the viewer stores and shows history; nothing in it changes what a script sends with
llInstantMessageor receives
Footnotes
Section titled “Footnotes”-
Viewer
746d768339:llwindow/llgamecontrol.cpp:600;llwindow/llgamecontrol.cpp:4346↩ -
Viewer
746d768339:newview/llappviewer.cpp:5471-5484;newview/llviewerregion.cpp:3776-3780↩ -
Viewer
746d768339:newview/llviewermenu.cpp:4682-4696;newview/llagent.cpp:5100-5109↩ -
Viewer
746d768339:newview/llagent.cpp:120;newview/llagent.cpp:1362-1375↩ -
Viewer
746d768339:newview/llfollowcam.cpp:415-434↩ -
Viewer
746d768339:newview/llagentcamera.cpp:85;newview/llagentcamera.cpp:1383-1396↩ -
Viewer
746d768339:newview/llvoavatar.cpp:8072-8076;newview/llfollowcam.cpp:859↩ -
Viewer
746d768339:newview/skins/default/xui/en/panel_script_ed.xml:244-259;newview/llpreviewscript.cpp:556-564↩ -
Viewer
746d768339:newview/llpanelcontents.cpp:150-173↩ -
Viewer
746d768339:newview/llcompilequeue.cpp:481-483↩ -
Viewer
746d768339:newview/llsyntaxid.cpp:287-293↩ -
Viewer
746d768339:newview/llviewermessage.cpp:2462-2463↩ -
Viewer
746d768339:newview/app_settings/settings.xml:14168-14178;newview/app_settings/settings.xml:14212-14222↩ -
Viewer
746d768339:newview/llfloaterimnearbychathandler.cpp:567-582↩ -
Viewer
746d768339:newview/llscripteditorws.cpp:256-264↩ -
Viewer
746d768339:newview/llscripteditorws.cpp:2265-2283↩ -
Viewer
746d768339:newview/app_settings/settings.xml:13463-13473;newview/llagent.cpp:588-589;newview/llagent.cpp:4215-4219↩