Author Topic: [fixed] 3.6.1 (rev 3541) CRC calculation trouble again  (Read 666 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
[fixed] 3.6.1 (rev 3541) CRC calculation trouble again
« on: 1 September 2012, 22:10:37 »
If I have the same tileset in .megaglest/tilesets or in the installation directory I get different CRCs for the same tileset . Thats bad ....

Code: [Select]
tscharn@P60-X2:~/Desktop/glest/megaglest/megaglest/mk/linux$ ./megaglest --show-tileset-crc=volcanic_island
megaglest v3.6.1-dev
Compiled using: GNUC: 40403 on: Sep  1 2012 21:21:33
SVN: [Rev: 3535:3537M] - using STREFLOP [SSE] - [no-denormals]
CRC value for tileset [volcanic_island] is [2487422969]
tscharn@P60-X2:~/Desktop/glest/megaglest/megaglest/mk/linux$ ./megaglest --show-tileset-crc=volcanic_island
megaglest v3.6.1-dev
Compiled using: GNUC: 40403 on: Sep  1 2012 21:21:33
SVN: [Rev: 3535:3537M] - using STREFLOP [SSE] - [no-denormals]
CRC value for tileset [volcanic_island] is [679878642]

« Last Edit: 20 September 2012, 11:35:32 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.6.1 (rev 3541) CRC calculation trouble again
« Reply #1 on: 18 September 2012, 10:16:21 »
Let me know if this still happens (you cannot rename the tileset as this would change the CRC).

Thanks

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: 3.6.1 (rev 3541) CRC calculation trouble again
« Reply #2 on: 18 September 2012, 21:12:29 »
There is still some strange behaviour:

The crc which is displayed now with:
./megaglest --show-tileset-crc=volcanic_island

is always the same no matter where the tileset volcanic is, but in the mods menu its still marked as dirty when I move the tileset ( and its 7zip) to the installation directory.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: 3.6.1 (rev 3541) CRC calculation trouble again
« Reply #3 on: 18 September 2012, 23:54:06 »
Should be all fixed now (we only looked in userdata folders for data to calc crc's since the likelyhood of having something in the mod menu that matches the main game data folder would be rare. I now added some code to check also main game data folders if the userdata folders do not have the data.