Stripping color tags ?
by Orion Elenzil · in Torque Game Engine · 01/02/2006 (10:37 am) · 3 replies
I'm occasionally writing the results of say %player.getShapeName() to a log file.
But it has weird characters at the beginning and end: 0x10 0x0c at the front and 0x11 at the end.
I'm pretty sure these are text-coloring tags:
the text is colored when echod in say the Chat Hud,
altho not colored when echod in the console.
Is there an easy wasy to strip these out in script ?
But it has weird characters at the beginning and end: 0x10 0x0c at the front and 0x11 at the end.
I'm pretty sure these are text-coloring tags:
the text is colored when echod in say the Chat Hud,
altho not colored when echod in the console.
Is there an easy wasy to strip these out in script ?
About the author
Torque 3D Owner Martin "Founder" Hoover
%name = stripChars(%name, "\cp\co\c6\c7\c8\c9");
There is also a detag function if you end up getting tagged string index's instead of names... %name = detag(%string);