Jump to content

Grabbing DCS torrent files


ontheroadtonull

Recommended Posts

Those among us who help out by hosting DCS files on seedboxes don't have a regular means to get up-to-date torrent files.

 

So I searched around and found a Windows Powershell script for monitoring a folder for .torrent files as they are created. The script will detect when .torrent files are written and then copy them to a folder of your choosing. So here it is:

 

$folder = 'C:\Program Files\Eagle Dynamics\DCS World OpenBeta\_downloads'
$filter = '*.torrent'
$destination = 'C:\DCSTorrent'
$fsw = New-Object IO.FileSystemWatcher $folder, $filter -Property @{
IncludeSubdirectories = $true
NotifyFilter = [iO.NotifyFilters]'FileName, LastWrite'
}
$onCreated = Register-ObjectEvent $fsw Created -SourceIdentifier FileCreated -Action {
$path = $Event.SourceEventArgs.FullPath
$name = $Event.SourceEventArgs.Name
$changeType = $Event.SourceEventArgs.ChangeType
$timeStamp = $Event.TimeGenerated
Write-Host "The file '$name' was $changeType at $timeStamp"
Copy-Item $path -Destination $destination -Force -Verbose
}

 

The folder C:\Program Files\Eagle Dynamics\DCS World Openbeta\ is the default install folder for 2.5 open beta.

 

The subfolder _downloads is where DCS updater puts data while it is downloading it. When it starts the bittorrent client it creates a folder called .torrent and puts all torrent files in there. DCS updater usually deletes all content within the _downloads folder after it finishes, so the .torrent folder is usually not present. The script will error out if you specify a folder that doesn't exist.

 

You can specify your own custom destination by editing the $destination variable. Whichever folder you specify will be the destination for the .torrent files.

 

There's no need to alter anything other than $folder and $destination

 

Instructions:

Copy the contents of the script and paste it into a new text file (using notepad, notepad++, or sublime text) and save the file as DCS.ps1

Create a folder for the destination. If you didn't make any changes to the script, create a folder named DCSTorrent on your C: drive.

 

You can run the script from PowerShell ISE. Use the following command.

 

powershell -NoExit -executionpolicy bypass -File '.\DCS.ps1'

 

The script will remain active until you terminate it with the key combination CTRL + c

 

You can run the script in PowerShell, rather than PowerShell ISE. If you do, terminate the script by entering the following command.

 

Unregister-Event -SourceIdentifier FileCreated

 

Once the script is running, run the program Update DCS World OpenBeta.

 

As the torrent download starts, you will see messages appear in Powershell regarding which files are being processed. If all is working you will see .torrent files appear in your destination folder as well.

 

I'm a noob at powershell so if someone knows a better way to accomplish this I'd sure like to hear it.


Edited by ontheroadtonull
Link to comment
Share on other sites

Gonna give this a try and make use of my new cable ISP. Running 24/7 anyway, might as well serve the community with it.

 

Can I PM you for questions if they arise ?

Gigabyte Aorus X570S Master - Ryzen 5900X - Gskill 64GB 3200/CL14@3600/CL14 - Asus 1080ti EK-waterblock - 4x Samsung 980Pro 1TB - 1x Samsung 870 Evo 1TB - 1x SanDisc 120GB SSD - Heatkiller IV - MoRa3-360LT@9x120mm Noctua F12 - Corsair AXi-1200 - TiR5-Pro - Warthog Hotas - Saitek Combat Pedals - Asus PG278Q 27" QHD Gsync 144Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X 

Link to comment
Share on other sites

OK, got it working.

 

At first I thought it was ok to download another beta and have the installer copy the files from my current installs, well, that does not work.

 

I renamed my current installs for now and forced the installer to actually dl it all.

 

Once I have both versions downloaded I will look for a client to upload. Which one do you use ? The original bittorrent client or another one ? Havent done much with it lately.

 

 

edit:

it's running :) all good


Edited by BitMaster

Gigabyte Aorus X570S Master - Ryzen 5900X - Gskill 64GB 3200/CL14@3600/CL14 - Asus 1080ti EK-waterblock - 4x Samsung 980Pro 1TB - 1x Samsung 870 Evo 1TB - 1x SanDisc 120GB SSD - Heatkiller IV - MoRa3-360LT@9x120mm Noctua F12 - Corsair AXi-1200 - TiR5-Pro - Warthog Hotas - Saitek Combat Pedals - Asus PG278Q 27" QHD Gsync 144Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X 

Link to comment
Share on other sites

I havent run 1.5.x for months other than short testing. It's supposed to be "stable".

 

I dont understand what you mean with what does it do for your updater.

Seeding the files is nothing you need to do as a gamer/enduser or need to take care about.

This is just to distribute the installer files as an additional seed, the more seeders the faster and more reliable the network works. Since I run this rig 24/7 anyway I thought I give it a try.

The UL rate is somehwere around 25-50MBit, hardly ever under 20Mbit/sec...not bad.

Gigabyte Aorus X570S Master - Ryzen 5900X - Gskill 64GB 3200/CL14@3600/CL14 - Asus 1080ti EK-waterblock - 4x Samsung 980Pro 1TB - 1x Samsung 870 Evo 1TB - 1x SanDisc 120GB SSD - Heatkiller IV - MoRa3-360LT@9x120mm Noctua F12 - Corsair AXi-1200 - TiR5-Pro - Warthog Hotas - Saitek Combat Pedals - Asus PG278Q 27" QHD Gsync 144Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X 

