<?xml version="1.0"?>
<rss version="2.0"><channel><title>For Developers/Third-party projects Latest Topics</title><link>https://forum.vtc.world/index.php?/forum/141-for-developersthird-party-projects/</link><description>For Developers/Third-party projects Latest Topics</description><language>en</language><item><title>Third-party Application mode (TPA)</title><link>https://forum.vtc.world/index.php?/topic/3507-third-party-application-mode-tpa/</link><description><![CDATA[
<p>
	<span style="color:#9b59b6;"><u><span style="font-size:16px;"><strong>Third-party Application mode (TPA)</strong></span></u></span>
</p>

<p>
	 
</p>

<p>
	<span style="font-size:14px;"><span style="color:#3498db;"><strong>Mode of working of the VTC.World client in which the game.sii save file of the VTC.World profile is copied to a special folder for decryption and reading by third-party projects without restrictions.</strong></span></span>
</p>

<p>
	 
</p>

<p>
	<span style="color:#2980b9;"><strong>Directory of TPA files</strong></span>
</p>

<p>
	 
</p>

<p>
	The directory for TPA files is a \VTCWorld\tpa in the root directory of local files (<a href="https://docs.microsoft.com/en-us/windows/win32/shell/csidl" rel="external nofollow">CSIDL_LOCAL_APPDATA</a>).
</p>

<p>
	<strong>Example for Windows 10:</strong> C:\Documents and Settings\&lt;username&gt;\Local Settings\VTCWorld\tpa
</p>

<p>
	 
</p>

<p>
	<span style="color:#2980b9;"><span style="font-size:14px;"><strong>The principle of working</strong></span></span>
</p>

<p>
	 
</p>

<p>
	If VTC.World profile is active for player, file <strong>profile.active</strong> is presented in VTC.World profile folder (<strong>5654432E576F726C64</strong>).
</p>

<p>
	 
</p>

<p>
	Each game.sii file that has been successfully unpacked and processed by the VTCW client is copied to the TPA directory named <strong>&lt;internal_timestamp&gt;.sii</strong>.
</p>

<p>
	 
</p>

<p>
	There may be a situation where several files can be saved at the same time. In this case, in addition to <strong>&lt;internal_timestamp&gt;.sii</strong>, there may be files of the following names:
</p>

<p>
	<strong>&lt;internal_timestamp&gt;-1.sii </strong>
</p>

<p>
	<strong>&lt;internal_timestamp&gt;-2.sii </strong>
</p>

<p>
	<strong>&lt;internal_timestamp&gt;-N.sii</strong>
</p>

<p>
	 
</p>

<p>
	<span style="color:#2980b9;"><strong>Garbage disposal</strong></span>
</p>

<p>
	 
</p>

<p>
	VTC.World client independently monitors the number of files in the directory. The number of files cannot be more than 10. Old files are deleted automatically.
</p>

<p>
	 
</p>

<p>
	The directory is automatically cleared of files after the game session and when the VTC.World client is closed.
</p>

<p>
	 
</p>

<p>
	<span style="color:#2980b9;"><strong>Recommendations</strong></span>
</p>

<p>
	 
</p>

<p>
	It is recommended not to try to access the VTC.World profile files directly, but to track new files in the TPA directory to read up-to-date information. This ensures that the files are valid, can be successfully unpacked, processed, and will not affect the operation of the VTC.World client.
</p>

<p>
	 
</p>

<p>
	<span style="color:#e74c3c;">Attempting to access VTC.World profile files directly if the application does not have the appropriate access is subject to microfreezes and freezes, which can negatively affect delivery accounting.</span>
</p>

<p>
	 
</p>

<p>
	<span style="color:#2980b9;"><strong>Enabling TPA mode</strong></span>
</p>

<p>
	 
</p>

<p>
	If TrucksBook Client is running, this mode is activated automatically. In other cases, the client must be started with the <strong>-tpaenable</strong> parameter
</p>

<p>
	 
</p>

<p>
	This mode is relevant and works only for the VTC.World profile.
</p>
]]></description><guid isPermaLink="false">3507</guid><pubDate>Sun, 10 Jan 2021 05:02:23 +0000</pubDate></item></channel></rss>
