|
Doxedon Novice
Joined: 01 Dec 2007 Posts: 49
|
Posted: Sun Apr 19, 2009 1:51 pm
[3.06] ATCP and Mud Prompts |
Problem: When utilising ATCP functions (IRE muds) and having telnet triggers, a problem that in the past has come randomly is that the normal prompt output can end up messed at times. I've never been able to catch it properly before.
In General, the prompt should look like:
H:272 M:372 E:1264 W:1761 <eb>
Using the telnet trigger, without the #SAY involved, it messes up randomly with:
37m E:1264 W:1761 <eb>
In the case of the #SAY, the problem kept occuring on every line.
SCRIPT BEING USED:
Code: |
<trigger type="Telnet" param="200" priority="1450" id="26">
<pattern><![CDATA[Char.Vitals$H~:&hp~/&hpmax M~:&mana~/&manamax E~:&end~/&endmax W~:&will~/&willmax NL~:&xp~/100 ]]></pattern>
<value>#say I'm working!</value>
</trigger>
|
WINDOW OUTPUT:
Code: |
The harmonic vibrations of the room refresh your mind and body.
I'm working!
I'm working!
37m E:1264 W:1761 <eb> point devim
I'm working!
You point accusingly at Devim.
I'm working!
72 E:1264 W:1761 <eb> I'm working!
Hiramius peers at Devim unscrupulously.
I'm working!
372 E:1264 W:1761 <eb>
The harmonic vibrations of the room refresh your mind and body.
I'm working!
I'm working!
37m E:1264 W:1761 <eb> I'm working!
Just the slightest hint of a hum can be heard as the copper luminary flickers
ever so gently before recommencing its warming light.
I'm working!
37m E:1264 W:1761 <eb> say He suggested Idak
I'm working!
You say, "He suggested Idak."
I'm working!
m372 E:1264 W:1761 <eb>
The harmonic vibrations of the room refresh your mind and body.
I'm working!
I'm working!
37m E:1264 W:1761 <eb> I'm working!
Devim stares at you with a blank look of utter confusion.
I'm working!
372 E:1264 W:1761 <eb>
Hiramius shrugs helplessly.
H:272 M:372 E:1264 W:1761 <eb>
Hiramius rolls on the floor, laughing.
H:272 M:372 E:1264 W:1761 <eb>
The harmonic vibrations of the room refresh your mind and body.
H:272 M:372 E:1264 W:1761 <eb>
Hiramius Moonaires Ecthellian, Initiate of Earth says, "Everyone seems to be
confused here."
H:272 M:372 E:1264 W:1761 <eb>
The harmonic vibrations of the room refresh your mind and body.
H:272 M:372 E:1264 W:1761 <eb>
Devim stares about with a blank look of utter confusion.
H:272 M:372 E:1264 W:1761 <eb>
The harmonic vibrations of the room refresh your mind and body.
H:272 M:372 E:1264 W:1761 <eb>
Devim, Initiate of Earth says, "Oh i get it."
H:272 M:372 E:1264 W:1761 <eb>
Devim utters a deep, rumbling laugh.
H:272 M:372 E:1264 W:1761 <eb>
|
DEBUGGER OUTPUT:
Code: |
a Imperian |Canavas rubs some salve on his skin.
a Imperian |I'm working!
a Imperian ]37m E:1264 W:1761
a Imperian #Telnet 200: Char.Vitals<LF>H:3001/3001 M:4096/4096 E:13905/13905 W:19380/19380 NL:95/100
f Imperian | Telnet: Char.Vitals$H~:&hp~/&hpmax M~:&mana~/&manamax E~:&end~/&e... : (%1=3001, %2=3001, %3=4096, %4=4096, %5=13905, %6=13905, %7=19380, %8=19380, %9=95)
c Imperian | exec : Telnet "Char.Vitals$H~:&hp~/&hpmax M~:&mana~/&manamax E~:...
a Imperian |37m E:1264 W:1761 <eb> I'm working!
|
Mapper wasn't open. Debugger window was active. Script Editor was opened for part of the testing. Windows XP SP3. Pentium 4. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Apr 20, 2009 5:34 pm |
You should never output any text during a Telnet trigger. The problem happens because of network packet boundaries in the data received from the MUD. When processing a Telnet trigger, CMUD is in the middle of processing this network packet and any text that you output will interfere with the network data stream, preventing CMUD from handling packet breaks properly.
So, if the problem also happens when not using #SAY, I would need to see the full ATCP trigger that you are using to determine what might be interfering with the network packet boundary handling code.
Finally, when posting the output from the Script Debugger for problems like this, you must ensure that you have the "Show Raw Input/Output" message turned on in the debugger. That's the only way for me to see the network packet boundaries. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|