YATCO

Share your scripts and packages with other Mudlet users.
Drevarr
Posts: 41
Joined: Tue Aug 06, 2013 12:07 am
Location: GA, USA

Re: YATCO 2.3

Post by Drevarr » Thu Sep 18, 2014 2:02 am

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.

fetaera
Posts: 191
Joined: Sat Aug 03, 2013 7:00 pm

Re: YATCO 2.3

Post by fetaera » Thu Sep 18, 2014 7:23 am

Yep. This is a problem I have noticed that I outlined a while ago here. Not sure what the deal is.

xabre
Posts: 39
Joined: Thu Mar 08, 2012 7:19 pm

Re: YATCO 2.3

Post by xabre » Thu Sep 18, 2014 8:36 pm

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.

dicene
Posts: 47
Joined: Thu Sep 25, 2014 7:36 am

Re: YATCO 2.3

Post by dicene » Thu Sep 25, 2014 7:44 am

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

trentont101
Posts: 17
Joined: Fri Jan 17, 2014 12:07 am

Re: YATCO 2.3 for Achaea

Post by trentont101 » Fri Jul 08, 2016 12:52 am

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

zakman
Posts: 8
Joined: Sun Jul 08, 2012 4:11 am

Re: YATCO 2.3

Post by zakman » Fri Nov 11, 2016 9:40 pm

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.

frumplotj
Posts: 1
Joined: Thu Dec 08, 2016 10:08 am

Re: YATCO 2.3

Post by frumplotj » Thu Dec 08, 2016 10:20 am

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.

Iosai
Posts: 1
Joined: Thu Dec 29, 2016 10:36 pm

Re: YATCO 2.3

Post by Iosai » Thu Dec 29, 2016 10:46 pm

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. :)

dcarroll9999
Posts: 1
Joined: Sat May 20, 2017 7:44 am

Re: YATCO 2.3

Post by dcarroll9999 » Sat May 20, 2017 7:48 am

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

fetaera
Posts: 191
Joined: Sat Aug 03, 2013 7:00 pm

Re: YATCO 2.3

Post by fetaera » Wed May 24, 2017 1:43 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests