Cannot open file 64x64.png

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Old Coach
    Apprentice
    • Feb 2009
    • 61

    Cannot open file 64x64.png

    trying to use shockbolts tiles. In both Angband and FAA, I am unable to use his tiles, and I get the message "Cannot open file 64x64.png"
    Using windows xp.
    Fix for this?
    thanks!
  • ekolis
    Knight
    • Apr 2007
    • 921

    #2
    Are Shockbolt's tiles actually included with the game? You might have to download them separately...
    You read the scroll labeled NOBIMUS UPSCOTI...
    You are surrounded by a stasis field!
    The tengu tries to teleport, but fails!

    Comment

    • fizzix
      Prophet
      • Aug 2009
      • 3025

      #3
      Some people have reported issues getting shockbolt's tiles to work. But the other times, when they tried again to get the actual error, it worked for whatever reason. So there's something strange going on, but we haven't been able to figure out what it is.

      As silly as the suggestion is, could you try again, after making sure that file is actually there?

      Comment

      • PowerWyrm
        Prophet
        • Apr 2008
        • 2987

        #4
        If it's Windows, I have had problems with both 32x32 and 64x64 tilesets before due to the ReadDib function detecting a problem on some lines (missing pixel?) while reading the png files. To fix that, I had to recompile after fixing the function (instead of borking with a message error, I forced the function to use data from the previous line if a line couldn't be read).
        PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

        Comment

        • Old Coach
          Apprentice
          • Feb 2009
          • 61

          #5
          How do you make that fix with the readdib function?

          Comment

          • buzzkill
            Prophet
            • May 2008
            • 2939

            #6
            Have you tried opening the png in a graphic editor and "save as" it under the same name.
            www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
            My banding life on Buzzkill's ladder.

            Comment

            • PowerWyrm
              Prophet
              • Apr 2008
              • 2987

              #7
              Originally posted by Old Coach
              How do you make that fix with the readdib function?
              In ReadDIB2_PNG(), replace the code that copies the data to the DIB by this one and recompile:

              Code:
              /* Copy the data to the DIB */
                  hBitmap = CreateDIBitmap(hDC, &(bi.bmiHeader), 0, NULL, &biSrc, DIB_RGB_COLORS);
                      
                  if (hBitmap)
                  {
                      /* Hack for large PNG files */
                      byte errline = 2;
              
                      for (y = 0; y < height; ++y)
                      {
                          if (SetDIBits(hDC, hBitmap, height - y - 1, 1, row_pointers[y], &biSrc,
                              DIB_RGB_COLORS) != 1)
                          {
                              /* Hack -- Replace unreadable line by data from previous line */
                              if (!errline)
                              {
                                  errline = 1;
                                  /*plog_fmt("Error scanning line #%d, using previous line data instead.", y);*/
                                  if (SetDIBits(hDC, hBitmap, height - y - 1, 1, row_pointers[y - 1], &biSrc,
                                      DIB_RGB_COLORS) != 1)
                                  {
                                      errline = 2;
                                  }
                              }
              
                              /* Hack -- Don't allow multiple unreadable lines */
                              else errline = 2;
                          }
                          else errline = 0;
              
                          if (errline == 2)
                          {
                              DeleteObject(hBitmap);
                              hBitmap = NULL;
                              noerror = FALSE;
                              break;
                          }
                      }
                  }
              PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

              Comment

              • Old Coach
                Apprentice
                • Feb 2009
                • 61

                #8
                Thanks for the assistance.
                It turns out that it is a problem with the computer. If I reboot, the graphics work fine. However, once I open a web browser, open certain programs, or run our internal messaging system, the game no longer an open 64x64.png. Even if I then close whatever program was running, the game can't open the graphics file. Reboot and then things are back to working fine.

                Comment

                Working...
                😀
                😂
                🥰
                😘
                🤢
                😎
                😞
                😡
                👍
                👎