Link to comment
Share on other sites

Thanks, currently using the original BT client but it keeps spamming me with popups and slide-ins..cant put up with it.

 

Will give it a try.

 

90GB since yesterday, seems to have slowed down a bit on mondays..haha

Gigabyte Aorus X570S Master - Ryzen 5900X - Gskill 64GB 3200/CL14@3600/CL14 - Asus 1080ti EK-waterblock - 4x Samsung 980Pro 1TB - 1x Samsung 870 Evo 1TB - 1x SanDisc 120GB SSD - Heatkiller IV - MoRa3-360LT@9x120mm Noctua F12 - Corsair AXi-1200 - TiR5-Pro - Warthog Hotas - Saitek Combat Pedals - Asus PG278Q 27" QHD Gsync 144Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X 

Link to comment
Share on other sites

Hello,

 

there's another way to get to the torrent files.

 

We have a mailling list for those who want to seed. PM me with your email if you are interested.

 

Another option is to keep torrent files after the update and seed from them directly. But this should be set up before the update. If you are interested, I can post the details.

Unzip the attached file to the root of your DCS install folder.

It will create the autoupdate_dev.cfg file, with the contents:

{
"keep_torrents": true
}

This will tell the updater to keep all torrent-related files in the _downloads/ folder.

You can seed directly from there.

Simpit Software by SDA "SIMPIT DEVELOPER ASSOCIATION"

  • DCS ExportScript
  • D.A.C. DCS to Arcaze Communicator
  • Ikarus a new Virtual Cockpit Software

Deutscher Forums Thread

English Forums Thread

 

Hard/Software: AMD Ryzen 7 1800X, 32 GiB RAM, extra SSD for Windows 10 and DCS World, AMD Vega Frontier Edition with 16 GiB VRAM

Link to comment
Share on other sites

:doh:

 

Ohh haha, took me a while to figure it all out, tho I still have some questions.

 

What do we do with superseeded files ? Leave them for older builds/versions ?

 

I copied all torrents that the script gathered into BT-Client, downloaded them and keep seeding them in BT-Client...passed the 250GB landmark in 2 days...nice.

But what shall I do once a new update comes out ? Just add those new downloaded files to the ones I already seed ?

Gigabyte Aorus X570S Master - Ryzen 5900X - Gskill 64GB 3200/CL14@3600/CL14 - Asus 1080ti EK-waterblock - 4x Samsung 980Pro 1TB - 1x Samsung 870 Evo 1TB - 1x SanDisc 120GB SSD - Heatkiller IV - MoRa3-360LT@9x120mm Noctua F12 - Corsair AXi-1200 - TiR5-Pro - Warthog Hotas - Saitek Combat Pedals - Asus PG278Q 27" QHD Gsync 144Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X 

Link to comment
Share on other sites

Hello,

 

there's another way to get to the torrent files.

 

This is excellent info.

 

I'm already a member of the seedbox mailing list. The issue with the seedbox mailing list is that it's manually updated by c0ff and it's not a part of his regular tasks, so he doesn't update it regularly.

 

The second bit is incredibly useful. Thanks for pointing it out.


Edited by ontheroadtonull
Link to comment
Share on other sites

  • 11 months later...

I was reading through this thread as i have been trying to find how to keep and seed the torrent files. It seems during an update, the the one from today the updater will pull about 71 torrent files, but the contents are only the diffs needed for the update.

 

How is it best done for those of us that want to try and share our bandwidth and seed the files?

 

i could in theory perform a new install and grab the torrent files from that, but it seems that they are all replaced with deltas? im just not sure how to maintain the seeding and ensure i get all of the correct files?

 

Is there any additional direction besides the way noted to retain the _Downloads folder and its contents (.torrents and the files)?

[sIGPIC][/sIGPIC]

i5 8600K OC @ 5.0GHz w/ Corsair H100i Liquid Cooler| MSI GTX 1080 OC Edition | 32GB DDR4 3600 | EVO 960 NVMe SSD | WD Black NVMe SSD

Win10 X64 | TrackIR 5 | HTC Vive | Thrustmaster Warthog HOTAS and Cougar MFDs | Saitek Combat Pedals

Link to comment
Share on other sites

  • 4 weeks later...
I was reading through this thread as i have been trying to find how to keep and seed the torrent files. It seems during an update, the the one from today the updater will pull about 71 torrent files, but the contents are only the diffs needed for the update.

 

How is it best done for those of us that want to try and share our bandwidth and seed the files?

 

i could in theory perform a new install and grab the torrent files from that, but it seems that they are all replaced with deltas? im just not sure how to maintain the seeding and ensure i get all of the correct files?

 

Is there any additional direction besides the way noted to retain the _Downloads folder and its contents (.torrents and the files)?

 

bump

 

anyone able to tell me how i can best help by seeding the content?

[sIGPIC][/sIGPIC]

i5 8600K OC @ 5.0GHz w/ Corsair H100i Liquid Cooler| MSI GTX 1080 OC Edition | 32GB DDR4 3600 | EVO 960 NVMe SSD | WD Black NVMe SSD

Win10 X64 | TrackIR 5 | HTC Vive | Thrustmaster Warthog HOTAS and Cougar MFDs | Saitek Combat Pedals

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...