Jump to content
The Dark Mod Forums

Mission downloader which mirror?


datiswous

Recommended Posts

Today I tried downloading 3 different Fan missions. I fired up tcpdump with the intention of capturing all download traffics and opening the saved .pcap/pcapng file in wireshark. These are the results I got:

- Downloading hidden hands blood & metal for the first time :

mirrordownl-HHbn-M.png

- Getting sneak & shouffle FM from official TDM server( previously downloaded but I tried to download again) :

downloadexist.png

- Downloading Terrible Old man :

zK9V9um.png

I can attest that the URL mirror choices can be different.

If we start from the first sequence of clicking the download mission menu and let TDM fetch the list of fan missions from the server, we will find an xml return result together with HTTP 200 OK status :

O0nKDri.png

Nothing appealing from this xml wall of texts.  I had one question in mind: what caused the randomness of the URL mirror choices? For a moment, my eyes were drawn and laser focused to the "weight" attribute. Is it possible that the weight determines the randomness?

Not long afterwards, I skim-read TDM source files in the official TDM's svn repo (honestly I'm not used to reading large codebases) and I found this interesting piece of codes in file called MissionManager.cpp:

rHcatLW.png

vmQ34wa.png

Could this code be a factor of randomness?

*I also skim read directory /missions and /http where some http code is located.

Warning : C++ isn't my strongest forte so take this with a grain of salt. Perhaps official TDM devs could weigh in into this discussion...

Edited by taffernicus
broken img embed fix
  • Like 1

--

Link to comment
Share on other sites

Just like for tdm_installer, the mirror for mission download is selected randomly.

There are also weights intended to distribute traffic across mirrors.
While you might be interested in using the fastest mirror only, controlled random distribution is used because some mirror owners were worried about too much traffic.

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • datiswous

      Beta test(er) tip:
      Test your mission at least once with all lights on. This can be done using notarget in console. Maybe just quickly fly around with noclip.
      Also test all lights which are off by default (enable all lights via script?). Mission testers will miss a lot of light bugs, because they take out lights with water arrows etc. and don't turn on lights so they don't spot light leaks etc. I've seen this now in some recent new missions after they're released.
      · 0 replies
    • Bergante

      welcome back Sotha 🫠
      👻
      · 6 replies
    • JackFarmer

      This site is getting more popular by the day - ca. 870 bots online this morning CET!
      · 2 replies
    • Xolvix

      Personal reminder for me to actually get back to TDM and all the missions I missed.
      · 1 reply
    • JackFarmer

      What is actually grammatically correct when it happens in the future? “Paul Atreides is an idiot” or ‘Paul Atreides was an idiot’? or ‘Paul Atreides will be an idiot’? The latter would at least fit in with the whole psychic and providence stuff!
      · 2 replies
×
×
  • Create New...