Changes

Jump to navigation Jump to search

Documentation/Engine/Game data

799 bytes added, 09:11, 8 March 2016
Country definitions
=== Country definitions ===
Defines available countries that can be used in the Map Editor and later in game. While defining new country make sure to include it in country storage file "'''/def/country(.infix).sii'''".
Each country has it's own folder defining all possible country specific data. Worth mentioning is modification of AI traffic appearing frequencies, which is done by adding SII files inside "'''/def/country/<country_name>/ai/'''" folder. Each SII file defines modified frequency for one AI vehicle, where it's name tells which car is it. Possible file names are the same as the ones that defines AI vehicles (AI vehicles definitions can be found in: "'''/def/vehicle/ai/'''").
<div class="folder_structure">
├{{FileSystemTreeEntry|icon=FST-IconFolder|type=|name=def|link=#Definitions}}
├{{FileSystemTreeEntry|icon=FST-IconFolder|type=|name=country|mark_current=1}}
├{{FileSystemTreeEntry|icon=FST-IconFolder|type=|name=<country_name>}} ''Folder defining other country specific data: license plates, speed limits, AI cars frequency.'' ├{{FileSystemTreeEntry|icon=FST-IconFolder|type=|name=ai}} ''Folder containing definitions SII files for AI traffic vehicles, that should have modified frequency in which this company exists and which prefab will be used for itthat country.'' ├{{FileSystemTreeEntry|icon=FST-IconFileSii|type=|name=license_plates.sii}} ''Folder containing SII files Defines license plate data for cargoes this company acceptsthat country.'' └{{FileSystemTreeEntry|icon=FST-IconFileSii|type=|name=speed_limits.sii}} ''Folder containing SII files Defines speed limits for AI traffic for cargoes this company is shipping outthat country.'' ├{{FileSystemTreeEntry|icon=FST-IconFolder|type=|name=<country_name1>}} '' '' ├{{FileSystemTreeEntry|icon=FST-IconFolder|type=|name=...}} ''Rest Folder for the rest of the folders defining other countries: editor, in and out data.''
├{{FileSystemTreeEntry|icon=FST-IconFileSii|type=|name=<country_name>.sii}} ''File defining country general data: id, name, country code, position, fuel price etc.''
├{{FileSystemTreeEntry|icon=FST-IconFileSii|type=|name=<country_name1>.sii}} '' '' └{{FileSystemTreeEntry|icon=FST-IconFileSii|type=|name=...}} ''Rest The rest of the countries definitionsdefinition.''
</div>

Navigation menu