ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/clientchk.ext
(Generate patch)

Comparing deliantra/server/ext/clientchk.ext (file contents):
Revision 1.1 by root, Fri Mar 16 02:37:54 2007 UTC vs.
Revision 1.4 by root, Mon Jun 11 21:38:13 2007 UTC

1#! perl # MANDATORY 1#! perl # mandatory
2 2
3# check client version and string for old clients and possibly issue warnings for them 3# check client version and string for old clients and possibly issue warnings for them
4 4
5cf::client->attach ( 5cf::client->attach (
6 on_addme => sub { 6 on_addme => sub {
17 : undef; 17 : undef;
18 18
19 $ns->enable_bg_scrub (1); 19 $ns->enable_bg_scrub (1);
20 20
21 if ($is_cf) { # && $is_cf lt v1.9.2) { 21 if ($is_cf) { # && $is_cf lt v1.9.2) {
22 $ns->send_drawinfo ("(disabling bg image scrub because of client bug)", cf::NDI_RED); 22 $ns->send_drawinfo ("(disabling bg image scrub because of buggy client)", cf::NDI_RED);
23 $ns->enable_bg_scrub (0); 23 $ns->enable_bg_scrub (0);
24
24 $ns->send_drawinfo ("(enabling workaround for client buffer overflow)", cf::NDI_RED); 25 $ns->send_drawinfo ("(enabling workaround for client buffer overflow on scroll)", cf::NDI_RED);
25 $ns->buggy_mapscroll (1); 26 $ns->buggy_mapscroll (1);
27
28 $ns->send_drawinfo ("(enabling workaround for map redraw bug)", cf::NDI_RED);
29 $ns->force_image_newmap (1);
30
26 $ns->send_drawinfo ("(enabling workaround for broken face caching)", cf::NDI_RED); 31 $ns->send_drawinfo ("(enabling workaround for broken face caching in client)", cf::NDI_RED);
27 $ns->force_bad_checksum (1); 32 $ns->force_bad_checksum (1);
28 } 33 }
29 34
30 if ($is_jx) { 35 if ($is_jx) {
31 $ns->send_drawinfo ("(enabling workaround for map redraw bug)", cf::NDI_RED); 36 $ns->send_drawinfo ("(enabling workaround for map redraw bug)", cf::NDI_RED);
32 $ns->force_image_newmap (1); 37 $ns->force_image_newmap (1);
38
33 $ns->send_drawinfo ("(enabling buggy map scroll workaround)", cf::NDI_RED); 39 $ns->send_drawinfo ("(enabling buggy map scroll workaround)", cf::NDI_RED);
34 $ns->buggy_mapscroll (1); 40 $ns->buggy_mapscroll (1);
41
35 $ns->send_drawinfo ("You are using a known to be buggy client (an alpha version, too). " 42 $ns->send_drawinfo ("You are using a known to be buggy client (an alpha version, too). "
36 . "If you encounter map freezes or other bugs, consider using a more stable client " 43 . "If you encounter map freezes or other bugs, consider using a more stable client "
37 . "such as CFPlus or gcfclient or gcfclient2", cf::NDI_RED); 44 . "such as CFPlus or gcfclient or gcfclient2", cf::NDI_RED);
38 } 45 }
39 46

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines