Bug #1249

Endianness problems while access to disk or memory

Added by kervala over 7 years ago. Updated over 6 years ago.

Status:Assigned Start date:02/01/2011
Priority:Low Due date:
Assignee:kervala % Done:

0%

Category:NeL: General
Target version:-

Description

NeL is working fine on little-endian architectures, but almost all memory/disk access with fread, fwrite or serialization are broken on big-endian machines such as PowerPC and ARM (in big-endian mode).

bitmap.cpp.patch.cpp (200.2 kB) Magnifier Jeru, 02/08/2011 05:45 pm

bitmap.h.patch.h (39 kB) Magnifier Jeru, 02/08/2011 05:45 pm

music_buffer_vorbis.cpp.patch.cpp (13.1 kB) Magnifier Jeru, 02/08/2011 05:45 pm

Log_Ryzom_OpenGL.rtf (10.6 kB) Jeru, 02/09/2011 10:32 am

Image_1.png (16.8 kB) Jeru, 06/02/2011 04:07 pm

Image_2.png (38.3 kB) Jeru, 06/02/2011 04:07 pm

History

#1 Updated by kervala over 7 years ago

  • Status changed from New to Assigned
  • Assignee set to kervala

#2 Updated by Jeru over 7 years ago

  • File bitmap.h added
  • File bitmap.cpp added

After some tests, I made corrections in the bitmap.cpp et .h
At this time, I can't play, but the bitmap code permit the loading of DDS et TGA files. (No PNG or other file types are readed a the moment I'm stopped)

#3 Updated by Jeru over 7 years ago

  • File bitmap.h.diff.h added

Here the diff file for the update of hg files !

I hope this will work :)

#4 Updated by kervala over 7 years ago

  • File deleted (bitmap.h.diff.h)

#5 Updated by kervala over 7 years ago

  • File deleted (bitmap.cpp)

#6 Updated by kervala over 7 years ago

  • File deleted (bitmap.h)

#7 Updated by Jeru over 7 years ago

After more tests and debug on big endian systems. The final patch for images (All formats are working).
There were a bug on loading startup ogg file due to big endian errors too. (I don't know yet if it works in game)

For now, I got problems on getting login screen and character selection screen. Don't know if there's a relation with big endian systems.

#8 Updated by Jeru over 7 years ago

Log for the OpenGL difficulties may be due to endianess issues.
Initialisation of the driver log :)

#9 Updated by Jeru about 7 years ago

Hi. That was a long time i came here.

I don't know if those bugs comes from endinaness or graphical implementation errors on PPC
The first image is my logon screen, only the cursor is visible
The second image is the character selection screen, only the effects are well drawn.

I'm on a Powerbook G4, 1Mo of RAM, MacOS 10.5.8 and an ATI Mobility Radeon 9700 with 64Mo VRAM

#10 Updated by kervala over 6 years ago

  • Priority changed from Normal to Low

Only reproducible on Mac OS X PPC, so priority is set to low :)

Also available in: Atom PDF