-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't find pdz file main.pdz #41
Comments
That wasn't the case a few months ago, but I'll take a look tomorrow and see what I can learn. |
I can't reproduce this with Klondike on my M1 MacBook Air running 13.3.1 (22E261). What does |
Hi @rtsuk thank you for the quick reply 🙂 The command |
I made the repository public if you want to give it a try https://github.com/Pomettini/yet-another-chip-8-emulator/tree/main/playdate (sorry the project is a bit messy haha 😅) |
I know this is something that can happen with a game misconfiguration or a weird command rather than a crankstart issue because I see it once in a while when I change something, but I can't quite remember what it is at the moment... I'll see if I can track it down. |
I was able to compile it and run it fine on the device. What does |
It prints rustc |
This is what is says if I run
|
I was just going to ask that, but with |
Sure thing!
|
It's worth trying an older nightly - I've been using nightly-2023-02-09 for some time with no issues. Newer nightlies introduce problems like rust-lang/rust#109934 that cause compilation failures, and are taking some time to address upstream. |
It's working fine for me on almost exactly the same host hardware and rustc 1.71.0-nightly (458d4dae8 2023-04-25). |
So, I went back and reread your initial message and see you're trying to use |
I also see that when you run, logging stops after
If you are up for it, you could improve the logging in crank around the run command and see where it is failing. |
Also, |
Unfortunately downgrading Rust to |
I'm not sure why there needs to be a main.pdz file. I don't have one and it works fine for me.
|
I tried uploading the game from the simulator out of curiosity and... Inexplicably, it worked 🤯 I can't say exactly what caused this. I thought that was related to the main.pdz file since the device was telling me it needed that file, but apparently it wasn't the case. I will investigate on the matter, and also try to figure out why Meanwhile, thank you so much @rtsuk and @tjkirch for the patience and the quick replies! I really appreciate it! 😊 |
I'm curious to see what you find about the hanging, if it's reproducible! I'd try running through strace - that's how I figured out an issue with the commands pdutil (via PlaydateSimulator) was sending to the device. Something like My understanding is that pdz files are compiled lua, and since with crankstart we don't use any lua, it shouldn't be necessary; if it's looking for pdz, my suspicion is that the pdx is missing something that tells Playdate it's a C game. The |
I'm on Mac so I can't use By the way, while I was randomly testing stuff, the simulator was not updating the build on the device, so I deleted the target folder with |
Make sure that macOS isn't asking for permissions while crank is running. I think I saw some of those while testing just now and it caused crank to hang. |
It looks like dtruss would do the same job on a Mac, maybe? I don't think SIP would come into play for the downloaded simulator binary, but it looks like codesign can remove its signature if it has one somehow.
I wonder if an empty main.pdz would work around the check, and the game would still run because it's not actually needed... :| |
I tried putting a main.pdz file and the stacktrace on the device says that the file is too small, no matter how large it is. Funnily enough, I noticed the pdex.bin file on the package is actually empty, maybe that is causing the issue? But if so, how is it running on the simulator? |
That is certainly the cause. It works on the simulator because the simulator uses the dylib, not the binary. |
Ahhh that makes sense now! I made a quick test with |
Do check for permission requests that are popped up behind your active window. |
Just got my playdate and ran into this instantly, have anybody found a workaround for this? |
I’m also unable to use I’m AFK now but wondering if this is only when my game is already running. I’ve noticed that I can’t upload to device from the simulator when a game is running (the “Device” menu disappears and the Cmd+U shortcut is disabled) |
I tried this and it made no difference. Being on the home screen didn't help. |
I did some investigating and found that |
Seems to be explained by pd-rs/crank#24; There's apparently some way to try and find this but it's only for Linux: pd-rs/crank#38 |
Hi,
I've been using Crankstart to test my Chip-8 emulator on the Playdate Simulator and it's been a joy to use! <3
I was curious if my "game" would also run on my real Playdate, but every time try to I upload the package with
Device > Upload
the device crashes and displays the message:Couldn't find pdz file main.pdz
Curiously, I double-checked if it was also happening with the examples, with the Klondike and the Nine Lives demo, and it was indeed happening in all of the cases
The output .pdx file contains:
While on a Playdate game the package usually contains:
I'm on nightly-aarch64-apple-darwin and I'm running Crank and Crankstart on a M1 Pro Macbook Pro
Do you perhaps have any suggestions? I've tried everything but to no avail 😔
Thank you
The text was updated successfully, but these errors were encountered: