Map checksum

This is a discussion on Map checksum within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; If I understood right then a map has at its end a checksum which is a hashvalue of some files ...

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    mumbl is offline Wannabe Member
    Array
    Join Date
    May 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0

    Map checksum

    If I understood right then a map has at its end a checksum which is a hashvalue of some files of the map.

    In earlier wc3 versions there was the tool Auto Collider which made different maps generate the same checksum by adding comments or some other stuff to them.



    Now I heard its not possible anymore in the new versions of wc3.

    So my questions are which files in the map are used to generate the checksum and why auto colliding or colliding at all is not possible anymore.

  2. #2
    Farid.Agl's Avatar
    Farid.Agl is offline Advanced Hacker

    Array
    Join Date
    Sep 2011
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    322
    I wonder why nowadays people care this much about f**king maps, removing its protection etc.
    http://faridaghili.ir

  3. #3
    mumbl is offline Wannabe Member
    Array
    Join Date
    May 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Im not interested in removing the protection of any specific map, its just curiosity to every aspect of warcraft.

  4. #4
    MountainDew's Avatar
    MountainDew is offline Mentor
    Array
    Join Date
    Feb 2012
    Posts
    138
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    154
    The files used to generate the checksum are the jass script file, environment file, the pathing file, and I think a few others. I'm not at my computer right now so I can't look any of it up. Actually my old computer is dead, so if you gave me a list of the files you're interested, I could point out the ones that create the checksum.

    All the other files can be edited though, so you CAN still collide maps, but only by editing the local files. I believe you can't edit the other files, like the jass script file, because wc3 checks the length and size of the file to create a hash. You can find out how the checksum is created by looking at a GHost source.

  5. #5
    mumbl is offline Wannabe Member
    Array
    Join Date
    May 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Hm what do you mean with 'Used to'? Is there more detailed information which files are used currently?

    And the length of the files is checked since the new versions of wc3? Does anybody know what algorithm is used now?

    Still thanks, Im gonna give reading GHost source a try.

  6. #6
    MountainDew's Avatar
    MountainDew is offline Mentor
    Array
    Join Date
    Feb 2012
    Posts
    138
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    154
    By "used to", I mean "the files that are used in order to generate the checksum are".

    There is a list of the files that are used, but I can't seem to find it atm. I'd know them if I saw them though.

    You can find the algorithm in the GHost source files. It will be in the file that loads a map from the !map command. I looked at it real quick, and basically saw that it gathered information from the length of the required files, as well as the size.

  7. #7
    mumbl is offline Wannabe Member
    Array
    Join Date
    May 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Just browsing them, can you say the filename?

  8. #8
    MountainDew's Avatar
    MountainDew is offline Mentor
    Array
    Join Date
    Feb 2012
    Posts
    138
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    154
    No, I don't know the file names, lol.

    I'm saying that if you listed your maps directory, I can point out the files that you CAN'T edit, meaning you can edit the other ones all you want.

    They are the main files, with extensions that start with .w3

    So like w3o, w3d, w3q

  9. #9
    mumbl is offline Wannabe Member
    Array
    Join Date
    May 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    ah ok.

    But I meant actually the filename of the file that holds the hash algorithm in GHost source !

  10. #10
    MountainDew's Avatar
    MountainDew is offline Mentor
    Array
    Join Date
    Feb 2012
    Posts
    138
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    154
    It's in multiple files I believe. You can start tracing it in the bnet.cpp file I think, under the !map command.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •