Page 7 of 12

Re: Mudlet 3.0.0-alpha

Posted: Fri Sep 19, 2014 6:54 am
by Vadi
Sweet.

Re: Mudlet 3.0.0-alpha

Posted: Sat Sep 20, 2014 3:00 pm
by Silvine
Hi, a couple of quick questions :-

GMCP

Has gmcp data been altered in any way? In 2.1 when I display GMCP I get a list of several tables, but in 3.0alpha all the GMCP data is gone. The only data I can get to show is when I send a request to the mud to send a table e.g. worn or inventory. There is no method for me to request the mud to send character stats so I rely on Mudlet listening and then picking what's needed from the multiple tables.

Database

In 2.1 I use the lua database module as posted in these forms. I have a database to hold the stats of every item I identify and this works through triggers to collect the stats. In 3.0alpha I've deleted the lua database module from my scripts but the trigger system for the database has now stopped working, has anything changed I need to know about? I'm getting wrong argument type errors from the trigger I think.


Thanks

Re: Mudlet 3.0.0-alpha

Posted: Sun Sep 21, 2014 4:08 am
by Vadi
GMCP still functions as it did on IRE games at least, nothing major changed there that I recall. Which game are you seeing this with?

Database module - should be okay, but I am not 100% certain now the latest made it in. I'll double-check.

Re: Mudlet 3.0.0-alpha

Posted: Sun Sep 21, 2014 4:47 am
by Vadi
Database module looks okay in 3.0.0-alpha, the differences are minor between that and latest.

Re: Mudlet 3.0.0-alpha

Posted: Sun Sep 21, 2014 10:29 am
by Silvine
The game is bedlam for the gmcp issue.

Could it be the way I initialise variables or tables or something. I don't really know the 'correct' way to do things. I just mess with it until it works. Only now the trigger chain has stopped working. I'll look a bit deeper into it an try and isolate the issue.

2.1
Code: [show] | [select all] lua
lua display(gmcp)
{
  group = {
    leader = "Silvani",
    members = {
      {
        name = "Silvani",
        info = {
          mn = 749,
          mmv = 223,
          hp = 772,
          mhp = 772,
          class = "Enc",
          tnl = -1,
          npc = 0,
          lvl = 60,
          sex = "M",
          mmn = 749,
          mv = 223,
          pos = 8
        }
      },
      {
        name = "A Spirit",
        info = {
          mn = 220,
          mmv = 200,
          hp = 1250,
          mhp = 1250,
          class = "Psi",
          tnl = -1,
          npc = 1,
          lvl = 40,
          sex = "N",
          mmn = 220,
          mv = 200,
          pos = 8
        }
      },
      {
        name = "a gargoyle fighter",
        info = {
          mn = 260,
          mmv = 290,
          hp = 1200,
          mhp = 1200,
          class = "Ron",
          tnl = -1,
          npc = 1,
          lvl = 45,
          sex = "N",
          mmn = 260,
          mv = 288,
          pos = 8
        }
      }
    }
  },
  room = {
    info = {
      num = 3005,
      name = "The Temple Fountain",
      zone = "Garathorm Inner City /AW/",
      terrain = "City",
      exits = {
        e = 3063,
        w = 3004,
        s = 3006,
        n = 3001
      }
    }
  },
  equipment = {
    worn = {
      {
        key = "3030726",
        name = "the Northern Star",
        pos = "light"
      },
      {
        key = "4663656",
        name = "a thick marble ring",
        pos = "lfinger"
      },
      {
        key = "195189",
        name = "the Platinum Ring of Kith",
        pos = "rfinger"
      },
      {
        key = "5796062",
        name = "a necklace of dragon teeth",
        pos = "neck1"
      },
      {
        key = "2216296",
        name = "a cashmere cape",
        pos = "neck2"
      },
      {
        key = "2299641",
        name = "a glistening carapace of demon scale",
        pos = "body"
      },
      {
        key = "2425557",
        name = "an incandescent circlet of blue flames",
        pos = "head"
      },
      {
        key = "4663274",
        name = "a pair of black minotaur greaves",
        pos = "legs"
      },
      {
        key = "6128569",
        name = "Night-Black Boots",
        pos = "feet"
      },
      {
        key = "4663273",
        name = "a pair of minotaur combat gloves",
        pos = "hands"
      },
      {
        key = "4663009",
        name = "a pair of black leather sleeves",
        pos = "arms"
      },
      {
        key = "11466274",
        name = "the Vortex Shield",
        pos = "shield"
      },
      {
        key = "11466275",
        name = "an Icy White Cloak",
        pos = "about"
      },
      {
        key = "4666641",
        name = "the Belt of Life",
        pos = "waist"
      },
      {
        key = "11466277",
        name = "a thick marble bracelet",
        pos = "lwrist"
      },
      {
        key = "11466278",
        name = "a chromatic bracelet",
        pos = "rwrist"
      },
      {
        key = "3031934",
        name = "a Splintered Dagger",
        pos = "wielded"
      },
      {
        key = "5362292",
        name = "the worm-skin sack",
        pos = "held"
      },
      {
        key = "3030757",
        name = "a Pulsating Prism",
        pos = "face"
      },
      {
        key = "3031948",
        name = "Purple Robes of Quaralin",
        pos = "ear1"
      },
      {
        key = "4126943",
        name = "Purple Robes of Quaralin",
        pos = "ear2"
      },
      {
        key = "2427960",
        name = "Dashuk's All Seeing Eyes",
        pos = "eyes"
      },
      {
        key = "11466285",
        name = "the Blackstone Anklet",
        pos = "lankle"
      },
      {
        key = "11466286",
        name = "the Blackstone Anklet",
        pos = "rankle"
      }
    }
  },
  char = {
    affs = {
    },
    status = {
      exp = 311033306,
      enl = -1,
      enemy = "",
      tnl = -1,
      enemypct = -1,
      championexp = 0,
      level = 60,
      heroexp = 0,
      pos = 8
    },
    vitals = {
      mana = 749,
      hp = 772,
      moves = 223
    },
    maxstats = {
      maxmoves = 223,
      maxhp = 772,
      maxmana = 749
    },
    permaff = {
      "sneak",
      "sanc",
      "see invis",
      "true seeing"
    }
  }
}
and 3.0alpha
Code: [show] | [select all] lua
lua display(gmcp)
{
  equipment = {
    worn = {
      {
        key = "3450773",
        name = "The Illuminator",
        pos = "light"
      },
      {
        key = "267405",
        name = "a Strange Ring",
        pos = "lfinger"
      },
      {
        key = "11466830",
        name = "a Strange Ring",
        pos = "rfinger"
      },
      {
        key = "1526348",
        name = "a shimmering cloak of many colors",
        pos = "neck1"
      },
      {
        key = "3030897",
        name = "the Shoulder Plates of the High Commission",
        pos = "neck2"
      },
      {
        key = "3030898",
        name = "the Sapphire Plate",
        pos = "body"
      },
      {
        key = "3030899",
        name = "a crown of might",
        pos = "head"
      },
      {
        key = "3030900",
        name = "the Mystical Leggings of Kith",
        pos = "legs"
      },
      {
        key = "4483851",
        name = "Night-Black Boots",
        pos = "feet"
      },
      {
        key = "11466837",
        name = "the Grimlock's Gauntlets",
        pos = "hands"
      },
      {
        key = "3030903",
        name = "the Sleeves of the Ancient Sorcerers",
        pos = "arms"
      },
      {
        key = "11466839",
        name = "the Vortex Shield",
        pos = "shield"
      },
      {
        key = "4770179",
        name = "A Night-Black Robe",
        pos = "about"
      },
      {
        key = "3030906",
        name = "a carious girdle of sinews",
        pos = "waist"
      },
      {
        key = "3030907",
        name = "the Diamond Bracelet",
        pos = "lwrist"
      },
      {
        key = "3031051",
        name = "a chromatic bracelet",
        pos = "rwrist"
      },
      {
        key = "4431863",
        name = "the Staff of Drakhisis",
        pos = "wielded"
      },
      {
        key = "11466845",
        name = "the Draconian Idol",
        pos = "held"
      },
      {
        key = "3030911",
        name = "a Pulsating Prism",
        pos = "face"
      },
      {
        key = "3030912",
        name = "Purple Robes of Quaralin",
        pos = "ear1"
      },
      {
        key = "1371075",
        name = "an earring of Kith",
        pos = "ear2"
      },
      {
        key = "4764831",
        name = "Aspect of Water",
        pos = "eyes"
      },
      {
        key = "5198433",
        name = "the Blackstone Anklet",
        pos = "lankle"
      },
      {
        key = "11466851",
        name = "the Blackstone Anklet",
        pos = "rankle"
      }
    }
  }
}
The database trigger problem seems to be related to the GMCP problem, in that it stores the room id from GMCP so now that its not there it causes an error.

