ppgab
07-12-2014, 10:53 PM
You probably already noticed this but, when the tibia client outputs some kind of text, sometimes it comes with "????" symbols, this issue was making a project of mine unusable so I have made some research.
What have i found so far:
Keywords; there are some keywords that, when found touching a "(" with a "." attached to the left of the word, the left parenthesis will be replaced with a "?".
Examples :
1) (.item) >> ?.item)
2) (.item >> ?.item
3) (randomwords.item >> ?randomwords.item
4) ( .item >> ( .item
Keywords found so far : item, mana
File extensions; when there is any symbol(except ; or : ) immediatelly followed by a dot and a file extension, all the symbols before found will be replaced with "?" untill a space is found
Note: It will trigger with a minimum of 2 matched words, example : .lua, .lu, .html, .ht;
Note2: both ";" and ":" will stop the replacement
Examples :
1) [[[ [[[.lua >> [[[ ???.lua
2) ´[~][`^}{^.html >> ????????.html
3) hello{`^}lua*().py >> hello????lua???.py
4) {}{}]]~´ .lu >> {}{}]]~´ .lu
5) ~[~]><>}^º:.ht >> ~[~]><>}^º:.ht
6) ~[^`<>}^º;.ht >> ~[^`<>}^º;.ht
7) @$%[[[]//=.lua >> @$%????//=.lua
Symbols found that won't be replaced : @ $ % & - _ = + § ; : . , /
You can type these in the regular chat and it will trigger the changes.
So yeah, i found a weird interest in researching this, maybe Darkstar could run a regex on lua error strings before sending them using this post and remove those ??? symbols :D
If you find something else just post here i'll add.
What have i found so far:
Keywords; there are some keywords that, when found touching a "(" with a "." attached to the left of the word, the left parenthesis will be replaced with a "?".
Examples :
1) (.item) >> ?.item)
2) (.item >> ?.item
3) (randomwords.item >> ?randomwords.item
4) ( .item >> ( .item
Keywords found so far : item, mana
File extensions; when there is any symbol(except ; or : ) immediatelly followed by a dot and a file extension, all the symbols before found will be replaced with "?" untill a space is found
Note: It will trigger with a minimum of 2 matched words, example : .lua, .lu, .html, .ht;
Note2: both ";" and ":" will stop the replacement
Examples :
1) [[[ [[[.lua >> [[[ ???.lua
2) ´[~][`^}{^.html >> ????????.html
3) hello{`^}lua*().py >> hello????lua???.py
4) {}{}]]~´ .lu >> {}{}]]~´ .lu
5) ~[~]><>}^º:.ht >> ~[~]><>}^º:.ht
6) ~[^`<>}^º;.ht >> ~[^`<>}^º;.ht
7) @$%[[[]//=.lua >> @$%????//=.lua
Symbols found that won't be replaced : @ $ % & - _ = + § ; : . , /
You can type these in the regular chat and it will trigger the changes.
So yeah, i found a weird interest in researching this, maybe Darkstar could run a regex on lua error strings before sending them using this post and remove those ??? symbols :D
If you find something else just post here i'll add.