Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Namco Text Archive [*.TXT | PS2/XBOX]

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
TopazTK
beginner
Posts: 20
Joined: Thu Mar 21, 2019 6:26 pm
Has thanked: 2 times
Been thanked: 14 times

Namco Text Archive [*.TXT | PS2/XBOX]

Post by TopazTK »

This thread is a specification of the text archive format used by Namco in game series like Soul Calibur in the PS2/XBOX era, which have the ".txt" extension.

NOTE: This format functions sort of like a non-broken version of PKG.

Format Specifications:
  • PS2/XBOX Checksum Enabled [Valid If: FileSize % 16 = 0]
  • 32-bit Format
  • Maximum capacity varies from game to game due to other files referencing to this one being limited in that way.
  • Offsets are non-absolute. Length of the header must be added to each offset to get their absolute values.
String Specifications:
  • There is support for special strings declared by the game's font table.
  • The string can be terminated with 0x00. In some games, this termination is mandatory as you may have noticed: There is no size declaration.
  • The strings are UTF8.
  • The strings can support Japanese, Korean and Chinese through special font tables.
Format Structure:
The code given is a psuedo code inspired by 010 Editor's Template Language.

Code: Select all

struct FILE
{
	struct HEADER
	{
		int TargetLanguage;
		int EntryCount;
		int FileOffsets[EntryCount];
	} header;
	
	char DATA[];
} file;
Interesting Tidbits:
  • In some games, if the string is not terminated, the string is parsed until a terminator is found. This can lead to funny results.
Post Reply