This repository was archived by the owner on Apr 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal_macros.xml
More file actions
49 lines (46 loc) · 3.78 KB
/
Copy pathglobal_macros.xml
File metadata and controls
49 lines (46 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<GlobalMacros documentVersion="1.0">
<!-- xpaths -->
<Macro Name="wgmods_xpath" Value="//a[contains(@class, 'ModDetails_hidden')]/@href"/>
<Macro Name="wgmods_xpath_version" Value="//div[contains(@class, 'ModDetails_labels')]/div/@title"/>
<Macro Name="wotsite_xpath" Value="//a[contains(@class, 'btn-download')]/@href"/>
<Macro Name="yandex_xpath" Value="//a[contains(@class, 'button download-file-button') and contains(text(), 'Download file')]/@href"/>
<Macro Name="yandex_xpath_2" Value="//a[contains(@class, 'button download-file-button') and contains(text(), 'Скачать файл')]/@href"/>
<Macro Name="curseforge_xpath" Value="//a[contains(@class, 'alink underline') and contains(text(), 'here')]/@href"/>
<Macro Name="gdrive_xpath" Value="//a[contains(@class, 'gb_3 gb_4 gb_9d gb_3c')]/@href"/>
<Macro Name="wotspeak_xpath" Value="//a[contains(@class, 'down_new')]/@href"/>
<Macro Name="awfultanker_xpath" Value="//a[contains(@class, 'download')]/@href"/>
<Macro Name="champi_xpath" Value="//div[div = "{champi_xpath_mod_name}"]/a/@href"/>
<Macro Name="mediafire_xpath_folder" Value="//a[contains(@class, 'thumbnailClickArea') and contains(@title, '{folder_name_search}')]/@href"/>
<Macro Name="mediafire_xpath_file" Value="//a[contains(@class, 'filetype_column') and contains(@href, '{zip_file_name_search}')]/@href"/>
<Macro Name="mediafire_xpath_download_page" Value="//a[@id = "downloadButton"]/@href"/>
<!-- https://stackoverflow.com/questions/26640746/xpath-syntax-for-and-not-contains -->
<!-- this xpath works in browser and html modes -->
<Macro Name="xvm_stable_xpath" Value="//a[contains(text(), '(archive)') and not(contains(text(), 'TEST'))]/@href"/>
<!-- this xpath works in browser mode only -->
<Macro Name="koreanrandom_attachment_xpath" Value="//a[contains(span, '{koreanrandom_attachment_name}')]/@href"/>
<!-- urls -->
<Macro Name="awefultanker_url_base" Value="https://awfultanker.torvox.eu/"/>
<Macro Name="clanIcon_downloader_github_exe" Value="https://github.com/Relhax-Modpack-Team/WGClanIconDownload/releases/download/1.0.1.1/WoTClanIconDownloadConsole.exe"/>
<Macro Name="antiMirror_github_exe" Value="https://github.com/Relhax-Modpack-Team/ZazerkalieProduce/releases/download/1.0.2.0/ZazerkalieProduce.exe"/>
<Macro Name="flash_decompile_url" Value="https://github.com/Relhax-Modpack-Team/WoTTools/raw/master/Flash%20decompile/ffdec_11.3.0.zip"/>
<Macro Name="mct_url" Value="https://github.com/Relhax-Modpack-Team/RelhaxMCT/raw/master/MCTCreator/MCTCreator2.exe"/>
<Macro Name="promod_mirror_1" Value="https://promod.reidarty.de/promod/{clientVersion}"/>
<Macro Name="yandex_prefix" Value="https://disk.yandex.com"/>
<Macro Name="yandex_prefix_2" Value="https://disk.yandex.ru"/>
<Macro Name="curseforge_prefix" Value="https://www.curseforge.com"/>
<!-- 7z package creation -->
<!--
based on a combination of the xpaths above and from the relhax gui patch:
<path>/audio_mods.xml/events/event[name = "enemy_sighted_for_team"]</path>
-->
<!-- this will create the final.zip with only using the mods or res_mods folder from work directory {mods_resMods_folders} -->
<Macro Name="7z_create_package_zipfile" Value="a -tzip -mx=9 -r final.zip {mods_resMods_folders}"/>
<!-- this will create the final.zip with all files from work directory -->
<Macro Name="7z_createFinalZip" Value="a -tzip -mx=9 -r final.zip"/>
<Macro Name="7z_createFinalZip_noCompression" Value="a -tzip -mx=0 -r final.zip"/>
<!-- protanki modpack urls -->
<Macro Name="protanki_modpack_lite" Value="https://wgmods.net/3647"/>
<Macro Name="protanki_modpack_base" Value="https://wgmods.net/21/"/>
<Macro Name="protanki_modpack_extend" Value="https://wgmods.net/89/"/>
</GlobalMacros>