Principia maintainer ROllerozxa changed how the open-source physics sandbox reads saved levels on Nov. 22. The game’s level loader now explicitly converts numbers stored in little-endian byte order into the order used by the machine running the game. The change is in the source repository. On Mastodon, the maintainer said they lacked a physical big-endian machine to test it on and asked for help from people with big-endian Linux hardware. [1] [2]
Why the order of the bytes matters
A level file can store a number across several bytes. Little-endian files put the least significant byte first, while big-endian processors use the opposite order for multibyte numbers. Reading those bytes directly as a native value can give the loader the wrong number. Players share levels through Principia’s community site, so the same file needs to keep its meaning across platforms. [1] [3]
What changed in the loader
Fediwire compared the old and new readers. The old 16- and 32-bit paths could read in the machine’s native order if the bytes sat at a suitably aligned address. At other addresses they assembled the value byte by byte in little-endian order. The old 64-bit reader combined two 32-bit reads. The updated readers copy the stored bytes and use SDL to convert them from little-endian, regardless of alignment. The floating-point reader applies that conversion to the stored bits before interpreting them as a number. [1]
Where compatibility still needs checking
The change covers those read routines. The same commit explicitly blocks big-endian builds of the project’s helper utilities. The official download page lists regular releases for Windows, Android and Linux, and the project documents nightly builds separately. The maintainer said other byte-order issues could remain. This comparison is based on the source code, and Fediwire did not run the game on big-endian hardware. [1] [2] [3] [4]