309
edits
Changes
Major reformat and rewrite; added relevant wiki links, reformatted attribute table (added informational attribute), and added raw unit structure from -dump_units output as of ATS 1.4
'''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
!|Type
!|NameRequired/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.
|}
== Raw Unit Definition ==
<pre> "package_version_info":{
"superclass":"unit",
"attrs":{
"package_name":{
"type": "string"
},
"compatible_versions":{
"type": "string_array"
},
"informational":{
"type": "bool"
}
}</pre>
== See Also ==
[[Tutorials/SCS_Workshop_Uploader/How_to_use_mod_versioning|Tutorial: How to Use Mod Versioning]]