Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CF: read_client_images & collect_images



I have already sent bug reports to Mark Wedel.

On Wed, May 17, 2000 at 11:47:49AM -0500, David Andrew Michael Noelle wrote:
> 1) What the heck is "./adm/collect_images.pl" supposed to be and
>    should I be worried about the side effects of commenting it out
>    instead of using it to recreate crossfire.xpm, crossfire.xbm, and
>    crossfire.png?  

See CHANGES for a brief description.  But crossfire.xpm seems to be in
the wrong format now.  Maybe collect_images.pl would fix that, but it's
not in the CVS tree.

> 2) Might that have something to do with the fact that the server won't
>    start, but just keeps complaining about crossfire.xbm:
> 
> Initialize new client/server data
> Loading image file /usr/local/games/share/crossfire/crossfire.xbm
> read_client_images: Did not read desired amount of data, wanted 72, got 1
> IMAGE 00000 72 ./arch/system/bug.111Abort
> Exit 134

Try this patch.  It should help you to get to the point where the
server aborts because of wrong format of crossfire.xpm.  ;->

*** socket/init.c-cvs1  Wed May 17 14:39:25 2000
--- socket/init.c       Wed May 17 14:39:52 2000
***************
*** 136,146 ****
                    abort();
                }
            }
            faces[num].datalen[fileno] = len;
            faces[num].data[fileno] = malloc(len);
!           if ((i=fread( faces[num].data[fileno], len, 1, infile))!=len) {
                LOG(llevError,"read_client_images: Did not read desired amount of data, wanted %d, got %d\n%s",
                    len, i, buf);
                    abort();
            }
  
--- 136,146 ----
                    abort();
                }
            }
            faces[num].datalen[fileno] = len;
            faces[num].data[fileno] = malloc(len);
!           if ((i=fread( faces[num].data[fileno], len, 1, infile))!=1) {
                LOG(llevError,"read_client_images: Did not read desired amount of data, wanted %d, got %d\n%s",
                    len, i, buf);
                    abort();
            }
  
-- 
Jan
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to ]