Author Topic: How does multiplayer check work?  (Read 1115 times)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
How does multiplayer check work?
« on: 6 January 2012, 04:53:18 »
Just a quick question, when Megaglest checks to see if data is the same between clients, what exactly is checked? Does it check to see if all files have the same size or date created? Does it check all files or certain file types? For example If the file names are the same, would it be possible to have one player have different sound fx than another?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: How does multiplayer check work?
« Reply #1 on: 6 January 2012, 05:48:17 »
The xml's are the main thing (but also map files). I think sound files would not matter. We check the CRC of the files to ensure they match exactly

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: How does multiplayer check work?
« Reply #2 on: 6 January 2012, 18:20:40 »
The xml's are the main thing (but also map files). I think sound files would not matter. We check the CRC of the files to ensure they match exactly

Thanks softcoder!

Would doing such a thing cause any out of sinc errors?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: How does multiplayer check work?
« Reply #3 on: 6 January 2012, 21:46:24 »
Sound files and images won't cause out of synch.

Thanks

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: How does multiplayer check work?
« Reply #4 on: 6 January 2012, 23:21:12 »
Sound files and images won't cause out of synch.

Thanks
So basically only the XMLs are checked?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: How does multiplayer check work?
« Reply #5 on: 7 January 2012, 08:04:26 »
xml and map files

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: How does multiplayer check work?
« Reply #6 on: 7 January 2012, 18:14:52 »
Thanks again!
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer