Ascii codes of unknown characters

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Ascii codes of unknown characters

Post by Filion »

Using notepad++, i saw that on logs some characters that my MUD sends are considered as nil.
If I do catch them with triggers, how do I see which ascii codes match those characters?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Ascii codes of unknown characters

Post by Heiko »


Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: Ascii codes of unknown characters

Post by Filion »

http://forums.mudlet.org/viewtopic.php? ... ell#p11623
actually the problem is that specific one.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Ascii codes of unknown characters

Post by Heiko »

You can use perl regex pattern triggers in conjunction with selectCaptureGroup() to replace (or analyse the char using ascii = string:byte()) any non printable character except the 0 character. I wonder why your MUDs sends the 0 character especially because I wasn't able to reproduce it using the example in the other thread, but I'll make the main parser drop all 0 chars as of the next update so this will no longer be a problem.

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: Ascii codes of unknown characters

Post by Filion »

The specific character must be something that produce a "spinning" effect on timers.
changing the following symbols =+**+=--= and so on.

In the telenet version, the one symbol is substituted with its following. Thus the spinning.

That character must be the one that mudlet doesn't recognise and place it as nil

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: Ascii codes of unknown characters

Post by Filion »

Necroing:

After I checked a similar topin on CMUD, it seems that the character the mud uses between the symbols is a CR character.

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: Ascii codes of unknown characters

Post by Filion »

So to be more specific: This is from my notebook++
start of the timer is here<-
NUL NULNUL
NUL-
NUL=NUL+

NUL*
NUL
*Eviscerator* sends Hackett sprawling with a powerful bash!

NUL*
NUL+
*Gauner* tickles Jaggar's body with his pierce.
A Dha'vol trolloc barely cleaves Aang's body.
*Eviscerator* slashes Hackett's body hard.
*Graye* pounds Hackett's body hard.

NUL=NUL-
Aang sends *Eviscerator* sprawling with a powerful bash!
You dodge a bash from *Dimst* who loses his balance and falls!

NUL
NUL-NUL=
Your bash at *Dimst* sends him sprawling!<- the timer finishes.

I try to catch the trigger by typing
Code: [show] | [select all] lua
\r
or
Code: [show] | [select all] lua
\r\n
but nothing happens,

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Ascii codes of unknown characters

Post by Heiko »

Latest git strips all null characters automatically. CR is also being stripped because the game cannot control the screen cursor (conceptually impossible). However, you could script fading effects like this yourself if necessary.

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: Ascii codes of unknown characters

Post by Filion »

As I am not good at compiling stuff (I failed to do it when I tried before), is there any way to delete the NUL characters via scripting?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Ascii codes of unknown characters

Post by Heiko »

I'll make a new windows release in a couple of days anyways.

Post Reply