November 21, 2024, 09:30:27 pm

Author Topic: [mmt Release] FMLReplayDownloader v1.0  (Read 1602 times)

0 Members and 1 Guest are viewing this topic.

Offline massmoretankz

  • Administrator
  • Peon
  • *****
  • Posts: 25
  • Total likes: 10
    • View Profile
  • B.net Account: MMT#21873
  • Coins: 100
  • Country: Germany
  • Race: Undead
[mmt Release] FMLReplayDownloader v1.0
« on: November 26, 2017, 07:53:48 am »
Hello,

Niels one of the bot admins has made all replays hosted on toom.io publicly available.
This means our amsterdam, london and miami inhouse games can from now on be downloaded from this site.
https://archive.toom.io/#!/wc3

Missing maps can also be downloaded there in case you don't have them.

At this point I would like to introduce the FMLReplayDownloader I came up with this morning.
Basically it goes ahead and downloads all replays or maps to the output path you specify.

How does the FMLReplayDownloader work?

Requirements:
Windows Operating System
The ability to follow my guide and use some CLI

1.) Download the FMLReplayDownloader
Download it from here
https://drive.google.com/file/d/1B6krYL5WNuwXyA-4jw-BPPgPYs2FyKlS/view?usp=sharing

Unzip the all files to a directory of your choice (You must remember the directory path)

2.) Fire up Powershell ISE
Start -> powershell ise



3.) ChangeDirectory, Import-Module
I have downloaded and extracted the files in this example to c:\temp\fmlreplays

In powershell ISE type in the following in the console

cd C:\temp\FMLReplays

Pro tip: Use a jedi trick called auto-completion. Press CTRL + SPACE
Select the FMLRepalyDownloader v1.0.dll
Import-Module FMLReplayDownloader v1.0.dll

Now go ahead and
Get-FMLReplays -DownloadType replays -OutputPath C:\temp\YourReplayFolder

You may specify any output path you like. The program will if necessary create that folder. You must have the needed rights to create a folder.

Again.. Auto-completion is your friend. Use CTRL + Space while navigating in console.

If you would like to download maps simply replace "replays" with "maps"
It should look like this
Get-FMLReplays -DownloadType maps -OutputPath C:\temp\YourReplayFolder



Cheers,
massmoretankz
« Last Edit: November 27, 2017, 10:58:10 am by massmoretankz »

Offline FML|WorpeX

  • Administrator
  • Super-Blademaster
  • *****
  • Posts: 4069
  • Total likes: 160
  • Crypt Lord King
    • View Profile
  • B.net Account: WorpeX
  • Coins: 100
  • Country: USA
  • Race: Undead
Re: [mmt Release] FMLReplayDownloader v1.0
« Reply #1 on: November 26, 2017, 09:16:14 am »
Sick. Nice work!