Page 12 of 15
Re: YATCO 2.3
Posted: Thu Sep 18, 2014 2:02 am
by Drevarr
anyone having issues with YATCO in the mudlet 3.0 alpha?
Previously my set up worked as intended, in the 3.0 alpha captured chats are getting cut of at 80 characters, 90 if you add the timestamp.
Re: YATCO 2.3
Posted: Thu Sep 18, 2014 7:23 am
by phasma
Yep. This is a problem I have noticed that I outlined a while ago
here. Not sure what the deal is.
Re: YATCO 2.3
Posted: Thu Sep 18, 2014 8:36 pm
by xabre
It's like that for a while in 2.1, still remains in 3.0 alpha. Strange thing, generic installer has this issue, compiling from sources also reveals the issue, however curent Ubuntu Utopic package doesn't have this problem. And I simply cannot track down the huge difference that makes it work in Ubuntu and nowhere else.
Re: YATCO 2.3
Posted: Thu Sep 25, 2014 7:44 am
by dicene
Here's a temporary solution until the copy function is working properly again. Note that it won't properly preserve all formatting in captured text, it just paints the whole line one color(presumably based on the formatting of the first letter of the capture):
If you haven't modified the
function demonnic.chat:append(chat) in the Code script(mine was in YATCO-23/Demonnic/Tabbed Chat/Code), you can just replace that function(not the whole script) with the one in the pastebin at the bottom of this post. If you have modified it, follow the instructions below:
- Add
local curLine = getCurrentLine() between the lines
copy() and
if demonnic.chat.config.timestamp then
- Add
demonnic.chat.windows[chat]:decho(string.format("<%s,%s,%s:%s,%s,%s>",ofr,ofg,ofb,obr,obg,obb) .. curLine .. "\n") after
demonnic.chat.windows[chat]:echo(" ")
- Add
demonnic.chat.windows[demonnic.chat.config.Alltab]:decho(string.format("<%s,%s,%s:%s,%s,%s>",ofr,ofg,ofb,obr,obg,obb) .. curLine .. "\n") after the line
demonnic.chat.windows[demonnic.chat.config.Alltab]:echo(" ")
- Comment out the line
demonnic.chat.windows[chat]:append()
- Comment out the line
appendBuffer(string.format("win%s", demonnic.chat.config.Alltab))
Here is a copy of what the function should look like:
http://pastebin.com/Jr3BCQZp
Code: Select all
function demonnic.chat:append(chat)
local r = demonnic.chat.config.windowColors.r
local g = demonnic.chat.config.windowColors.g
local b = demonnic.chat.config.windowColors.b
selectCurrentLine()
local ofr,ofg,ofb = getFgColor()
local obr,obg,obb = getBgColor()
if demonnic.chat.config.preserveBackground then
setBgColor(r,g,b)
end
copy()
local curLine = getCurrentLine()
if demonnic.chat.config.timestamp then
local timestamp = getTime(true, demonnic.chat.config.timestamp)
local tsfg = {}
local tsbg = {}
local colorLeader = ""
if demonnic.chat.config.timestampCustomColor then
if type(demonnic.chat.config.timestampFG) == "string" then
tsfg = color_table[demonnic.chat.config.timestampFG]
else
tsfg = demonnic.chat.config.timestampFG
end
if type(demonnic.chat.config.timestampBG) == "string" then
tsbg = color_table[demonnic.chat.config.timestampBG]
else
tsbg = demonnic.chat.config.timestampBG
end
colorLeader = string.format("<%s,%s,%s:%s,%s,%s>",tsfg[1],tsfg[2],tsfg[3],tsbg[1],tsbg[2],tsbg[3])
else
colorLeader = string.format("<%s,%s,%s:%s,%s,%s>",ofr,ofg,ofb,obr,obg,obb)
end
local fullstamp = string.format("%s%s",colorLeader,timestamp)
demonnic.chat.windows[chat]:decho(fullstamp)
demonnic.chat.windows[chat]:echo(" ")
demonnic.chat.windows[chat]:decho(string.format("<%s,%s,%s:%s,%s,%s>",ofr,ofg,ofb,obr,obg,obb) .. curLine .. "\n")
if demonnic.chat.config.Alltab then
demonnic.chat.windows[demonnic.chat.config.Alltab]:decho(fullstamp)
demonnic.chat.windows[demonnic.chat.config.Alltab]:echo(" ")
demonnic.chat.windows[demonnic.chat.config.Alltab]:decho(string.format("<%s,%s,%s:%s,%s,%s>",ofr,ofg,ofb,obr,obg,obb) .. curLine .. "\n")
end
end
--demonnic.chat.windows[chat]:append()
if demonnic.chat.config.gag then
deleteLine()
tempLineTrigger(1,1, [[if isPrompt() then deleteLine() end]])
end
if demonnic.chat.config.Alltab then
--appendBuffer(string.format("win%s", demonnic.chat.config.Alltab))
end
if demonnic.chat.config.blink and chat ~= demonnic.chat.currentTab then
if (demonnic.chat.config.Alltab == demonnic.chat.currentTab) and not demonnic.chat.config.blinkOnAll then
return
else
demonnic.chat.tabsToBlink[chat] = true
end
end
end
Full YATCO package(with triggers for the IRE mud Imperian):
https://www.dropbox.com/s/6j2reyaqyl4hp ... c.zip?dl=0
Re: YATCO 2.3 for Achaea
Posted: Fri Jul 08, 2016 12:52 am
by trentont101
Thank you a million times for this!
I was able to work it into achaea perfectly and its beatiful!
If anyone would benefit from my version let meknow I am welcome to post it
Re: YATCO 2.3
Posted: Fri Nov 11, 2016 9:40 pm
by zakman
This is most likely a question better suited for general help than for this thread, but - how would I configure the chat console window so that it has a border around it? Don't need anything fancy, just a simple line so that there's a clean visual separation between the tabs and the rest of Mudlet.
Re: YATCO 2.3
Posted: Thu Dec 08, 2016 10:20 am
by frumplotj
I'm currently having an issue with the script. I added the color format portion for the tabs and have started receiving the following error:
Lua syntax error:[string "--[[..."]:194: unexpected symbol near '
Here is what it is referring to:
http://pastebin.com/V8BMaKva
Lastly, is there any way to make the capture boxes hold the same color after they capture. As of right now, it just sticks to using the first color of any string.
Re: YATCO 2.3
Posted: Thu Dec 29, 2016 10:46 pm
by Iosai
Not sure if this package is being maintained any more (the download seems broken, so I guess not), but there seems to be a run-away trigger on isPrompt() in there that is sending GMCP Core.Support.Add ["Comm.Channel 1"] every prompt (or, at least, very frequently).
This doesn't seem necessary.
Re: YATCO 2.3
Posted: Sat May 20, 2017 7:48 am
by dcarroll9999
Link is broken. Here is the link according to Internet Archive's Wayback Machine on the 21st of June, 2017:
https://web.archive.org/web/20160621075 ... CO-2.3.xml
Re: YATCO 2.3
Posted: Wed May 24, 2017 1:43 pm
by phasma
Iosai wrote:Not sure if this package is being maintained any more (the download seems broken, so I guess not), but there seems to be a run-away trigger on isPrompt() in there that is sending GMCP Core.Support.Add ["Comm.Channel 1"] every prompt (or, at least, very frequently).
This doesn't seem necessary.
This package has never requested support for Comm.Channel. You must be sending that elsewhere. It's always used triggers. Maybe you have my personal version I posted in House Aurendil? That uses GMCP though only ever requests it on login. Sorry for the late response! Only just noticed this.