Author Topic: [done] Techtree downloads from modmenu first.  (Read 1545 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
[done] Techtree downloads from modmenu first.
« on: 31 January 2012, 23:26:17 »
If you open a multiplayer game with another techtree many people join your game and want to download the techtree ( from my computer ).
Wouldn't it be better first trying to download the techtree from the mod repository ? Same for maps/tilesets .
« Last Edit: 15 October 2012, 22:42:40 by softcoder »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Techtree downloads from modmenu first.
« Reply #1 on: 2 February 2012, 16:09:14 »
If you have an Internet and not a LAN connection between the client and server then this probably makes sense. Keep in mind that there can be LAN games with no Internet access. We should also consider the possibility that bandwidth between the client on the one hand and either the master and download servers on the other hand can be worse than that between the client and a nearby Internet gameserver).
Because of this and other considerations: If the functionality you describe is going to be implemented then there should probably be a 'prefer Internet downloads' (or similar) option.
« Last Edit: 2 February 2012, 16:16:58 by tomreyn »
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 · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Techtree downloads from modmenu first.
« Reply #2 on: 3 February 2012, 10:49:32 »
The idea was to give the user the option:
We alread ask if he wants to download or not, so it should be easy to ask:

Techtree is missing do you want to download it from:
(modcenter)  (current server)  (no download)

Things to keep in mind:
1. the mod is maybe NOT on the modcenter, so the option (from modcenter) should not be shown in this case
2. Internet is not reachable, just local LAN
3. When the user selects (current server) it might fail, because the current server blocks techtree downloads in the internet( which should be the default if you ask me ) . In this case we have to ask again? Or can the client ask the server if he allows downloads?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Techtree downloads from modmenu first.
« Reply #3 on: 20 February 2012, 00:13:30 »
I have added the possibility to easily add multiple buttons to a GraphicMessageBox and I started to look at how the download works.
there are two problems for me :
1.( for me ) it looks like the current implementation is not based on libcurl but a miniftp client. I think this will not work for the masterserver featured download as URLs might point to http servers too.

2. how is the URL given to the download thread (I don't get it :-/)
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

uncle

  • Guest
Re: Techtree downloads from modmenu first.
« Reply #4 on: 26 February 2012, 12:08:07 »
Good idea.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Techtree downloads from modmenu first.
« Reply #5 on: 15 October 2012, 12:49:47 »
I tried it already and gave up. Maybe softcoder can help ?  :angel:
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Techtree downloads from modmenu first.
« Reply #6 on: 15 October 2012, 22:42:26 »
Try svn, if the mod center has the item it will show in the messagebox, otherwise it will not offer to download from the mod center

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: [done] Techtree downloads from modmenu first.
« Reply #7 on: 16 October 2012, 19:02:12 »
If you choose to download form modcenter you get two progress bars, but only one is used. The other one stays there forever...
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: [done] Techtree downloads from modmenu first.
« Reply #8 on: 16 October 2012, 19:15:28 »
Please offer all steps to reproduce exactly the issue, i did not get dual progress bars so please give the steps (and maybe screenshot).

Thanks

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: [done] Techtree downloads from modmenu first.
« Reply #9 on: 16 October 2012, 20:30:57 »
  • Host a game with a server with "ultrapack" .
  • Connect with a client who does not have the ultrapack.
  • Click "download from Modcenter"

then you will see something like this:
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: [done] Techtree downloads from modmenu first.
« Reply #10 on: 16 October 2012, 21:13:22 »
Thanks, this only happened for techtrees and tilesets (i tested maps). Fixed in svn now.