Re: Mudlet 3.0.0-alpha

Posted: Sun Sep 21, 2014 7:44 pm
by Vadi
Bedlam supports MSDP, so that gets enabled:
System Message:
msdp event <msdp.SERVER_ID> display(msdp) to see the full content
System Message:
msdp event <msdp.COMMANDS> display(msdp) to see the full content
... and I can confirm nothing really comes through GMCP then, although I can't find the Bedlam documentation on using MSDP or GMCP.

I suspect Bedlam is preferring MSDP over GMCP if the client supports both and that would break existing GMCP-reliant packages for Bedlam, so we need to find a way about this. Perhaps a toggle for MSDP like there is one in options.

Re: Mudlet 3.0.0-alpha

Posted: Sun Sep 21, 2014 8:58 pm
by Silvine
If I understood what you just said I would agree :D but a toggle sounds good to me.
googles MSDP

Re: Mudlet 3.0.0-alpha

Posted: Mon Sep 22, 2014 3:05 pm
by Zaphob
Vadi wrote:
Omni wrote: Small-ish issue, the icon gets broken it seems when this version is pinned to the taskbar.
I've pinned it and haven't noticed anything change.
Error shows for me, too. win7

Re: Mudlet 3.0.0-alpha

Posted: Mon Sep 22, 2014 4:52 pm
by Akaya
Awesome! It's finally here! I'm particularly interested in the setAppStyleSheet() function. Opening the Mudlet UI is exciting :D
The ability to use https and Dropbox is a big thumbs up.
MSDP support! Woohoo! I use this heavily with some UI's.
setOnEnter and setOnLeave for Geyser. Been using this for awhile now and gotta say they are great!

I did not, however, see anything about tracking your mouse coordinates over a label :( Hopefully this will be implemented soon. I have big plans for this in the future.

Great job Mudlet Team! Keep up the good work!

Re: Mudlet 3.0.0-alpha

Posted: Mon Sep 22, 2014 4:59 pm
by Akaya
While playing with new features, I noticed the example of how setAppStyleSheet() should be used needs double brackets, not double quotes...
Code: [show] | [select all] lua
setAppStyleSheet(“QScrollBar { background-color: red }”)
should be:
Code: [show] | [select all] lua
setAppStyleSheet([[QScrollBar { background-color: red }]])
Don't want everyone thinking this awesome feature doesn't work, cause it does!

Example that needs fixing found here: http://www.mudlet.org/2014/09/mudlet-3-0-0-alpha/