[available] GMCP in Mudlet

Post Reply
User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Re: GMCP in Mudlet

Post by tsuujin »

Ok.... so it doesn't save properly. I can go in and edit a config file manually to set the gmcp to "yes" and the next time it loads it's fine. However, if I save that profile, then load it back up with the newest profile the config is set back to "no"

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: GMCP in Mudlet

Post by Vadi »

Make sure to update to latest version, I had a typo in xml saving where it actually used some other option to save the value of.

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Re: GMCP in Mudlet

Post by tsuujin »

Perfect, works fine now.

dorwardv
Posts: 15
Joined: Sat Jul 24, 2010 11:02 am

Re: GMCP in Mudlet

Post by dorwardv »

How do i trigger on GMCP table change? or gmcp data sent from the server?

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: GMCP in Mudlet

Post by Vadi »

Same as atcp (see manual), it's raised as a mudlet event

dorwardv
Posts: 15
Joined: Sat Jul 24, 2010 11:02 am

Re: GMCP in Mudlet

Post by dorwardv »

oh ima try it out. thanks a lot

dorwardv
Posts: 15
Joined: Sat Jul 24, 2010 11:02 am

Re: GMCP in Mudlet

Post by dorwardv »

when logging to aardwolf i get this messages
-----message start below this line-----
GMCP Error: core.supports.set -> unsupported keyword char.skills (data:Char.Skills 1)

GMCP Error: core.supports.set -> unsupported keyword char.items (data:Char.Items 1)

GMCP Error: core.supports.set -> unsupported keyword char.items (data:Char.Items 1)

GMCP Error: core.supports.set -> unsupported keyword comm.channel (data:Comm.Channel 1)

GMCP Error: core.supports.set -> unsupported keyword redirect (data:Redirect 1)
-----message ends above this line-----
what do those messages mean?

part of the gmcp table in aardwolf is this
table {
'charvitals': table {
'mana': 15225
'hp': 21350
'moves': 16934
}
}

i created a script
----script start below this line----

name:gmcpstats

registered event handler:charvitals

function gmcpstats(event, args)
echo("Called event: " .. event .. "\nWith args: " .. args)
end

----script end above this line----

however im not seeing the function called while im walking around effectively changing moves, am i doing this wrong?

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: GMCP in Mudlet

Post by Vadi »

dorwardv wrote:when logging to aardwolf i get this messages
-----message start below this line-----
GMCP Error: core.supports.set -> unsupported keyword char.skills (data:Char.Skills 1)

GMCP Error: core.supports.set -> unsupported keyword char.items (data:Char.Items 1)

GMCP Error: core.supports.set -> unsupported keyword char.items (data:Char.Items 1)

GMCP Error: core.supports.set -> unsupported keyword comm.channel (data:Comm.Channel 1)

GMCP Error: core.supports.set -> unsupported keyword redirect (data:Redirect 1)
-----message ends above this line-----
what do those messages mean?
Means that the default things that Mudlet enables after negotiating GMCP aren't supported by Aardwolf. I'll remove them to have i work better cross-MUD.
dorwardv wrote:part of the gmcp table in aardwolf is this
table {
'charvitals': table {
'mana': 15225
'hp': 21350
'moves': 16934
}
}

i created a script
----script start below this line----

name:gmcpstats

registered event handler:charvitals

function gmcpstats(event, args)
echo("Called event: " .. event .. "\nWith args: " .. args)
end

----script end above this line----

however im not seeing the function called while im walking around effectively changing moves, am i doing this wrong?
I don't know how Aardwolf works. Perhaps it only sends updates when your health/mana/moves actually changes?

dorwardv
Posts: 15
Joined: Sat Jul 24, 2010 11:02 am

Re: GMCP in Mudlet

Post by dorwardv »

hi vadi,

thanks for your replay,

it does change
display(gmcp) before movements
table {
'charvitals': table {
'mana': 15225
'hp': 21350
'moves': 16934
}
...
}
display(gmcp) after movements yield

table {
'charvitals': table {
'mana': 15225
'hp': 21350
'moves': 16927
}
...
}


it actually updates however my handler isnt even called on updates on gmcp updates of charvitals.

info on how aardwolf handles gmcp negotiations can be found here
http://www.aardwolf.com/wiki/index.php/Clients/GMCP

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: GMCP in Mudlet

Post by Vadi »

not sure, your setup seems right to me.

Post Reply