View Issue Details

IDProjectCategoryView StatusLast Update
0000402fileGeneralpublic2022-11-04 13:36
ReporterAlan Assigned Tochristos  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.43 
Fixed in Version5.44 
Summary0000402: Add support for Playdate native files
DescriptionThe Playdate portable video game console (https://play.date/) has several native file formats: pdi, pdt, pdv, pda, pdz, and pds. Currently file doesn't recognize any of them. The attached magic file adds support for them.

Test data for many of these can be found in the free SDK https://play.date/dev/, and it can be used to create more.
Tagsmagic

Activities

Alan

2022-11-03 01:51

reporter  

playdate-magic (1,538 bytes)   
# Various native file formats for the Playdate portable video game console.
#
# These are unofficially documented at
# https://github.com/jaames/playdate-reverse-engineering
# 
# The SDK is a source for many test files, and can be used to
# create others. https://play.date/dev/


# pdi: static image
0	string	Playdate\ IMG	Playdate image data
>12	belong&0x80	0x80	(compressed)
>>20	lelong	x	%d x
>>24	lelong	x	%d
>12	belong&0x80	0x00	(uncompressed)
>>16	leshort	x	%d x
>>18	leshort	x	%d

# pdt: multiple static images
0	string	Playdate\ IMT	Playdate image data set
>12	belong&0x80	0x80	(compressed)
>>20	lelong	x	%d x
>>24	lelong	x	%d,
>>28	lelong	x	%d cells
>12	belong&0x80	0x00	(uncompressed)
>>20	lelong	x	tile grid %d x
>>24	lelong	x	%d

# pds: string tables
0	string	Playdate\ STR	Playdate localization strings
>12	belong&0x80	0x80	(compressed)
>12	belong&0x80	0x00	(uncompressed)

# pda: audio
0	string	Playdate\ AUD	Playdate audio file
>12	lelong&0xffffff	x	%d Hz,
>15	byte	0	unsigned, 8-bit PCM, 1 channel
>15	byte	1	unsigned, 8-bit PCM, 2 channel
>15	byte	2	signed, 16-bit little-endian PCM, 1 channel
>15	byte	3	signed, 16-bit little-endian PCM, 1 channel
>15	byte	4	4-bit ADPCM, 1 channel
>15	byte	5	4-bit ADPCM, 2 channel

# pda: video
0	string	Playdate\ VID	Playdate video file
>24	leshort	x	%d x
>26	leshort	x	%d,
>16	leshort	x	%d frames,
>20	lefloat x	%.2f FPS

# pdz: executable package
# Not a lot we can do, as it's a stream of entries with no summary information.
0	string	Playdate\ PDZ	Playdate executable package



playdate-magic (1,538 bytes)   

christos

2022-11-04 13:36

manager   ~0003857

Added, thanks!

Issue History

Date Modified Username Field Change
2022-11-03 01:51 Alan New Issue
2022-11-03 01:51 Alan Tag Attached: magic
2022-11-03 01:51 Alan File Added: playdate-magic
2022-11-04 13:36 christos Assigned To => christos
2022-11-04 13:36 christos Status new => assigned
2022-11-04 13:36 christos Status assigned => resolved
2022-11-04 13:36 christos Resolution open => fixed
2022-11-04 13:36 christos Fixed in Version => 5.44
2022-11-04 13:36 christos Note Added: 0003857