Vadru93 / LevelMod

THPS3 LevelMod
Other
21 stars 2 forks source link

Store level editor version in BSP #66

Open DCxDemo opened 3 years ago

DCxDemo commented 3 years ago

For better versioning of level files, level editor could write its current version to the BSP file, maybe in some custom string chunk (as RenderWare BSP is a RIFF-like format), or some other way. This way we'll know the exact version used to export the file and keep track of how stale the files are.

Vadru93 commented 3 years ago

It seems that adding a struct before world header works fine, since the struct there would be undefined and thus simply ignored. Tested on foundry by adding struct header with 4 bytes size.