Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-05-12 09:50:39



Reply to topic  [ 4 posts ] 
New user needing help with a few things 
Author Message

Joined: 2024-12-01 22:24:54
Posts: 2
Reply with quote
Hi, first I really like the viewer, its a lot faster and makes SL more enjoyable :D I'm just having trouble finding these features (if they exist?) I was reading some post on here that you can add things to the viewer with Lua script and I downloaded and started to read the manual for that but I'm not a programmer. I have trouble understanding things like that, I'm still trying to read through it and understand but.... if its possible to do any of this with Lua scripting I think I would need alot of help to do, basically a step by step walkthrough or just something to copy paste lol. I can't even find the "user_settings" folder to put a Lua script in, I've looked through all the directories

favorite wearables tab
favorite landmarks bar
outfits tab on bottom toolbar
select where to save things
keyword alerts with sound
take as combined or separate object
“touch” items in inventory
local chat in a tab with the group IMs


2024-12-01 22:48:14
Profile

Joined: 2009-03-17 18:42:51
Posts: 5984
Reply with quote
Before asking questions, try and make yourself more familiar with the viewer: browse the preferences (will work for "select where to save things"), and do read the tool tips for every check box, browse the main menu (including the Advanced menu), browse the Inventory floater menu and context menu, etc.

This forum also got "howtos" and various articles to explain how the viewer works and where to find things.
E.g. or user_settings location under Windows, this can be found in the Windows installation HOWTO. Under Linux things are even simpler (everything can be found in your Linux account ~/.secondlife/ folder).

Then, use the "Search" feature of this forum to find the corresponding answers. Example:

Finally, do not expect to see every other viewer's features being present in my own viewer. Instead of implementing a gazillion features, I implemented Lua scripting. I prefer to add Lua functions when needed to be able to mimic specific features via Lua, than bloating the C++ code with such hard-coded features that will be only used by a few users, when at all, and will likely not even suit every of these users' needs or preferences.

My viewer is coded for stability and speed, and both of these are incompatible with code bloat.
It is also a viewer geared towards advanced users.


2024-12-02 14:05:14
Profile WWW

Joined: 2024-12-01 22:24:54
Posts: 2
Reply with quote
thank you I'm figuring some of it out I think but uh using the sample automation script made me spam "Hello!" over and over in a bunch of my groups :( Also I keep getting the message "__ is a new chatting object: inspecting it." Not sure how to disable that


2024-12-02 17:56:32
Profile

Joined: 2009-03-17 18:42:51
Posts: 5984
Reply with quote
Elm.Evergarden wrote:
thank you I'm figuring some of it out I think but uh using the sample automation script made me spam "Hello!" over and over in a bunch of my groups :( Also I keep getting the message "__ is a new chatting object: inspecting it."
What about reading the comments in this sample script ?... It is not meant to be used as is, but is only here to demonstrate what you can do with Lua automation...

Elm.Evergarden wrote:
Not sure how to disable that

Simply remove these two functions:
Code:
-- This is just a demonstration of IM callbacks usage and of how to use the
-- CallbackAfter() function: it got no real practical use other than being a
-- sample of what can be done.
function InstantMsgReply(session_id, name, text)
    OpenNotification(0, name .. " opened a new IM session: replying now.")
    SendIM(session_id, text)
end

function OnInstantMsg(session_id, origin_id, t, name, text)
    if known_sessions[session_id] then
        return
    end
    known_sessions[session_id] = true
    -- Wait 3 seconds for the IM session to start (important for group sessions) before replying:
    CallbackAfter(3, InstantMsgReply, session_id, name, "Hello !")
end


And this one:
Code:
-- This is just a demonstration of SLURL dispatching and floater opening, all
-- wrapped up in an OnReceivedChat() callback: it got no real practical use
-- other than being a sample of what can be done (and may be dangerous to use
-- "as is", due to the SLURL systematic auto-dispatching).
function OnReceivedChat(t, id, is_avatar, name, text)
    local i, j = string.find(text, "secondlife://")
    if i then
        OpenNotification(0, name .. " sent an SURL, dispatching it")
        DispatchSLURL(string.sub(text, i))
        return
    end
    if known_ids[id] then
        return
    end
    known_ids[id] = true
    if is_avatar then
        OpenNotification(0, name .. " is a new chatting avatar: displaying profile.")
        OpenFloater("avatar info", id)
    else
        OpenNotification(0, name .. " is a new chatting object: inspecting it.")
        OpenFloater("inspect", id)
    end
end


2024-12-02 19:19:18
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.