| 05-17-2006, 07:32 AM | #1 |
what program will i use to edit map headear |
| 05-17-2006, 07:33 AM | #2 |
-_- Uhm..be more clear please? |
| 05-17-2006, 07:42 AM | #3 |
a program that could edit the icon and the number.. see this.. http://wc3campaigns.com/showthread.php?t=83231 |
| 05-17-2006, 07:59 AM | #4 |
It was said in that thread that the info you want to edit is in the map header. Use a Hex Editor. I have never done this myself before, so I don't know exactly what you should edit. Read the file specs stickied in this forum, I think it is written there. |
| 05-17-2006, 08:06 AM | #5 |
i used xvi32 but can't find the 0x0001 Here is the header format (fixed size = 512 bytes): char[4]: file ID (should be "HM3W") int: unknown string: map name int: map flags (these are exactly the same as the ones in the W3I file) 0x0001: 1=hide minimap in preview screens 0x0002: 1=modify ally priorities 0x0004: 1=melee map 0x0008: 1=playable map size was large and has never been reduced to medium 0x0010: 1=masked area are partially visible 0x0020: 1=fixed player setting for custom forces 0x0040: 1=use custom forces 0x0080: 1=use custom techtree 0x0100: 1=use custom abilities 0x0200: 1=use custom upgrades 0x0400: 1=map properties menu opened at least once since map creation 0x0800: 1=show water waves on cliff shores 0x1000: 1=show water waves on rolling shores int: max number of players followed by 00 bytes until the 512 bytes of the header are filled. Here is the footer format (optional): char[4]: footer sign ID (should be "NGIS" == 'sign' reversed) byte[256]: 256 data bytes for authentification. I don't know how they are used at the moment. ![]() |
| 05-17-2006, 10:02 AM | #6 |
It isn't necessarily 0x0001 These flags are added up and alltogether stored in the map flags int. |
| 05-17-2006, 10:14 AM | #7 |
where can i locate the mapflags |
| 05-17-2006, 12:38 PM | #8 | |
You already posted where the map flags are to be found: Quote:
At offset 8 + StringLength(map name) If you want to find them in the w3i file, check out the w3i specs. |
| 05-17-2006, 02:15 PM | #9 |
after the map's name there is a 00 byte (end of the string) after that there are 4 bytes that form the int that holds the bitflags. The next 4 bytes are an integer that represents the number of players, and then a bunch of 00 until the header ends |
| 05-17-2006, 03:01 PM | #10 |
vex sorry.. but i opened my map at xvi32 and edited the byte after the maps name into number of players.. it worked! but how can I edit in changing it to non melee type of map.. |
| 05-17-2006, 03:02 PM | #11 |
read the first part of my post |
| 05-18-2006, 12:56 AM | #12 |
thread closed.. thank you for all your help |
