Bug#389107: xmoto: items (strawberries, spikes, flower) only displayed in the minimap

2006-09-23 Thread Cyril Brulebois
Package: xmoto
Version: 0.2.1-1
Severity: important

Hi,

after an upgrade from 0.2.0-1, the basic items mentioned in the subject
are no longer displayed in the main screen, but only in the minimap. The
ghost is also not visible, although I double-checked that all options
WRT ghost are enabled. I have also to mention that I only upgraded xmoto
and nothing else. I didn't reboot or restart X either, so that looks
like being xmoto's fault.

Two contacts of mine reported that the upgrade was OK on their i386 with
nvidia driver. So it could be some problems WRT my radeon driver or my
architecture.

I also noted that on the former version, the ghost wasn't well displayed
(looked a bit upside down, maybe due to some endianness) but I didn't
take time to report it on time. It could be related though (driver
behaving badly and/or arch-specific troubles).

Feel free to contact me so that I can check possible fixes (I can handle
.dsc dgetting)

Cheers,

-- 
Cyril Brulebois

PS: Tagging this bugreport important because it is barely playable,
using the minimap only...

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages xmoto depends on:
ii  libbz2-1.0  1.0.3-6  high-quality block-sorting file co
ii  libc6   2.3.6.ds1-4  GNU C Library: Shared libraries
ii  libcurl37.15.5-1 Multi-protocol file transfer libra
ii  libgcc1 1:4.1.1-13   GCC support library
ii  libgl1-mesa-glx [li 6.5.0.cvs.20060524-1 A free implementation of the OpenG
ii  libjpeg62   6b-13The Independent JPEG Group's JPEG 
ii  liblua505.0.3-1  Main interpreter library for the L
ii  liblualib50 5.0.3-1  Extension library for the Lua 5.0 
ii  libode0c2   1:0.5-5  Open Dynamics Engine - runtime lib
ii  libpng12-0  1.2.8rel-5.2 PNG library - runtime
ii  libsdl-mixer1.2 1.2.6-1.1+b1 mixer library for Simple DirectMed
ii  libsdl1.2debian 1.2.11-3 Simple DirectMedia Layer
ii  libstdc++6  4.1.1-13 The GNU Standard C++ Library v3
ii  xmoto-data  0.2.1-1  2D motocross platform game
ii  zlib1g  1:1.2.3-13   compression library - runtime


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#389107: xmoto: items (strawberries, spikes, flower) only displayed in the minimap

2006-09-23 Thread Cyril Brulebois
Cyril Brulebois <[EMAIL PROTECTED]> (24/09/2006):
> The ghost is also not visible, although I double-checked that all
> options WRT ghost are enabled. 
Oh, my bad, false alarm. Looks like I didn't restarted the game
accordingly with all my changes I attempted to have it back, that's
fixed now. If I sum up this up correctly, it looks like when upgrading,
if the ghost was already activated, I wasn't able to see it, I had to
modify some options and rerun xmoto. But I have surely messed up
something. My bad...

> I also noted that on the former version, the ghost wasn't well
> displayed (looked a bit upside down, maybe due to some endianness) but
> I didn't take time to report it on time. It could be related though
> (driver behaving badly and/or arch-specific troubles).
That's fixed now.

The major problem, which is item invisibility and the subject of this
bugreport, still remains, though.

Cheers,

-- 
Cyril Brulebois


pgprjpkMxozp9.pgp
Description: PGP signature


Bug#389107: xmoto: items (strawberries, spikes, flower) only displayed in the minimap

2006-09-30 Thread Cyril Brulebois
Cyril Brulebois <[EMAIL PROTECTED]> (24/09/2006):
> The major problem, which is item invisibility and the subject of this
> bugreport, still remains, though.
Here is a dpatch built upon a patch that upstream sent to me, which I
tested. After some tests, it appears that the problem no longer occurs.

A quick fix for users that could suffer of that bug is to delete
~/.xmoto/LCache, where the cached files are stored with bad data, before
running xmoto.

Cheers,

-- 
Cyril Brulebois

PS: Nicolas, thanks for the patch!
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_endianness_display_fix.dpatch by Cyril Brulebois <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix missing display for basic items due to wrong endianness stuff in 
## DP: save function

@DPATCH@

--- xmoto-0.2.1~/src/LevelSrc.cpp   2006-09-30 17:06:11.0 +0200
+++ xmoto-0.2.1/src/LevelSrc.cpp2006-09-30 17:06:36.0 +0200
@@ -723,8 +723,8 @@
FS::writeString(pfh,m_Entities[i]->ID);
FS::writeString(pfh,m_Entities[i]->TypeID);
FS::writeFloat_LE(pfh,m_Entities[i]->fSize);
-FS::writeFloat(pfh,m_Entities[i]->fWidth);   
-FS::writeFloat(pfh,m_Entities[i]->fHeight); 
+FS::writeFloat_LE(pfh,m_Entities[i]->fWidth);   
+FS::writeFloat_LE(pfh,m_Entities[i]->fHeight); 
 FS::writeFloat_LE(pfh,m_Entities[i]->fPosX);
 FS::writeFloat_LE(pfh,m_Entities[i]->fPosY);
 FS::writeByte(pfh,m_Entities[i]->Params.size());   


pgpygYnOuesp2.pgp
Description: PGP signature