Skip to content

Instantly share code, notes, and snippets.

@psihonavt
Created September 4, 2013 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psihonavt/6436754 to your computer and use it in GitHub Desktop.
Save psihonavt/6436754 to your computer and use it in GitHub Desktop.
POST /api/request_metadata
Params: langauge (agent language)
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="metadata">
<protocol_version>1.0</protocol_version>
<game_id>WOT</game_id>
<game_status>normal</game_status>
<game_size>10000000000(in bytes?)</game_size>
<update_url>http://us.wg.net</update_url>
<update_url_signature>123</update_url_signature>
<splash_url>http://us.wg.net/splash</splash_url>
<title>Welcome to WOT!</title>
<description>some game about tanks</description>
<static_content>
всякие картинки, с контент типом, ролики и тп
</static_content>
<patches_types>
типы патчей, описание для прогресс бара в агенте, статус патча (качать и запусать, докачивать потом)
</patches_types>
</protocol>
POST /api/request_patches
Params:
* from_version
* language
пример цепочки патчей с версии 8.5:
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="patches_chain">
<protocol_version>1.0</protocol_version>
<version name="8.6" type="release">
<torrent>http://url_to_version_8_6.torrent </torrent>
<patch type="content">
<file> content_8.6.de.patch</file>
</patch>
<patch type="client">
<file> client_8.6-8.5.part1.patch</file>
<file> client_8.6-8.5.part2.patch</file>
</patch>
</version>
<version version="8.6.1" type="pre-release">
<torrent>>http://url_to_version_8_6_1.torrent </torrent>
<patch type="content">
<file> content_8.6.1.de.patch</file>
</patch>
</version>
</protocol>
-------------------------------------------------------------------
пример цепочки патчей с версии 0:
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="patches_chain">
<protocol_version>1.0</protocol_version>
<version name="8.6" type="release">
<torrent>http://url_to_version_8_6.torrent </torrent>
<patch type="content">
<file> content_8.6.de.patch</file>
</patch>
<cumulative>
<patch type="cumulative_base">
<file> base_client_8.6.part1.patch</file>
<file> base_client_8.6.part2.patch</file>
</patch>
<patch type="cumulative_sandbox">
<file> sandbox_client_8.6.part1.patch</file>
</patch>
<patch type="cumulative_others">
<file> others_client_8.6.part1.patch</file>
</patch>
</cumulative>
</version>
<version version="8.6.1" type="pre-release">
<torrent>>http://url_to_version_8_6_1.torrent </torrent>
<patch type="content">
<file> content_8.6.1.de.patch</file>
</patch>
</version>
</protocol>
POST /api/request_validity_check
Params: language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment