Difference between revisions of "Extended ASCII"

From WolfWiki
Jump to: navigation, search
(Extended ASCII Characters in ET Pro 3: Minor style and information updates.)
Line 3: Line 3:
 
In ET Pro 3.0.1, you are finally able to use extended ASCII characters and quotation marks in chats.  Not all of these characters exist in all of ET's fonts (e.g. some will display properly in the console while others will not.)
 
In ET Pro 3.0.1, you are finally able to use extended ASCII characters and quotation marks in chats.  Not all of these characters exist in all of ET's fonts (e.g. some will display properly in the console while others will not.)
  
=== ASCII table shown in the console ===
+
You can use a two-character hex code (as shown in the script below) to represent the ASCII character.
http://games.theteamkillers.net/rtcw/etpro/ascii/ascii-con.png
+
  
=== ASCII table shown in the notification area ===
+
If you try to use these in game (e.g. /vsay =aaHELLO=ab) you'll soon find that it won't display them right away. This is because the in-game commands automatically convert the extended ascii characters.  To bypass the automatic encoding (and allow the use of the raw hex characters), you'll have to run them through ''cmd'' - such as ''/cmd vsay hi =aaHELLO=ab''. Without the essential cmd, your characters will come out completely normal.
http://games.theteamkillers.net/rtcw/etpro/ascii/ascii-nocon.png
+
  
 +
