Author Topic: Headless (SDL independent) CRC check  (Read 1030 times)

treba

  • Guest
Headless (SDL independent) CRC check
« on: 14 February 2012, 13:48:23 »
hey.

i'm just writing a little script to automatise map downloads from the modserver to my headless one.
but now i'm having a little problem with the crc check, because the unix command cksum gives me totally different values than megaglest, which in turn does still rely on sdl for the crc check command and therefore does not work on a vps.

that's why i want to ask you, the devs, to make the command independent of sdl and/or to give me hint for a compatible crc check that i could use instead.

thanks!

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crc-check
« Reply #1 on: 14 February 2012, 14:14:41 »
If this is a feature request then it should be moved to the forum of the same name. Do you want me to do this?

I agree it could be nice to be able to run the CRC test withoout the overhead of the entire game and its dependencies.

I'm wondering about why you need a CRC check in the specific use case of automating the download of mods from the mod database, though, is it actually needed there?

The 'cksum' command you find on Linux systems as part of GNU coreutils is one which is specified by the POSIX standard and this one is indeed not compatible to the one the game uses (nor those of BSD, System V, Windows CRC32), since its checksumming algorithm differs.
« Last Edit: 14 February 2012, 14:20:50 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 · · ·

treba

  • Guest
Re: crc-check
« Reply #2 on: 14 February 2012, 14:38:10 »
yeah, it would be nice if you could move the thread.

well, the crc check ensures that the map is not damaged during download (or even purposely modified). the same reason why you included it in the game, right?

and by the way: the engineers just said goodbey to the masterserver while still running. but i can't connect to them via ip, so they are defininitly dead. i will change the start script to run with the verbose command

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crc-check
« Reply #3 on: 14 February 2012, 14:50:40 »
yeah, it would be nice if you could move the thread.

well, the crc check ensures that the map is not damaged during download (or even purposely modified). the same reason why you included it in the game, right?

OK, it's moved. And yes, I guess your argument about using the CRC for verifying downloads does make sense, I just wanted to get an idea whether you use it for this or other purposes.

The network outage and its results are discussed elsewhere.
« Last Edit: 14 February 2012, 15:04:50 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 · · ·