summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
12 daysLocation for Discord Rich Presence Activity StateErik Kundiman
I was going to use LLAgentUI::buildLocationString but there's no location format that shows only region and coords without having to have the parcel name empty, so I copied buildLocationString implementation in the case of LOCATION_FORMAT_NO_MATURITY but when the parcel name is empty. I had to make updateDiscordActivity check agent's ID and the existence of agent avatar pointer first before trying to set Activity Details or State, cause I like the "Show location" button be checkable not only after online when both the ID & pointer will have existed. I think this way is simpler than programmatically enabling the "Show location" button after the user is logged in. I put a trigger to Activity update somewhere after the user is logged in for now, not yet after a TP. The elapsed time gets reset whenever Activity is updated for now, but I'll try to make elapsed time extended instead. No Party for now, because I couldn't find a way to make a Party shown without showing its CurrentSize (I could still get away not showing its MaxSize by setting it to 0), so the State (location) is shown above the elapsed time, not on the right of it. I'll try to figure out to get some representative numbers for its CurrentSize & MaxSize next. Also no privacy on hiding the username for now, until the UI is ready.
13 daysConnect to Discord now through privacy tabErik Kundiman
Now the access token is saved the way passwords are saved, but without a username, so we can have some persistence without having to implement an OAuth2 backend server cause we would have to store those tokens there anyway still and that would even require more disclosure that the user token gets saved on a server, and it's just simpler to not go that way. Discord Social SDK doesn't have to have a helper for sending code to a custom server anyway, that we would have to have some asynchronous HTTP requestor ready. Show location check button gets enabled only when Discord integration is enabled, though it's not functioning yet.
13 daysShorten Discord-related local variable namesErik Kundiman
and minimise difference from SL main.
13 dayspanel_preferences_privacy tabsSecret Foxtail
Add tab and checkboxes for discord social SDK integration options to panel_preferences_privacy.xml
13 daysMove Discord-related code to llappviewer.cppErik Kundiman
The doFrame is the one called over and over again, so running the Discord callbacks from there shouldn't have one extra function overhead, while running the Discord initialisation is only once so it's much more okay to have the extra function overhead there.
2025-07-23Reorganise shared macros closer to "attach" codeErik Kundiman
and reindent the appearance manager functions to call to match how they will be placed on the combining macro.
2025-07-23Minimal @remoutfit[:<part>]=force implementationErik Kundiman
Copying from LLEditTakeOff implementation in llviewermenu.cpp.
2025-07-23@detach:<folder_name>=force implementationErik Kundiman
Per specification, the folder must be directly under "#RLV" for this to work, hence not using the shared folder ID retrieval macro.
2025-07-23Shared macros for attach-related RLV commandsErik Kundiman
2025-07-23RLV shared folder needs to be directly under rootErik Kundiman
2025-07-23Fix linking to c_dfDIJoystick error when on SDLErik Kundiman
Copied from llwindowwin32.cpp.
2025-07-21Dependency on libnss3 & libnspr4 on Debian/UbuntuErik Kundiman
for libcef.so. On a minimal system, those two wouldn't be pulled automatically by some other package(s).
2025-07-21Fix crash upon login on Linux aarch64Erik Kundiman
Tested on Debian Asahi so far, will try on Fedora Asahi next. I had to trace this down, setting Logging Level to Debug, and comparing SecondLife.log with a successful login on Linux x86-64. At first setWeight() in LLViewerVisualParam::setInfo seemed to be avoiding a crash too when commented out, but turns out it's still okay when re-enabled.
2025-07-19Exclude Debian arm64 from WebRTCErik Kundiman
When WebRTC was compiled with the viewer, we got this: Fatal error in: ../webrtc/src/media/engine/adm_helpers.cc, line 39 last system error: 88 Check failed: 0 == adm->Init() (0 vs. -1) Failed to initialize the ADM. This commit hasn't included the additional preprocessor macro for the platform in indra/newview/llvoiceclient.cpp yet, because there's no such macro yet to distinguish such distro from any other GNU/Linux distro.
2025-07-18Revert "LL_WEBRTC for marking WebRTC supporting platforms"Erik Kundiman
This reverts commit a8dfeed4632aad0233ff08d1efd950b620fd1be7.
2025-07-18Add one more tester to the teamErik Kundiman
2025-07-18Bring back Arch install prefix setting instructionErik Kundiman
previously unintentionally left out from commit 829e4
2025-07-16widgets/Stepper adjustmentSecret Foxtail
Make downstepper better match upstepper
2025-07-12Rich Presence support using Discord Social SDKErik Kundiman
Download DiscordSocialSdk-1.4.9649.zip https://discord.com/developers/applications/1393451183741599796/social-sdk/downloads to your ~/Downloads folder. Add -DUSE_DISCORD:BOOL=ON to your cmake line. The authorisation is triggered by selecting Help > Discord Social. It seems that the user will need to do this every time they want Rich Presence support on the viewer while using Discord. The Discord app is still set to be a public client in the OAuth2 tab, I'm going to try to make it work with the app set to be a confidential client, next. All Discord-related code are contained within one file, llstartup.cpp, and other classes access it through some opaque layer, static functions, otherwise we'd get these "duplicate symbol" linking errors.
2025-07-11@attachover:<folder1/../folderN>=force implementationErik Kundiman
See f4e04a3e7bac42a8cb18e9c70b67bf97ce020d8c
2025-07-10Add "gold" skinSecret Foxtail
Variant of default skin with gold buttons & tabs
2025-07-10@attach:<folder1/.../folderN>=force implementationErik Kundiman
A minimal one. It would still work even when the path leading to the right name of the end folder is wrong, but since scripts would likely be trying to get path components from issuing @getinv commands beforehand instead of inserting random names, we'll perfect this implementation later.
2025-07-10@getinv[:folder1/...]=<channel> implementationErik Kundiman
The collar I happen to have issued @getinv:.outfits/=98745923, so I just assume ignoring folders beginning with a dot only applies to the answer, not the command.
2025-07-10Fix crash from trying to detach alphaErik Kundiman
2025-07-09Partial @getinv=<channel> command implementationErik Kundiman
Returns an empty string if #RLV folder doesn't contain any folder. Listing sub-folders (folders under any folder under #RLV, listed on the options) isn't implemented yet in this commit.
2025-07-09No env settings needed for vcpkg pkgconf.exeErik Kundiman
Turns out the one used is installed/<arch>-windows/tools/pkgconf/pkgconf.exe which is installed by some package... No special PKG_CONFIG_LIBDIR/PATH needed either.
2025-07-09vcpkg's pkg-config.exe path has been updatedErik Kundiman
and it turns it's installed automatically for building some of our dependencies, and *not* by the "pkgconf" package.
2025-07-08Detachment by replacing outfit can be preventedErik Kundiman
Part of the @detach=<y/n> command implementation.
2025-07-08Correct commit bd6c39192b0f29be1fbbbbbc257cd0351e505afbErik Kundiman
2025-07-08Debian arm64 can use system nanosvgErik Kundiman
cause it's available now on trixie.
2025-07-08Windows can use vcpkg nanosvgErik Kundiman
2025-07-08Turn NDOF back on for Windows x64Erik Kundiman
and don't rebuild NDOF on non x86-64 Linux when it's already installed.
2025-07-08Preventing detachment from the inventory panelsErik Kundiman
Part of the @detach=<y/n> command implementation.
2025-07-08NDOF support for non x86-64 LinuxErik Kundiman
2025-07-08LL_WEBRTC for marking WebRTC supporting platformsErik Kundiman
so we don't have to keep adding unsupporting ones to the preprocessors in llvoiceclient. Note that CM_WEBRTC is complementary to LL_WEBRTC, which means its purpose is not to be XOR-ed. Any WebRTC supporting (either using LL's or CM's build) will have LL_WEBRTC set to ON, but *only* ones that use CM builds will have CM_WEBRTC set to ON *too*.
2025-07-08Change Debian arch labels, sort & NDOF off on arm64Erik Kundiman
2025-07-07Get the viewer installable on Debian arm64Erik Kundiman
The Debian version supported is 13 (trixie), because that's the version I could install on my M1, hence the Boost default version is 1.83 & we can use system's OpenJPEG 2.5.3. Somehow CMake's FindOpenGL wasn't effective, but we can get around this by setting the GL libraries paths when running cmake. Debian aarch64 suffers from the same problem Fedora aarch64 had when compiling libcurl, and it's assumed that it's Linux aarch64 thing. When trying to build ColladaDOM when building the viewer, it couldn't find Boost somehow, so building ColladaDOM is done in configuration stage instead. Upstream Variables.cmake is full of assumptions regarding architecture, and ARCH is used in many places already for Debian/Ubuntu, so we have to make sure ARCH is set with the correct value at the root level. Pipewire on trixie is also too new, so it's cancelled here. Some dependencies have the t64 suffixes on them, just like the currently supported Ubuntu (because I guess 24.04 *is*, based on trixie). The executable still crashes when launched on my M1, however, but we'll commit the progress so far for now.
2025-07-07Revert "Adjust viewer name for when logging the skin used"Erik Kundiman
This reverts commit ced2d634a76561d231e2c5854721c643ac071916. Turns out the original string is depended on by in-world creations, specifically HUDs, to determine whether the media is viewed from within SL or not. Thank you Jenni Windrider for pointing this out.
2025-07-04/skins/default adjustmentSecret Foxtail
Make some widgets less opaque for more consistency
2025-07-04Add rpm-build to tumbleweed instructions tooSecret Foxtail
almost forgot!
2025-07-04Fix tumbleweed build instructionsSecret Foxtail
add cmake and patch to tumbleweed build instructions
2025-07-03New Avatar Cloud designmobserveur
This commit changes the look of the avatar cloud
2025-07-03No setDPIAwareness or gIconResource if using SDLErik Kundiman
for now, and if we do have to use SDL for Windows ARM64.
2025-07-03Anticipate curl 8 from not being able to downloadErik Kundiman
This is cherry-picked from an old commit which was reverted before, but modified so that it only affects the platform that has to use system libcurl 8 (only Windows ARM64 so far). System libcurl, which is typically newer, doesn't accept when SL server responses with an invalid Content-Encoding value (usually some value that's probably meant to be put as the Content-Type value), that we'd get "unrecognized or bad HTTP Content or Transfer-Encoding" https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding A way to fix this would be to just not expect decompressed contents, by letting libcurl have the default value for CURLOPT_ACCEPT_ENCODING, which is NULL.
2025-07-03getCursorDelta isn't implemented if using SDL on WinErik Kundiman
2025-07-03Partial @detach=<y/n> command implementationErik Kundiman
Only greying out the detach option on the contextual menu popped up by right clicking the attachment in the 3D view/world, and not yet preventing detachment from the inventory/wearing panels.
2025-07-03Fix SL contributors credit on Linux broken by WinErik Kundiman
in commit b54464a34c3f441d40977e872df53825c7df4959
2025-07-02Preload CEF automatically on Linux aarch64"Erik Kundiman
This reverts commit 6d9bda960f179aa8ea3765c10aa3140d22c74086, and add the aarch64 condition for preloading. We can't use gDirUtilp->getLLPluginDir() yet in llappviewerlinux because it's not instantiated yet in that phase.
2025-07-01Make Windows SDL-ready (in case we need to)Erik Kundiman
2025-07-01Fix media_plugin_cef failing on Linux aarch64Erik Kundiman
WARNING #Plugin# llplugin/llplugininstance.cpp(106) LLPluginInstance::load: apr_dso_load of /usr/lib64/libmedia_plugin_cef.so failed with error 20019, additional info string: /usr/lib64/libcef.so: cannot allocate memory in static TLS block https://github.com/chromiumembedded/cef/issues/3616 https://github.com/chromiumembedded/cef/issues/3803 https://magpcss.org/ceforum/viewtopic.php?t=19622 I tried adding mProcessParams.envs.add("LD_PRELOAD=/usr/lib64/libcef.so"); to indra/llplugin/llpluginprocessparent.cpp, it didn't get rid of the error, but running `LD_PRELOAD=/usr/lib64/libcef.so megapahit` OR `LD_PRELOAD=/usr/lib64/libmedia_plugin_cef.so megapahit` does. It still doesn't load web pages, however, even though there are process plugin activities.