The following script displays every available ASCII character in the chat area (you must have a map running for the "say" command to work, and flood-protection CVAR's disabled due to the length of the script) :
  
The two images above display a table of all ASCII characters allowed in ET Pro 3, the top image displaying what it appears as in the console and the bottom displaying what it appears as in-game.
+
<pre>
 
+
cmd say "=20=20=20=20^z0 1 2 3 4 5 6 7 8 9 a b c d e f"
To use these characters, you can (if you're using Windows) use alt+xxxx, where xxxx is a series of numbers. ''(found using the Character Map, usually found in '''Start''' -> '''Programs''' -> '''Accessories''' -> '''System''' -> '''Character Map''')'', or type the appropriate keys if you're using a non-US keyboard.  If you prefer not to use this method, there's another easy way - you can use the a two-character hex code to represent the ASCII character.  Each time you see a "=XX" in the screenshot above, the =XX is the hex code that represents the ASCII character to the right of it.
+
cmd say "=20=20=20=20^?-------------------------------"
 
+
cmd say "^z0 ^?| ^2=00 =01 =02 =03 =04 =05 =06 =07 =08 =09 =0a =0b =0c =0d =0e =0f"
If you try to use these in game (e.g. '''/vsay hi =aaHELLO=ab''') you'll soon find that it won't display them right away -- this is because the in-game commands automatically convert the extended ascii characters.  To bypass the automatic encoding (and allow the use of the raw hex characters), you'll have to run them through cmd - such as '''/cmd vsay hi =aaHELLO=ab'''. Without the essential cmd, your characters will come out completely normal.
+
cmd say "^z1 ^?| ^2=10 =11 =12 =13 =14 =15 =16 =17 =18 =19 =1a =1b =1c =1d =1e =1f"
 
+
cmd say "^z2 ^?| ^2=20 =21 =22 =23 =24 =25 =26 =27 =28 =29 =2a =2b =2c =2d =2e =2f"
The code used to generate the above script was written by [[User:Rain|Rain]].  Here's the config, aptly named ascii.cfg:
+
cmd say "^z3 ^?| ^2=30 =31 =32 =33 =34 =35 =36 =37 =38 =39 =3a =3b =3c =3d =3e =3f"
 
+
cmd say "^z4 ^?| ^2=40 =41 =42 =43 =44 =45 =46 =47 =48 =49 =4a =4b =4c =4d =4e =4f"
<pre>echo "0001:� 02:� 03:� 04:� 0506:� 0708:� 09:  0A:  0B: 0C:� 0D:  0E:� 0F:� "
+
cmd say "^z5 ^?| ^2=50 =51 =52 =53 =54 =55 =56 =57 =58 =59 =5a =5b =5c =5d =20 =5f"
echo "10:� 11:� 12:� 13:� 14:� 15:� 16:� 17:� 18:� 19:� 1A:� 1B:� 1C:� 1D:� 1E:� 1F:� "
+
cmd say "^z6 ^?| ^2=60 =61 =62 =63 =64 =65 =66 =67 =68 =69 =6a =6b =6c =6d =6e =6f"
echo "2021:! 2223:# 24:$ 25:% 26:& 27:' 28:( 29:) 2A:* 2B:+ 2C:, 2D:- 2E:. 2F:/ "
+
cmd say "^z7 ^?| ^2=70 =71 =72 =73 =74 =75 =76 =77 =78 =79 =7a =7b =7c =7d =7e =7f"
echo "30:0 31:1 32:2 33:3 34:4 35:5 36:6 37:7 38:8 39:9 3A:: 3B:; 3C:< 3D:= 3E:> 3F:? "
+
cmd say "^z8 ^?| ^2=80 =81 =82 =83 =84 =85 =86 =87 =88 =89 =8a =8b =8c =8d =8e =8f"
echo "40:@ 41:A 42:B 43:C 44:D 45:E 46:F 47:G 48:H 49:I 4A:J 4B:K 4C:L 4D:M 4E:N 4F:O "
+
cmd say "^z9 ^?| ^2=90 =91 =92 =93 =94 =95 =96 =97 =98 =99 =9a =9b =9c =9d =9e =9f"
echo "50:P 51:Q 52:R 53:S 54:T 55:U 56:V 57:W 58:X 59:Y 5A:Z 5B:[ 5C:\ 5D:] 5E:^^* 5F:_ "
+
cmd say "^za ^?| ^2=a0 =a1 =a2 =a3 =a4 =a5 =a6 =a7 =a8 =a9 =aa =ab =ac =ad =ae =af"
echo "60:` 61:a 62:b 63:c 64:d 65:e 66:f 67:g 68:h 69:i 6A:j 6B:k 6C:l 6D:m 6E:n 6F:o "
+
cmd say "^zb ^?| ^2=b0 =b1 =b2 =b3 =b4 =b5 =b6 =b7 =b8 =b9 =ba =bb =bc =bd =be =bf"
echo "70:p 71:q 72:r 73:s 74:t 75:u 76:v 77:w 78:x 79:y 7A:z 7B:{ 7C:| 7D:} 7E:~ 7F: "
+
cmd say "^zc ^?| ^2=c0 =c1 =c2 =c3 =c4 =c5 =c6 =c7 =c8 =c9 =ca =cb =cc =cd =ce =cf"
echo "80:€ 8182:‚ 8384:„ 85:… 86:† 87:‡ 8889:‰ 8A:Š 8B:‹ 8C:Œ 8D: 8E:Ž 8F: "
+
cmd say "^zd ^?| ^2=d0 =d1 =d2 =d3 =d4 =d5 =d6 =d7 =d8 =d9 =da =db =dc =dd =de =df"
echo "9091:‘ 92:’ 93:“ 94:” 95:• 96:– 97:— 9899:™ 9A:š 9B:› 9C:œ 9D: 9E:ž 9F:Ÿ "
+
cmd say "^ze ^?| ^2=e0 =e1 =e2 =e3 =e4 =e5 =e6 =e7 =e8 =e9 =ea =eb =ec =ed =ee =ef"
echo "A0:  A1:¡ A2:¢ A3:£ A4:¤ A5:¥ A6:¦ A7:§ A8:¨ A9:© AA:ª AB:« AC:¬ AD:­ AE:® AF:¯ "
+
cmd say "^zf ^?| ^2=f0 =f1 =f2 =f3 =f4 =f5 =f6 =f7 =f8 =f9 =fa =fb =fc =fd =fe =ff"
echo "B0:° B1:± B2:² B3:³ B4:´ B5:µ B6:¶ B7:· B8:¸ B9:¹ BA:º BB:» BC:¼ BD:½ BE:¾ BF:¿ "
+
</pre>
echo "C0:À C1:Á C2:Â C3:Ã C4:Ä C5:Å C6:Æ C7:Ç C8:È C9:É CA:Ê CB:Ë CC:Ì CD:Í CE:Î CF:Ï "
+
echo "D0:Ð D1:Ñ D2:Ò D3:Ó D4:Ô D5:Õ D6:Ö D7:× D8:Ø D9:Ù DA:Ú DB:Û DC:Ü DD:Ý DE:Þ DF:ß "
+
echo "E0:à E1:á E2:â E3:ã E4:ä E5:å E6:æ E7:ç E8:è E9:é EA:ê EB:ë EC:ì ED:í EE:î EF:ï "
+
echo "F0:ð F1:ñ F2:ò F3:ó F4:ô F5:õ F6:ö F7:÷ F8:ø F9:ù FA:ú FB:û FC:ü FD:ý FE:þ FF:ÿ "</pre>
+

Revision as of 09:46, 1 November 2009

Extended ASCII Characters in ET Pro 3

In ET Pro 3.0.1, you are finally able to use extended ASCII characters and quotation marks in chats. Not all of these characters exist in all of ET's fonts (e.g. some will display properly in the console while others will not.)

You can use a two-character hex code (as shown in the script below) to represent the ASCII character.

If you try to use these in game (e.g. /vsay =aaHELLO=ab) you'll soon find that it won't display them right away. This is because the in-game commands automatically convert the extended ascii characters. To bypass the automatic encoding (and allow the use of the raw hex characters), you'll have to run them through cmd - such as /cmd vsay hi =aaHELLO=ab. Without the essential cmd, your characters will come out completely normal.

The following script displays every available ASCII character in the chat area (you must have a map running for the "say" command to work, and flood-protection CVAR's disabled due to the length of the script) :

cmd say "=20=20=20=20^z0 1 2 3 4 5 6 7 8 9 a b c d e f"
cmd say "=20=20=20=20^?-------------------------------"
cmd say "^z0 ^?| ^2=00 =01 =02 =03 =04 =05 =06 =07 =08 =09 =0a =0b =0c =0d =0e =0f"
cmd say "^z1 ^?| ^2=10 =11 =12 =13 =14 =15 =16 =17 =18 =19 =1a =1b =1c =1d =1e =1f"
cmd say "^z2 ^?| ^2=20 =21 =22 =23 =24 =25 =26 =27 =28 =29 =2a =2b =2c =2d =2e =2f"
cmd say "^z3 ^?| ^2=30 =31 =32 =33 =34 =35 =36 =37 =38 =39 =3a =3b =3c =3d =3e =3f"
cmd say "^z4 ^?| ^2=40 =41 =42 =43 =44 =45 =46 =47 =48 =49 =4a =4b =4c =4d =4e =4f"
cmd say "^z5 ^?| ^2=50 =51 =52 =53 =54 =55 =56 =57 =58 =59 =5a =5b =5c =5d =20 =5f"
cmd say "^z6 ^?| ^2=60 =61 =62 =63 =64 =65 =66 =67 =68 =69 =6a =6b =6c =6d =6e =6f"
cmd say "^z7 ^?| ^2=70 =71 =72 =73 =74 =75 =76 =77 =78 =79 =7a =7b =7c =7d =7e =7f"
cmd say "^z8 ^?| ^2=80 =81 =82 =83 =84 =85 =86 =87 =88 =89 =8a =8b =8c =8d =8e =8f"
cmd say "^z9 ^?| ^2=90 =91 =92 =93 =94 =95 =96 =97 =98 =99 =9a =9b =9c =9d =9e =9f"
cmd say "^za ^?| ^2=a0 =a1 =a2 =a3 =a4 =a5 =a6 =a7 =a8 =a9 =aa =ab =ac =ad =ae =af"
cmd say "^zb ^?| ^2=b0 =b1 =b2 =b3 =b4 =b5 =b6 =b7 =b8 =b9 =ba =bb =bc =bd =be =bf"
cmd say "^zc ^?| ^2=c0 =c1 =c2 =c3 =c4 =c5 =c6 =c7 =c8 =c9 =ca =cb =cc =cd =ce =cf"
cmd say "^zd ^?| ^2=d0 =d1 =d2 =d3 =d4 =d5 =d6 =d7 =d8 =d9 =da =db =dc =dd =de =df"
cmd say "^ze ^?| ^2=e0 =e1 =e2 =e3 =e4 =e5 =e6 =e7 =e8 =e9 =ea =eb =ec =ed =ee =ef"
cmd say "^zf ^?| ^2=f0 =f1 =f2 =f3 =f4 =f5 =f6 =f7 =f8 =f9 =fa =fb =fc =fd =fe =ff"