| Web | https://nivrig.com |
| itch.io | https://nivrig.itch.io |
| SmolWeb | gemini://s73.girv.in |
| Links | https://links.nivrig.com |
| Web | https://nivrig.com |
| itch.io | https://nivrig.itch.io |
| SmolWeb | gemini://s73.girv.in |
| Links | https://links.nivrig.com |
Here is the offender.
writename re-terminates the input string and leaves 2 bytes of whatever is in memory to be written to the file. The save CRC is calculated with these bytes.
readname ignores those 2 bytes and terminates the string with 0. The load CRC is calculated with 0s.
Spent all evening on a gnarly bug. Loaded levels would fail CRC after being saved once.
Eventually, with a hex editor, I figured out a string writer wasn’t writing the null terminator bytes the CRC was calculated with but whatever was in memory, and the string reader was ignoring those and always “reading” nulls. So the load CRC was seeing different data from the save CRC.
This just arrived, so I guess it’s going to be an #Amstrad April :)
More messing about with old Macs.
Reinstalling macOS on a 2012 MacBook Pro in 2026 isn't as easy as it sounds.
gemini://s73.girv.in/glog/2026/2026-03-26-reinstalling-macos-2012-macbook-pro-in-2026.gmi
https://s73.girv.in/glog/2026/2026-03-26-reinstalling-macos-2012-macbook-pro-in-2026.html
Installing Linux Mint on a 2012 MacBook Pro. It Just Works!
gemini://s73.girv.in/glog/2026/2026-03-25-linux-mint-on-macbook-pro-2012.gmi
https://s73.girv.in/glog/2026/2026-03-25-linux-mint-on-macbook-pro-2012.html