Author Topic: [Fixed] r4338: Rejoin: Duplicate savegame download?  (Read 829 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[Fixed] r4338: Rejoin: Duplicate savegame download?
« on: 30 May 2013, 21:02:09 »
When Filux and I were testing r4338 tonight with rejoin enabled, I was reconnecting to his server a couple times. Every time I reconnected / rejoined his game, two file downloads were shown, both of which seemed to be savegame files, one with a .XML and one with a .ZIP file extension. Is it possible that the .XML file should have been removed when .ZIP was introduced but this was forgotten? Or are these just different files?

« Last Edit: 31 May 2013, 02:16:52 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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r4338: Rejoin: Duplicate savegame download?
« Reply #1 on: 31 May 2013, 15:39:20 »
Try again and see if this is reproducible. Special note of you click cancel during save game download it will now disconnect you.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Rejoin: Duplicate savegame download?
« Reply #2 on: 31 May 2013, 16:45:43 »
This was reproducible yesterday (reproduced twice, so 3 times overall). Cancelling wasn't possible the way we tested yesterday, since the download was too quick either way. I'll try next time I get a chance to do it.
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 · · ·

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Rejoin: Duplicate savegame download?
« Reply #3 on: 1 June 2013, 19:15:56 »
Filux and I tried again today. He was hosting, I was joining the game which he had started some minutes ago.
The first time I tried to join I cancelled the savegame download and was disconnected as a result.
The second time I tried to join I let the savegame download finish and joined properly.
However, there were still two file downloads both times, looking exactly as on the screenshot above.
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: Rejoin: Duplicate savegame download?
« Reply #4 on: 1 June 2013, 23:56:04 »
retest on 4357, thanks

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Rejoin: Duplicate savegame download?
« Reply #5 on: 2 June 2013, 01:19:04 »
Atze (host) and I just tried again on r4357. Now the names of the files you download when joining have changed.

Previously:
megaglest-saved-client.xml
megaglest-saved-client.zip

Now:
megaglest-saved-client.zip
megaglest-saved-server.zip

After clicking "Play now!" the game now stalls for some seconds on the client. That's probably while the server is taking a savegame and compressing it. This used to be faster, I think, and if it will keep freezing then it would be good to post a message to the client saying "please stand by, dumping, downloading and restoring savegame" or something. It's also unclear whether the download of megaglest-saved-server.zip (second file) finishes before the join process starts. (It probably does but the download is quick.)

Screenshot:



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: Rejoin: Duplicate savegame download?
« Reply #6 on: 2 June 2013, 05:01:43 »
Should be fixed in 4358.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r4338: Rejoin: Duplicate savegame download?
« Reply #7 on: 2 June 2013, 05:43:51 »
Yes, it downloads only one file now, and so fast that I couldn't tell which (testing on localhost, though). [Fixed].
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 · · ·