Anthony Jackson Newbie
Joined: 24 Nov 2008 Posts: 2
|
Posted: Mon Nov 24, 2008 7:17 pm
Crashing cMud |
I recently discovered mxp protocol, and became interested in trying to apply it on mud, so I downloaded cMud as a way to test whether my code was actually working. The current version of the mxp setup command causes cmud to crash hard with an access violation. It obviously shouldn't be doing that, but is there something spectacularly wrong with the text the mud is sending? Here's capture:
^[[1z<!EL RID delete>
^[[1z<!EL long delete>
^[[1z<!EL exits delete>
^[[1z<!EL items delete>
^[[1z<!EL living delete>
^[[1z<!EL player delete>
^[[1z<!EL shop delete>
^[[1z<!EL inv delete>
^[[1z<!EL chp delete>
^[[1z<!EL mhp delete>
^[[1z<!EL csp delete>
^[[1z<!EL msp delete>
^[[1z<!EL RSH flag=RoomName>
^[[1z<!EL RID flag=RoomNum>
^[[1z<!EL long FLAG='RoomDesc'>
^[[1z<!EL exits FLAG='RoomExit'>
^[[1z<!EL items '<send "examine &uid;|get &uid;|get all &id;|nickname ITEM &id; &dflt;">' att='uid id dflt'>
^[[1z<!EL living '<send "examine &uid;|consider &uid;|nickname TARG &uid;|nickname TARG &id;">' att='uid id'>
^[[1z<!EL player '<send "examine &uid;|consider &uid;|nickname PTARG &uid;|nickname TARG &uid;">' att='uid'>
^[[1z<!EL shop '<send "buy &uid;">' att='uid'>
^[[1z<!EL inv '<send "examine &uid;|drop &uid;|drop all &id;|nickname ITEM &id;&dflt;">' att='uid id dflt'>
^[[1z<!EL chp '<var cur_hp>'>
^[[1z<!EL mhp '<var max_hp>'>
^[[1z<!EL csp '<var cur_sp>'>
^[[1z<!EL msp '<var max_sp>'>
I'm somewhat suspicious that the error is in <!EL (blah) delete> where (blah) isn't defined, but I need that because some clients produce error reports if you try to redefine an existing element (it's not obvious from the spec how that case is supposed to be handled). In any case, even if what I'm sending is wrong it shouldn't be causing fatal crashes in the client. |
|