This guide will function as the documentation for creating custom configurations for Parking Lot Snapping.
Вперед
This guide functions as the documentation for adding custom configurations for Parking Lot Snapping Mod. I have written it assuming that you understand the following:
- How to access your log file.
- Basics of Cities Skylines code with regards to assets, AIs, and prefabs.
- Basics of programming XML
- Types of programming variables
The formatting of the XML files can be changed with updates to PLS. Custom configurations may need to updated or redone completely if the XML format is changed due to an update.
Сокращения
- СРП : Parking Space Asset
- PLR : Parking Lot Road
- PGR : Parking Garage Road
- PLS : Parking Lot Snapping Mod
Asset Creator Mode
- Use asymmetric PSAs to Log information about new PLRs to make adding PLRs easier.
- Snapping an asymmetric PSA to a new PLR will automatically export & import a default template for the PLR which makes it seem like you can snap to any network.
- On Prefab Initialize all assets using DummyBuildingAI will be listed in the log file to make it easier to add new PSAs.
- Logs the distance between locked locations to help determine the width of the PSA.
Импорт / Экспорт
- Folder Path:
- Location for exporting / importing custom PLS configurations.
- Экспорт:
- Will export current configurations to the specified folder path in an XML format that PLS can read and import. Error counts reported in text box with a time stamp. More detailed error reports are in the log file.
- Импорт:
- Will read files in specified folder path and attempt to overwrite any PLS configurations form the files. Error counts reported in text box with a time stamp. More detailed error reports are in the log file.
- Import on Start Up:
- If you use custom configurations you should enable this setting so you don’t need to reimport your custom configurations on every game load.
- Common Import / Export Errors:
- Cannot write file that is open. or Cannot open that file is in use by another application.
- Try to wait a little while between export and importing configurations. Restarting your computer will resolve this issue. If you know which file is causing the problem, opening and closing it might fix it. Sometimes the problem just goes away if you wait awhile and work on other files.
- Cannot write file that is open. or Cannot open that file is in use by another application.
PSA File Format
- Компенсировать (плавать): Distance from centerline for asymmetric PSAs
- Parking Width (плавать): Distance between adjacent PSAs
- Parallel (Boolean):
- истинный – can attach to any road
- ЛОЖЬ – cannot attach to parallel parking PLRs
- Вращение (плавать : 0, 90, 270): three types of rotations for asymmetric PSAs
- Raisable (Boolean):
- истинный – allows elevation to be altered for attachment to PGRs. Asset must be capable of raising from the terrain.
- ЛОЖЬ – Asset is restricted to being attached to the terrain. Will not snap to Elevated or Bridge networks.
- Имя (Нить): Must match the asset’s info.name. Use asset creator mode or Mod tools to find asset’s info.name.
- Filename (нить): А unique string for import / export functions. Cannot include characters inappropriate for a file name. The actual file name will be “PSA-” + unique string + “.xml”
- Примечания:
- All assets must be originally have an AI of DummyBuildingAI или ParkingLotSnapping.ParkingSpaceAssetAI.
PLR File Format
- Symmetric Aisle Offsets (List of Unique Floats): Creates an aisle that symmetric PSAs attach to. + или – determine left or right.
- Asymmetric Aisle Offsets (List of Unique Floats): Creates an aisle that asymmetric PSAs attach to. + или – determine left or right.
- One Sided (Boolean):
- истинный – Restricts acceptable PSAs to asymmetric only.
- ЛОЖЬ – accepts both symmetric and asymmetric PSAs.
- Invert Offset (Boolean):
- истинный – For small PLRs that have an aisle that is on one side of the centerline and parking on the other side.
- ЛОЖЬ – For normal PLRs.
- Parallel (Boolean):
- истинный – Restricts attachable PSAs to only parallel parking.
- ЛОЖЬ – Parallel, perpendicular, and angled PSAs will attach.
- Имя (Нить): Must match the network’s info.name. Use asset creator mode or Mod tools to find the network’s info.name.
- Filename (нить): А unique string for import / export functions. Cannot include characters inappropriate for a file name. The actual file name will be “PLR-” + unique string + “.xml”.
- Вертикальное смещение (плавать): Raises or lowers elevation (m_position.y) of PSAs by value. May not work if PSA asset is fixed to terrain.
- Примечания:
- PGRs require three configurations: Земля (info.name_Data), Elevated (info.name E), and Bridge (info.name B).
Это все, чем мы делимся сегодня для этого. Города: Горизонты гид. Это руководство было первоначально создано и написано [SSU]yenyang. На случай, если нам не удастся обновить это руководство, вы можете найти последнее обновление, следуя этому связь.