A Set of Touhou File Manipulation Resources

Table of Contents

-Nutzer

Authorships

This database bases on the thtk ECL database, and contains a lot of information from
Dark Kitsune's Touhou bytecode documentation and many things Riri found out; some of them are available here.
The documentation on v1-th06 was completely done by ManDude.

Notes

ECL Version 3 (th12-th128) and ANM version 4p (th10-th128) are the one I'm working with, so they have way more Identified instructions than the other versions.

Update 2019-07-14

Addded pages for Complex transformations, Interpolation and Bullet sprites, added v4-th17 (with no changes from v4-th16) and updated ECL-Versions 12-16

Formats

ECL

ECL, the Enemy Control Language, is a language used to design enemy formations and bullet patterns.

If you are searching for the old database and the old thecl.json, you can still find them here.

If you want to write ECL scripts, use thtk-thecl.
A mnemonic map for each version can be found in the Version table below.
A tutorial on how to write it can be found here.
A breakdown of the File format is here.

ANM

ANM, the Animations, contain images, sprites, and scripts and control animations.

If you want to write ANM scripts, use thtk-thanm.
A mnemonic map for each version can be found in the Version table below.
A tutorial on how to write it should follow soon.

A breakdown of the File format should follow soon.

STD

STD, the Stage Definition, is a Language used to set up and control backgrounds.

If you want to write ECL scripts, use thtk-thstd.
A mnemonic map for each version can be found in the Version table below.
A tutorial on how to write it should follow soon.

A breakdown of the File format should follow soon.

Format Table

Game ID ECL-Version ANM-Version STD-Version
06 v1-th06 v0 sf0
10 v2-th10 v4p sf1
11 v2-th11 v4p sf1
12 v3-th12 v4p sf1
125 v3-th125 v4p sf1
128 v3-th128 v4p sf1
13 v4-th13 v8 sf2
14 v4-th14 v8 sf2
143 v4-th143 v8 sf2
15 v4-th15 v8 sf2
16 v4-th16 v8 sf2
165 v4-th165 v8 sf2
17 v4-th17 v8 sf2

Games before th10 also use ANM standards
v0, v1, v2, and v3, as well as the STD standard sf0

Some other Resources that I'm aware of

Last Update: 2019-07-28 So 14:02

Validate