ontheroadtonull Posted March 24, 2018 Posted March 24, 2018 (edited) 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 March 27, 2018 by ontheroadtonull
BitMaster Posted March 24, 2018 Posted March 24, 2018 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 - Sapphire Nitro+ 7800XT - 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 XG27ACG QHD 180Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X
ontheroadtonull Posted March 25, 2018 Author Posted March 25, 2018 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 ? Yes, absolutely. If I'm taking too long to reply, send me a PM on Reddit. I have the same name there.
BitMaster Posted March 25, 2018 Posted March 25, 2018 (edited) 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 March 25, 2018 by BitMaster Gigabyte Aorus X570S Master - Ryzen 5900X - Gskill 64GB 3200/CL14@3600/CL14 - Sapphire Nitro+ 7800XT - 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 XG27ACG QHD 180Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X
lazduc Posted March 25, 2018 Posted March 25, 2018 Bit, When a patch/fix/update is posted for 2.5 beta, does that effect 1.5.8? How stable is 1.5.8xx? What does grabbing torrent files do for the updater that I am effected by? Thanks Laz
BitMaster Posted March 25, 2018 Posted March 25, 2018 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 - Sapphire Nitro+ 7800XT - 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 XG27ACG QHD 180Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X
ontheroadtonull Posted March 26, 2018 Author Posted March 26, 2018 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. For a bittorrent client, I like Deluge.
BitMaster Posted March 26, 2018 Posted March 26, 2018 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 - Sapphire Nitro+ 7800XT - 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 XG27ACG QHD 180Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X
LevelPulse Posted March 26, 2018 Posted March 26, 2018 Mind creating a video tutorial as i'm more of a visual learner? Thanks and really cool thing you've done here. [sIGPIC][/sIGPIC] Director | Team Coordinator ME-163B Project The DCS Modding Hub Discord PC Specs: Intel I7 8700k 4.7Ghz Gigabyte Aorus Ultra Gaming Z370 Motherboard 16GB Corsair Vengeance DDR4 3000MHz Ram 500GB Samsung Evo 850 SSD
ontheroadtonull Posted March 27, 2018 Author Posted March 27, 2018 Mind creating a video tutorial as i'm more of a visual learner? Thanks and really cool thing you've done here. I'll try to. I'll send a PM and update the first post if I succeed.
McMicha Posted March 27, 2018 Posted March 27, 2018 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
BitMaster Posted March 27, 2018 Posted March 27, 2018 :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 - Sapphire Nitro+ 7800XT - 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 XG27ACG QHD 180Hz - Corsair K70 RGB Pro - Win11 Pro/Linux - Phanteks Evolv-X
ontheroadtonull Posted March 28, 2018 Author Posted March 28, 2018 You can leave them up. Eventually they'll error out as they get removed from the tracker after a period of time. Torrents that error out you can safely delete.
ontheroadtonull Posted March 28, 2018 Author Posted March 28, 2018 (edited) 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 March 28, 2018 by ontheroadtonull
DracoLlasa Posted March 18, 2019 Posted March 18, 2019 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
DracoLlasa Posted April 10, 2019 Posted April 10, 2019 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
Recommended Posts