EFC (File Format)

From Wexos's Wiki
Jump to navigationJump to search

EFC is a file format found in Mario Kart Arcade GP DX. It defines culling effect areas used in tracks, and it functions identically to ABC files.

File Format

The file byte order is always little endian.

File Header

The file starts with a header that is 0x10 bytes long.

Offset Type Description
0x00 Char[4] File magic. Always EFFC in ASCII.
0x04 Int32 Always 1. Maybe version? The game checks if this value is 1, otherwise it won't read the file.
0x08 Int32 Number of Culling Areas (N).
0x0C Byte[4] Padding.
0x10 End of header, start of Culling Areas

Culling Areas

After the header, there are N 0x40-byte culling areas. Each area corresponds to each section of the track's EFD file, and it is made of a single 4x4 matrix that is used to transform the current position of the camera's target. The game checks once per frame if the transformed position of each area lies within a -0.5f to 0.5f AABB cube to determine the culling status.

Culling Area
Offset Type Description
0x00 Float[16] 4x4 matrix.

Tools

The following tools can handle EFC files:

  • (none)