A disassembler for SCFOM files found in Tales of games, under the SCFOMBIN
(v3) or SFM2
magics.
Not complete, syscalls are mostly unknown among other bits, but should give a basic overview of what's going on. Script format is pretty close to C. Static data goes into a static data section in binaries.
Tales of Rebirth has an uncompiled script file lying around.
Scfom is known to be used in:
- Tales of Destiny 2 (v1,
SFM_
, version 1020) - Tales of Rebirth (v2,
SFM2
, version 20100) - Tales of Vesperia (v3,
SCFOMBIN
, version 30100) - Tales of Xillia (v3,
SCFOMBIN
, version 31600)
Scfom can be used alongside CScript (which has already been reverse-engineered), for instance both Scfom and CScript are available in Tales of Vesperia.
A 010 editor template is available here, note that it may be slightly behind compared to this repo.
SFM1 (SFM_
) from Tales of Destiny is not supported, while the header is similar, the instruction ids (and how they are read) are different, even if they share more or less the same logic.