Sometime the function playdate->graphics->loadBitmapTable fails to load image tables with the error uC-FS error: 1414.
file sprite-character_name not found: unknown uC-FS error: 1414
It usually happens when doing the following steps:
- locking the playdate
- waiting for a little while (more than 5 minutes)
- unlocking the playdate and resuming the game
- doing something that will load an image, image table or a font
I don't have this problem with other games so I may be doing something bad. Here is how I load bitmap tables:
LCDBitmapTable * _Nonnull LCDBitmapTableLoadOrError(const char * _Nonnull path) {
const char *error = NULL;
LCDBitmapTable *bitmapTable = playdate->graphics->loadBitmapTable(path, &error);
if (error) {
playdate->system->error("Unable to load bitmap table at path %s, error: %s", path, error);
}
return bitmapTable;
}
static void init(Scene * _Nonnull scene) {
CharacterSelectScene *self = (CharacterSelectScene *)scene;
// [...]
LCDBitmapTable *artworks = self->artworks = LCDBitmapTableLoadOrError("sprite-character_select_character");
CharacterSelectCharacterConstructor(PlayerCharacterKatsuo, &self->selection, artworks);
CharacterSelectCharacterConstructor(PlayerCharacterSaki, &self->selection, artworks);
CharacterSelectGridConstructorWithSelection(&self->selection);
LCDBitmapTable *name = self->names = LCDBitmapTableLoadOrError("sprite-character_name");
CharacterSelectNameConstructor(PlayerCharacterKatsuo, &self->selection, playdate->graphics->getTableBitmap(name, PlayerCharacterKatsuo));
CharacterSelectNameConstructor(PlayerCharacterSaki, &self->selection, playdate->graphics->getTableBitmap(name, PlayerCharacterSaki));
// [...]
}

