Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I'm on Linux. Didn't create any puzzles yet.

This is the first time I'm trying to simulator, so maybe I'm doing something wrong. I'm not even sure how to reset my save data to test afresh.

Sketching works fine, and I can "Solve and Save", and try to solve. But if I then go back to the main menu and try "Solve", it crashes again.

Another issue(?) I noticed: In the "choose a profile" screen, if I move between profiles, it switches the avatar in the top status line, but it always says "Player" - should it say the current player name instead? The same status line says "Player" even after I choose a player.

(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.