Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

It’s expected to just say “player” and in theory the OS shouldn’t matter much for games that only use Lua. I’m just asking because I don’t have any other ideas where the error comes from.

The save data is in a folder called Disk in the installed SDK but I’m not sure where that is on Linux.

I found my data folder by choosing "Reveal Data Folder..." in the SDK menu. I can send it to you if you wish.

I can also provide any debug information that might be helpful.

It looks like the file that contains the puzzles (import/rdk.json in the pdx) is not readable for some reason. I assume that it’s a Linux issue. I’ll try to investigate but it will take a while as I don’t have a linux machine at hand.

I'm not sure this is it. It has the correct permissions, and when I run the simulator with `strace`, I don't see a system call that attempts to open rdk.json before the crash happens.

Yes, if there was an error trying to read the file we’d see this error in the simulator and I don’t think that’s the case here. Normally the game goes through all files in the import folder and opens them. My assumption is that this is where it fails so it doesn’t even see the file. There’s some extra logic with combining two different directories in the SDK so a couple of things could be happening and it’s hard to tell with remote debugging.

(1 edit)

Oh, it's open source. I'll just try running the code directly and report back.

(1 edit)

I think it's an off-by-one SDK bug in playdate.file.listFiles. If I give it a directory with one file, it just returns "../". If I add one dummy, it gives me rdk.json and not the dummy file. Reported upstream here: https://devforum.play.date/t/playdate-file-listfiles-only-showing-some-files/356...

If it gets no response, I'll open a new bug rather than reply to an old one.

Thanks a lot. I’ll make sure to update once it’s fixed.