sm00thslp / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

version hedgewars to system 64 bit - error 32 bit #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run hedgewars
2. login servers game
3. look bug

What is the expected output? What do you see instead?
screen

What version of the product are you using? On what operating system?
hedgewars 0.9.14 . system: ubuntu 10.10

Please provide any additional information below.

Original issue reported on code.google.com by lxx...@gmail.com on 16 Nov 2010 at 4:59

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by kyberneticist@gmail.com on 17 Nov 2010 at 3:28

GoogleCodeExporter commented 9 years ago
https://bugs.launchpad.net/ubuntu/+source/hedgewars/+bug/685421

FYI

Original comment by kyberneticist@gmail.com on 6 Dec 2010 at 3:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed, no problems on Arch with this bug.

Original comment by pilarski...@gmail.com on 29 Nov 2011 at 8:40