49
edits
| (3 intermediate revisions by the same user not shown) | |||
| Line 25: | Line 25: | ||
The relative file paths and names inside an archive or location, are the paths and names used to request an asset. | The relative file paths and names inside an archive or location, are the paths and names used to request an asset. | ||
data | data (tier 1) | ||
pak0.zip | pak0.zip (tier 0) | ||
file.txt | file.txt | ||
model | model | ||
file1.obj | file1.obj | ||
model | model | ||
file2.obj | file2.obj | ||
file.txt | |||
Default precedence: | Default precedence: | ||
By default, Engine tries to load a single archive file named 'pak0.zip' in the specified 'base_path'. This file will then be asset | |||
By default, Engine tries to load a single archive file named 'pak0.zip' in the specified 'base_path'. This archive file will then be asset tier 0, the lowest. The 'base_path' itself will be asset tier 1. | |||
For example, on startup Engine will look for a file named 'config.cfg', first in the file system at 'base_path', and then inside the 'pak0.zip' file loaded from 'base_path'. If neither are found, will load with static defaults. | For example, on startup Engine will look for a file named 'config.cfg', first in the file system at 'base_path', and then inside the 'pak0.zip' file loaded from 'base_path'. If neither are found, will load with static defaults. | ||