- Notifications
You must be signed in to change notification settings - Fork6
LiamBrandt/crp-extract
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a simple tool to extract .crp files forCities: Skylines.As of right now it can extract PNG and DDS files, leaving the other binary files unsorted.
- Python 2 or 3https://www.python.org/downloads/
crp_extract.py [-h] [--output-dir OUTPUT_DIR] filepositional arguments: file The file to unpackoptional arguments: -h, --help show this help message and exit --output-dir OUTPUT_DIR The directory to put the unpacked files into (Default: current working directory)
A CRP is split up into sections, which when extracted are represented as files in the extract folder.Each section contains metadata at the beggining.When the format of the section can be determined, this metadata is moved to a file called metadata.json, and the correct file extension is added to the end of that section file.For example, if a CRP contained a section with a PNG image, then the metadata for that section would be cut and moved to metadata.json, and the smaller section file would be given a .png extension so that it functions as a PNG file.
These are the values for the first bytes of each type of file contained in a CRP file. They are probably used as a quick guide for the game to tell which files are which.
- 0x53 - Assembly-CSharp
- 0x54 - UnityEngine.Mesh
- 0x57 - BuildingInfoGen
- 0x58 - UnityEngine.Material
- 0x59 - UnityEngine.Texture2D
- 0x5A - UnityEngine.GameObject
- 0x5B - CustomAssetMetaData
- 0x69 - ColossalFramework.Importers.Image