GMCP

by Ssaliss

Back to Common Grounds.

Ssaliss2010-09-02 19:33:49
Thank you!

Also, not sure how hard it would be to do, but would it be possible to add Demi essence to the new Vitals list? We don't have much use for "experience to next level" anymore, after all.
Mirami2010-09-03 05:49:12
Would somebody mind translating 'GMCP' into something we amateur coder-types could understand? Basically, what is it? What is it used for? How can I implement it into what I might normally be doing? (Alternately, how could we use GMCP to make coding something specific easier? From what I can tell, this might make autosippers easier?)

Alternately, is this something we non-professional-coder-types need not deal with?
Unknown2010-09-03 10:03:31
It's the successor to ATCP, which already includes things like the vitals (for the auto-sipper you mentioned). It's a Telnet subnegotiation protocol, and it can be incorporated into your scripts through various mechanisms, depending on your client of choice. No, it's not something any non-coder need worry about, as it's just icing on the cake.
Ileein2010-09-03 13:20:25
Basically, it whispers to your client telling it important things like how much health you have and which direction you're going, which your client can, if you wish to code it, incorporate into an autosipper or a mapper or a number of other useful things. At least, that's how I understand it.
Furien2010-09-03 13:24:58
In one case, it's somewhat combat-important - Mudbot uses something like this and can read your prompt through blackout, giving some of its system builders something of an advantage in addition to the usual speed.

(I'm not sure if it still does that, though.)
Vathael2010-09-03 13:31:22
The prompt through blackout was changed a long time ago.
Ssaliss2010-09-03 13:33:29
Yep. No more vitals during blackouts.

EDIT: Or rather, you still get the messages, but they all say you've got 0 health, 0 mana, etc.
Ssaliss2010-09-05 19:20:42
QUOTE
Your bug has been fixed. The change will be active the next time the Fates reweave the Great Tapestry. Thank you for reporting.

cloud9.gif No more "does not compute" message soon!
Prav2010-09-05 19:33:17
It's weird that current and max power is only sent in the string. =/
Ssaliss2010-09-05 19:44:38
Hmm. I'd BUG that, actually.
Sior2010-09-05 20:23:43
QUOTE (Prav @ Sep 5 2010, 03:33 PM) <{POST_SNAPBACK}>
It's weird that current and max power is only sent in the string. =/

More specific?
Ssaliss2010-09-05 20:28:00
Allow me.

QUOTE
Char.Vitals { "hp": "5110", "maxhp": "5110", "mp": "6600", "maxmp": "6600", "ego": "6600", "maxego": "6000", "ep": "21948", "maxep": "23400", "wp": "30900", "maxwp": "30900", "nl": "0", "string": "NL:0/100 H:5110/5110 M:6600/6600 E:6600/6000 P:10/10 N:21948/23400 W:30900/30900 " }


All things in "string" can be found under their own heading, aside from power. There is no "power" or "maxpower" heading, as there is for "hp" and "maxhp".

At least I assume that's what he meant.
Prav2010-09-06 00:06:40
QUOTE (Ssaliss @ Sep 5 2010, 04:28 PM) <{POST_SNAPBACK}>
Allow me.

All things in "string" can be found under their own heading, aside from power. There is no "power" or "maxpower" heading, as there is for "hp" and "maxhp".

At least I assume that's what he meant.


Exactly. For health, there's hp and maxhp; for mana there's mp and maxmp; for ego there's ego and maxego; for endurance there's ep and maxep; for willpower there's wp and maxwp.

There's no pp and maxp for power sent anywhere other than the string as P:10/10.

This isn't really an issue, as you can still get the information from the string, but, it's a weird little... anomaly, if you will.
Sior2010-09-06 01:53:55
QUOTE (Prav @ Sep 5 2010, 08:06 PM) <{POST_SNAPBACK}>
Exactly. For health, there's hp and maxhp; for mana there's mp and maxmp; for ego there's ego and maxego; for endurance there's ep and maxep; for willpower there's wp and maxwp.

There's no pp and maxp for power sent anywhere other than the string as P:10/10.

This isn't really an issue, as you can still get the information from the string, but, it's a weird little... anomaly, if you will.


Oops, this was overlooked. Expect this to be live soon!
Neos2010-09-06 21:51:38
Not an expert, but first this:

CODE
'Status': table {
      'xprank': '243rd'
      'guild': 'Aquamancers (a Piece of Fodder)'
      'order': 'none'
      'age': '191'
      'race': 'elfen'
      'city': 'celest (Earl)'
      'family': 'Eli'Silar'
      'level': '5th Rank of the Infinite'
      'explorerrank': 'a Walker of Lost Lands'
      'fullname': 'Keeper of the Word, Neos Eli'Silar, Aquamantic Egomaniac'


shows up twice, first like this, then as an empty table.

CODE
'StatusVars': table {
      'xprank': 'XP rank'
      'guild': 'Guild'
      'order': 'Order'
      'age': 'Age'
      'race': 'Race'
      'city': 'City'
      'family': 'Family'
      'level': 'Level'
      'explorerrank': 'Explorer rank'
      'fullname': 'Full name'
    }


And it has the wrong age for me. About 84 more years onto my real age.
Unknown2010-09-06 23:47:33
The Status message is different from StatusVars. One is the values and the other is just the labels used by something like Nexus.

The age thing probably is a bug, though.
Sior2010-09-07 05:58:19
Yeah that age thing looks buggy, so go ahead and submit a bug for it.
Ssaliss2010-09-07 06:00:52
As is the guild. I bugged the guild way back when I started using it, but I didn't pay attention to the age.
Neos2010-09-07 09:49:05
CODE
'WrongDir': 'in'


What is this for exactly? I don't remember it popping up the first time I checked gmcp, but after several looks it's been popping up.