This guide will function as the documentation for creating custom configurations for Parking Lot Snapping.
Foreward
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.
약어
- PSA : 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.
Import / 내보내다
- 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.
- Import:
- 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
- Offset (float): Distance from centerline for asymmetric PSAs
- Parking Width (float): Distance between adjacent PSAs
- Parallel (부울):
- 진실 – can attach to any road
- 거짓 – cannot attach to parallel parking PLRs
- Rotation (float : 0, 90, 270): three types of rotations for asymmetric PSAs
- Raisable (부울):
- 진실 – 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 (부울):
- 진실 – Restricts acceptable PSAs to asymmetric only.
- 거짓 – accepts both symmetric and asymmetric PSAs.
- Invert Offset (부울):
- 진실 – 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 (부울):
- 진실 – 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”.
- Vertical offset (float): 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. 이 가이드를 업데이트하지 못한 경우, 다음을 수행하여 최신 업데이트를 찾을 수 있습니다. 링크.