Contents

File format

Signature

Lychnis uses the following signature:

Data type

Name

Description

BYTE[0x20]

cSignature

"(C) ArtCraft Resource File" 0x1A 0x00*5

FAT

The File Allocation Table is stored in the game executables.

Lychnis separately stores a list of file names (13-character strings, NULL-terminated), a list of UINT32LE file offsets and a list of UINT32LE file sizes. The lists are stored consecutively and in that order. The main executable LYCHNIS.EXE only contains a FAT for LYCHNIS2.RES. The resource file itself contains other executables, which also only contain the FAT for one of the two resource files.

EXE File

Resource file

Number of files

File names

File offsets

File sizes

LYCHNIS.EXE

lychnis2.res

114

0x00ECC0

0x00F28A

0x00F452

LYCH1

lychnis1.res

226

0x014CD0

0x01584A

0x015BD2

LYCH1P

lychnis1.res

226

0x012D32

0x0138AC

0x013C34

LYCH2

lychnis1.res

226

0x016DEE

0x017968

0x017CF0

LYCH2P

lychnis1.res

226

0x01661C

0x017196

0x01751E

LYCH3

lychnis1.res

226

0x015564

0x0160DE

0x016466

LYCH3P

lychnis1.res

226

0x014D72

0x0158EC

0x015C74

LYCH4

lychnis1.res

226

0x01454E

0x0150C8

0x015450

LYCH5

lychnis1.res

226

0x014D70

0x0158EA

0x015C72

LYCHB6

lychnis2.res

114

0x00C8F8

0x00CEC2

0x00D08A

BONUS

lychnis1.res

226

0x01281C

0x013396

0x01371E

The file tables match between all executables that use the same resource file.

List of files

The following table lists the contents of LYCHNIS2.RES.
Game executables can be renamed to .exe and executed directly. They read the configuration file LYCH.CFG to get the level to load.

Credits

This file format was reverse engineered by Valley Bell. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)