Author Topic: [fixed] cannot switch tileset with headless server (svn 2682)  (Read 667 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
If you connect to a headless server and you are the first you can control the settings. But if the server( or client too) has some special mods installed you often cannot switch some settings anymore.
For examples we were not able to toggle through all tilesets.
« Last Edit: 22 October 2011, 01:03:40 by softcoder »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: cannot switch tileset with headless server (svn 2682)
« Reply #1 on: 21 October 2011, 23:30:49 »
This also happens for maps. On r2688, when I connect to a headless server, I can not choose between more than two maps. The server has all default maps installed (none from mode menu) and the client has all default maps, those from mod menu, and some additional maps installed.
I think map switching actually used to work but may have gone broken when the other issue where you could select maps which are not available on the server (but only on the client) was 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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: cannot switch tileset with headless server (svn 2682)
« Reply #2 on: 22 October 2011, 00:20:52 »
Try svn rev 2690 (added a 2 second delay when sending out changes to server). Server will revert to what it had before the new settings if any data item is invalid, but the 2 second delay should give time to toggle past data items the server does not have.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: [fixed] cannot switch tileset with headless server (svn 2682)
« Reply #3 on: 23 October 2011, 16:22:03 »
Thanks. This works for me now.

I feel there is room for improvement here, though. It would be way better if server and admin client would synch what they have available in advance, and only make available/selectable what's available on both server and admin client.

For the future, admin clients should also be able to download missing data from the server, and possibly upload to the server, too (this would need to be an ini option for security).
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 · · ·