309
edits
Changes
Using new 'UnitDef' template
'''Package version info ''' is a [[Documentation/Engine/Units|unit ]] containing version informations workshop mod package information, such like as the name of the folder or archive with content and the array of compatible game versions. It is used in each workshop mod's [[Documentation/Tools/SCS_Workshop_Uploader/versions.sii|versions.sii]].
== Attributes ==
{| class="wikitable"
!|Name
!|[[Documentation/Engine/Units#Attribute_types|Type]]
!|Required/Optional
!|Description
|-
|package_name
|style="text-align:center;"|string|style="text-align:center;"|Required|The name of the folder or archive with the version-specific mod content. This For zip archives, package_name is required attributejust the file name without the extension.
|-
|compatible_versions
|style="text-align:center;"|string array|style="text-align:center;"|Optional|The array containg set of versions that are compatible with this version definition. This attribute is optional, if If not specified this version package will be used for all of the game versions - you not explicitly defined for other packages. <BR />'''Important:''' Each workshop mod's versions.sii can only have contain ''one '' `package_version_info` with unit without this parameter not specified in versions.sii|-|informational|style="text-align:center;"|bool|style="text-align:center;"|Optional|When true, indicates that the package contains information only. If unspecified, defaults to false.
|}
{{UnitDef|def=<nowiki> "package_version_info":{
"superclass":"unit",
"attrs":{
"package_name":{
"type": "string"
},
"compatible_versions":{
"type": "string_array"
},
"informational":{
"type": "bool"
}
}</nowiki>}}