Skip to content
UnbelievableFlavour edited this page Sep 5, 2022 · 2 revisions

FAQ

Q: Im getting the following error during compiling. What do I do?

> Executing task: Playdate: Build <

Command failed: pdc "c:\Playdate Dev\Cotton-master\source" "c:\Playdate Dev\Cotton-master\Cotton"
'pdc' is not recognized as an internal or external command,
operable program or batch file.

The terminal process failed to launch (exit code: 1).

A: This means the environment variables have not been set OR the SDK has not been installed correctly.

Q: Why is my map rendered very big or small when I didn't set the renderScale? ?

A: Make sure you didn't name the tilesets the same but with different size. They are cached in the .pdx file. Example: If you have a tileset bw_table-16-16.png, then DONT add a bw_table-8-8.png.

To fix:

  1. Rename the image
  2. Correct the image paths in LDtk,
  3. Throw away the .pdx file.
  4. Build again.

Q: Game crashes on start on actual device. Following error occurs:


stack traceback:
core/CoreGame.lua:215: in local 'fn'
core/lieb/call.lua:10 in function 'call'
core/lieb/scene.lua:119: in field 'update'
main.lua:31: in function main.lua:28

A: Using the fast loader is required on actual devices. Go to Source/config.lua and make sure useFastLoader = true.

Clone this wiki locally