getting msdp to work?

  • rudeboyrave
  • rudeboyrave's Avatar Topic Author
  • Offline
  • New Member
More
05 Apr 2014 18:46 #1 by rudeboyrave
getting msdp to work? was created by rudeboyrave
has anyone successfully used msdp using the web client? I have been toying with a copy of the mistybars file but cant seem to get anything to happen.
i was wondering if anyone was able to share something that would show me how to get a small bar going, graphical or text showing how to receive and display such variables from inside the game.

the mud is a tbamud and we have such variables as:

eMSDP_HEALTH,
eMSDP_HEALTH_MAX,

thank you, and keep up the good work all.

Please Log in or Create an account to join the conversation.

  • rudeboyrave
  • rudeboyrave's Avatar Topic Author
  • Offline
  • New Member
More
05 Apr 2014 19:26 #2 by rudeboyrave
Replied by rudeboyrave on topic getting msdp to work?
after doing some reading it looks like i would need to create come code that would parse my msdp variables to the gcmp standards. this doesnt look very easy, but ill keep tinkering away.

Please Log in or Create an account to join the conversation.

More
06 Apr 2014 14:02 #3 by plamzi
Replied by plamzi on topic getting msdp to work?

rudeboyrave wrote: after doing some reading it looks like i would need to create come code that would parse my msdp variables to the gcmp standards. this doesnt look very easy, but ill keep tinkering away.


You don't need to do anything with GMCP unless you want to. When you initialize MistyBars, you can specify that you want to listen for msdp data, and then pass a custom function that will parse your data:
new MistyBars({
listen 'msdp',
process: function(d) {
/* parse your data here, populating the object cm with a character's max stats, cv with a char's vitals data, cs with a char's status data. the details for what goes into each object you can get from Aardwolf's gmcp wiki page or from playing Bedlam with &debug=1 and looking at the console log. you can reset these objects fully or update them incrementally, whichever you need. */
/* when you have all the data that requires / allows a redraw: */
redraw();
/* return the msdp data to other event hooks if you need to use it again: */
return d;
}
});

If you don't have relevant data for all parts of the MistyBars panel, you can also take GroupTab and strip it down to where it shows only one character's status bars. That would be a more involved task.

Please Log in or Create an account to join the conversation.