Author Topic: [fixed] r4338: If client denies download prompt, ask him again  (Read 798 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Currently, when a user connects to a hosted server and lacks a mod setup there, he gets a download prompt. If he decides not to download it then he remains connected, and all other players receive a repeated warning saying that this player is missing this mod.

This is not very useful the way it is now: If the user decides not to download the mod then he won't be able to play on this server. So you could argue that clients who deny mod downloads should be disconnected. However, the server admin may decide to take this into account and instead set to a mod this user actually has, so that no download will be necessary.

So I suggest to solve this as follows: the client should check in regular intervals (maybe every 5-10 seconds) whether all the mods needed are available. And, taking into account changes the server admin made, whenever any mods are unavailable on the client, the download prompt should be displayed there (again). So denying a download will then only result in the prompt vanishing until the next mod check unless the server admin has already changes to a mod which the client does have available.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r4338: If client denies download prompt, ask him again
« Reply #1 on: 31 May 2013, 19:35:15 »
This should be done now in svn after 7 seconds and still missing data.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: If client denies download prompt, ask him again
« Reply #2 on: 1 June 2013, 19:06:47 »
Good solution, thank you.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·