Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Marksman ! (Registered 2017-10-23) You are not logged in 
CSDb User Forums


Forums > CSDb Discussions > Details of the SpritePad SPD format
2017-10-03 10:25
awsm

Registered: Feb 2015
Posts: 12
Details of the SpritePad SPD format

Im currently working on a sprite tool that supports the Spritepad 2.x format.
I was hoping someone could help my understand the internal format better?

Bytes $00, $01, $02
always SPD

Byte $03
?? - What does this one do?

Byte $04
The number of sprites

Byte $05
?? - What does this one do?

Bytes $06, $07, $08
Transparent, multicolor 1, multicolor 2

Byte $09
Start of sprite data (63 bytes)
followed by the 64th byte with multicolor/singlecolor (high nibble) and sprite color (low nibble)

I figured that after the last sprite some more data follows, which I expect to contain the animation sequences?
Anything else I should know?

Thanks in advance!
2017-10-03 11:25
oziphantom

Registered: Oct 2014
Posts: 157
byte 3 is probably version number as per char pad format
2017-10-03 11:28
Shine

Registered: Jul 2012
Posts: 199
Maybe Soci could help.

View64 V1.60
...
- Support for Spritepad SPD files
...
2017-10-03 11:42
JackAsser

Registered: Jun 2002
Posts: 1243
Do you now see why open sourcing the tools is a good idea, even if they're hacks in VB or something. :)
2017-10-03 12:31
oziphantom

Registered: Oct 2014
Posts: 157
The CharPad format is documented with the release though, guess since the SpritePad is BETA they haven't..
2017-10-03 22:30
soci

Registered: Sep 2003
Posts: 363
I haven't checked 2.x much as it's not possible to run it on ReactOS (1.8.1 works ok).

Bit 4 is the sprite overlay flag in the last byte, rest is ok.

The animation stuff I haven't researched as it was out of scope for view64. Byte 5 might be related to it.
2017-10-03 23:33
soci

Registered: Sep 2003
Posts: 363
I think this is it:

v1:
1 byte    - 0-3 background
1 byte    - 0-3 multicolour 1
1 byte    - 0-3 multicolour 2

repeated for each sprite:
63 bytes  - sprite data
1 byte    - flags 0-3 colour, 4 overlay, 7 multi

v2:
3 bytes   - magic "SPD"
1 byte    - version (1)
1 byte    - number of sprites - 1
1 byte    - number of animations - 1
1 byte    - 0-3 background
1 byte    - 0-3 multicolour 1
1 byte    - 0-3 multicolour 2

repeated for each sprite:
63 bytes  - sprite data
1 byte    - flags 0-3 colour, 4 overlay, 7 multi

animation settings split into 4 arrays:
n bytes   - animation starts
n bytes   - animation ends
n bytes   - timers
n bytes   - flags 4 ping-pong, 5 overlay, 7 valid
2017-10-04 11:50
awsm

Registered: Feb 2015
Posts: 12
Thank you soci for the analysis, this was very helpful.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
LocalH/BCI
Jok/DreamWeb
Trash
Steel/SCS & TRC/G★P
Kakka/Extend, Damone..
pcollins/Excess
Scooby/Light
JEZ
Jazzcat/Onslaught
Metal Maniac/Dual Crew
Grue
Tom-Cat/Nostalgia
Skrjablin/Hokuto Force
Guests online: 60
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 The Shores of Reflec..  (9.6)
5 Lunatico  (9.6)
6 Quad Core 100%  (9.5)
7 Comaland 100%  (9.5)
8 Incoherent Nightmare  (9.5)
9 Wonderland XII  (9.5)
10 Comaland  (9.5)
Top onefile Demos
1 Pandemoniac Part 2 o..  (9.6)
2 Synthesis  (9.6)
3 Dawnfall V1.1  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Treu Love [reu]  (9.4)
6 Field Sort  (9.4)
7 Dawnfall  (9.3)
8 KAOS 64  (9.3)
9 Hardware Accelerated..  (9.2)
10 Globe 2016 [reu]  (9.2)
Top Groups
1 Booze Design  (9.4)
2 Pond  (9.4)
3 Censor Design  (9.4)
4 Oxyron  (9.4)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Mitch  (9.8)
3 Mr Zero Page  (9.8)
4 Snacky  (9.8)
5 MWS  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2017
Page generated in: 0.304 sec.