Skip to content

WalrusRPG/PIAF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIAF

PIAF Is an Archive Format

Python library to read/write WRPG archive files. PIAF is a custom archive format thought to pack data files for WRPG-based projects, it's thus not thought a general use.

File Specifications.

A PIAF file (.wrf for W-Rpg File) is in three parts : the header, the file table and the data part. All the values are stored in big endian.

The Header

The header has a fixed size : 24 bytes. Here's its content:

  • A magic cookie : "WRPGPIAF" (not-null terminated, taking 8 bytes)
  • The header's checksum (CRC32 value, taking 4 bytes)
  • The filetable's checksum (CRC32 value, taking 4 bytes)
  • The version, stored in a uint32 in this form : 0xAABBCCCC (A = major version, B = minor version, C=fix) (4 bytes)
  • The number of files (taking 4 bytes)
  • The data section's size (taking 4 bytes)

More to come.

About

Python library to read/write WRPG archive files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages