D3TV

D3TV files are game data files used by the v3.x of the D.U.N.E (Developers Universal Non-programming Environment) Engine, which added support for CD Audio with the Commodore CDTV, and is well known for being the engine used by "The Town With No Name" and "Psycho Killer". These files usually correspond to individual "shots" in a DUNE game, and are based on the IFF metaformat.

Identification
D3TV files begin with, have the file-size in bytes starting at offset 4, and have a type indicator of   at offset 8.

Chunks
These files contain many different chunks for different types of game data. All offsets mentioned are relative to the start of the chunk identifier.

AFRM
The purpose of this chunk is currently unknown.

AVNE
This chunk contains information about "avenues", which are links to other shots.

BPNT
This chunk contains information about where a button is, and is followed by the connected AVNE chunk. Point fields are repeated for each point in the button.

CAUD
This chunk sets the audio sample or module to be played when entering a shot, or when activating a button.

CDTV
This chunk refers to CD Audio that is played immediately when a shot is entered.

EVNT
This chunk seems to related an avenue to either a button press or time elapsing. Usually followed by an AVNE and sometimes a BPNT.

GRPH
This chunk gets the image or animation for the shot, and sets some extra details about it.