meta.cpp – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Update timestamp description)
Line 1: Line 1:
{{GVI|Arma 3|1.54}}
{{GVI|Arma 3|1.54|category}}
'''Meta.cpp''' file contains additional information about mods published on Steam Workshop. This file is automatically created when a mod is published by [[Arma 3 Publisher]] to Steam Workshop.
 
'''Meta.cpp''' file contains additional information about mods published on Steam Workshop.
This file is automatically created when a mod is published by [[Arma 3 Publisher]] to Steam Workshop.


=== Attributes ===
=== Attributes ===
{|class="wikitable"
 
|+meta.cpp attributes
{| class="wikitable"
! style="text-align:left;"| Key
|+ meta.cpp attributes
! style="text-align:left" | Key
! style="text-align:center" | Required  
! style="text-align:center" | Required  
! Meaning
! Meaning
|-
|-
|<tt>protocol</tt>
| <tt>protocol</tt>
|Yes
| Yes
|Version of meta.cpp file content.
| Version of meta.cpp file content.
|-
|-
|<tt>publishedId</tt>
| <tt>publishedId</tt>
|No
| No
|Steam Workshop identifier for the mod. If this id is filled in on a server, [[Arma 3 Launcher]] set up this mod when user connects to that server.
| Steam Workshop identifier for the mod. If this id is filled in on a server, [[Arma 3 Launcher]] set up this mod when user connects to that server.
|-
|-
|<tt>name</tt>
| <tt>name</tt>
|No
| No
|Steam Workshop item name.
| Steam Workshop item name.
|-
|-
|<tt>timestamp</tt>
| <tt>timestamp</tt>
|No
| No
|Time of last mod update in Unix time format.
| Time of last mod update in [https://docs.microsoft.com/en-us/dotnet/api/system.datetime.tobinary?view=netcore-3.1 .NET Framework ticks time format] (10,000 ticks = 1 millisecond).
|-
|-
|<tt>hashOverride</tt>
| <tt>hashOverride</tt>
|No
| No
|Mod hash override that is send by the server to the client instead of the hash calculated from real mod. The override hash can be calculated by [[ModHashCalculator]].
| Mod hash override that is send by the server to the client instead of the hash calculated from real mod. The override hash can be calculated by [[ModHashCalculator]].
|}
|}


=== Example ===
=== Example ===
{{codecomment|/// Version of meta.cpp content}}
 
protocol = 1;
<syntaxhighlight lang="cpp">
{{codecomment|/// Steam Workshop item id}}
/// Version of meta.cpp content
publishedid = 123456790;
protocol = 1;
{{codecomment|/// Steam Workshop item name}}
 
name = "Splendid mod";
/// Steam Workshop item id
{{codecomment|/// Time of last update of the Steam Workshop Item (in Unix time format)}}
publishedid = 123456790;
timestamp = 9876432101234567890;
 
{{codecomment|/// Mod hash that is send by the server to the client instead of calculated hash)}}
/// Steam Workshop item name
hashOverride = 1234567890;
name = "Splendid mod";
 
/// Time of last update of the Steam Workshop Item (in .NET Framework time format)
timestamp = 9876432101234567890;
 
/// Mod hash that is send by the server to the client instead of calculated hash)
hashOverride = 1234567890;
</syntaxhighlight>
 


[[Category:BIS_File_Formats]]
[[Category:BIS_File_Formats]]
[[Category:ArmA:_Addon_Configuration]]
[[Category:ArmA:_Addon_Configuration]]
[[Category:Arma 3: Editing|meta.cpp]]
[[Category:Arma 3: Editing|meta.cpp]]

Revision as of 00:04, 22 June 2020

Arma 3 logo black.png1.54

Meta.cpp file contains additional information about mods published on Steam Workshop. This file is automatically created when a mod is published by Arma 3 Publisher to Steam Workshop.

Attributes

meta.cpp attributes
Key Required Meaning
protocol Yes Version of meta.cpp file content.
publishedId No Steam Workshop identifier for the mod. If this id is filled in on a server, Arma 3 Launcher set up this mod when user connects to that server.
name No Steam Workshop item name.
timestamp No Time of last mod update in .NET Framework ticks time format (10,000 ticks = 1 millisecond).
hashOverride No Mod hash override that is send by the server to the client instead of the hash calculated from real mod. The override hash can be calculated by ModHashCalculator.

Example

/// Version of meta.cpp content
protocol = 1;

/// Steam Workshop item id
publishedid = 123456790;

/// Steam Workshop item name
name = "Splendid mod";

/// Time of last update of the Steam Workshop Item (in .NET Framework time format)
timestamp = 9876432101234567890;

/// Mod hash that is send by the server to the client instead of calculated hash)
hashOverride = 1234567890;