Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old November 30, 2012, 13:49   #1
Old Coach
Apprentice
 
Join Date: Feb 2009
Posts: 61
Old Coach is on a distinguished road
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!
Old Coach is offline   Reply With Quote
Old November 30, 2012, 20:22   #2
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis
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!
ekolis is offline   Reply With Quote
Old November 30, 2012, 21:18   #3
fizzix
Prophet
 
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 3,020
fizzix is on a distinguished road
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?
fizzix is offline   Reply With Quote
Old December 1, 2012, 00:38   #4
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,786
PowerWyrm is on a distinguished road
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 http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old December 1, 2012, 19:53   #5
Old Coach
Apprentice
 
Join Date: Feb 2009
Posts: 61
Old Coach is on a distinguished road
How do you make that fix with the readdib function?
Old Coach is offline   Reply With Quote
Old December 2, 2012, 16:57   #6
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
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.
buzzkill is offline   Reply With Quote
Old December 3, 2012, 12:33   #7
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,786
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Old Coach View Post
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 http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old December 7, 2012, 03:23   #8
Old Coach
Apprentice
 
Join Date: Feb 2009
Posts: 61
Old Coach is on a distinguished road
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.
Old Coach is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3.4, 64x64 tiles and MAX_SIGHT/MAX_RANGE fizzix Vanilla 18 April 2, 2012 13:13
64X64 Tileset Omissions? Old Coach Development 4 January 28, 2012 19:28
NPPAngband - 64x64 graphics Shockbolt Development 20 November 6, 2011 09:05
Windows PNG support in staging d_m Development 9 June 1, 2011 04:51
2 options for Windows PNG support Blue Baron Development 36 June 1, 2011 00:14


All times are GMT +1. The time now is 08:39.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.