secondlife / secondlife/viewer

LLChat message types have different senders

Open
#2,385 0 comments 0 reactions 1 assignee View on GitHub

@maxim-productengine is already working on this.

Since Aug 21, 2024.

bug stale
Dominant language
C++
Stars
299
Forks
146
Avg merge
1d 9h
Merged PRs (30d)
88

Description

Environment

Lua Viewer: Second Life Release 7.1.9.10286089860 (64bit)

Description

Sender is either the script or the user when using LLChat function.
This should be consistent and all should have the same sender.
Following image shows use of LLChat.sendWhisper(), LLChat.sendNearby() and LLChat.sendShout() respectively
image

Reproduction steps

Here is a modified test_LLChat.lua script that produces the above output

LLChat = require 'LLChat'
local timers = require 'timers'

function generateRandomWord(length)
    local alphabet = "abcdefghijklmnopqrstuvwxyz"
    local wordTable = {}
    for i = 1, length do
        local randomIndex = math.random(1, #alphabet)
        table.insert(wordTable, alphabet:sub(randomIndex, randomIndex))
    end
    return table.concat(wordTable)
end

local msg = {'AI says:'}
math.randomseed(os.time())
for i = 1, math.random(1, 10) do
    table.insert(msg, generateRandomWord(math.random(1, 8)))
end

local id = "5fea458b-30d9-b032-ddde-d1b5276f2949"
LLChat.sendWhisper(table.concat(msg, ' '))
timers.Timer(1, 'wait')
LLChat.sendNearby(table.concat(msg, ' '))
timers.Timer(1, 'wait')
LLChat.sendShout(table.concat(msg, ' '))

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.