Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
That error is generated if a loaded PNG of something in the land (a girder or
an object like, oh, for example the tire on Freeway) is not a 32 bit PNG.
It isn't really about 64 bit vs 32 bit system. PNGs are either 32 bit (RGBA)
or some other lower value like indexed.
I'm not aware of any indexed PNGs that should have snuck into the game.
Does this error occur on all themes? Also. Where did you get the install of
the game from? playdeb?
Original comment by kyberneticist@gmail.com
on 16 Nov 2010 at 7:46
Hm. Actually, since the message just before was the loading of the girder, that
makes it:
1 tmpsurf:= LoadImage(Pathz[ptCurrTheme] + '/Girder', ifTransparent or
ifIgnoreCaps);
2 if tmpsurf = nil then tmpsurf:= LoadImage(Pathz[ptGraphics] + '/Girder',
ifCritical or ifTransparent or ifIgnoreCaps);
3
4 rr.x:= x1;
5 while rr.x < x2 do
6 begin
7 BlitImageAndGenerateCollisionInfo(rr.x, y, min(x2 - rr.x, tmpsurf^.w),
tmpsurf);
...
8 bpp:= Image^.format^.BytesPerPixel;
9 TryDo(bpp = 4, 'Land object should be 32bit', true);
The first message comes from (2), the 2nd message comes from inside (7), at (9)
due to tmpsurf being no good.
However, the file is the generic girder.
The problem is that file has not changed, at all, since 0.9.13. It is
definitely a full colour PNG.
So, I would still like you to attach:
/usr/share/games/hedgewars/Data/Graphics/Girder.png
So we can see if it is different in your copy.
Either that or something is seriously different in your copy of libSDL. What
version of libSDL_image are you using?
Original comment by kyberneticist@gmail.com
on 16 Nov 2010 at 10:12
I installed the version of getdeb and everything works:) Hedgewars reinstall
the ubuntu repositories, causing the error described. So it must be an error on
the side of packages from Ubuntu.
Original comment by lxx...@gmail.com
on 17 Nov 2010 at 11:06
Original comment by kyberneticist@gmail.com
on 17 Nov 2010 at 3:28
https://bugs.launchpad.net/ubuntu/+source/hedgewars/+bug/685421
FYI
Original comment by kyberneticist@gmail.com
on 6 Dec 2010 at 3:58
[deleted comment]
Fixed, no problems on Arch with this bug.
Original comment by pilarski...@gmail.com
on 29 Nov 2011 at 8:40
Original issue reported on code.google.com by
lxx...@gmail.com
on 16 Nov 2010 at 4:59Attachments: