| 09-08-2009, 11:42 AM | #1 |
Hi there, I'm trying to override the mapname maximum (I want to add color to the version number). I found the mapname in the .wts file and changed it there. The mapname was not changed in the maplist, but when I clicked the map, the display on the right DID show the colorchange. I also tried changing the name in the wts file (not only color), but this crashes the game upon clicking the map. I searched the entire w3x, but couldnt find my mapname anywhere. Where is it lodged, and is it possible to go over the charlimit? -inf |
| 09-08-2009, 01:03 PM | #2 |
It's located by offset $08 from the beginning of file. In theory, map name string can be of 495 length. 512 bytes (map header) - 1 byte (null char #00 for string) - 4 bytes (sign HM3W) - 4 bytes (some flag) - 4 bytes (other flag) - 4 bytes (player count). But real map name length is 108 (including null char). WE have limitation of 36 symbols due to UTF-8. If you use only English letters, numbers and some symbols - you can override this limit. |
| 09-08-2009, 02:14 PM | #3 |
nothing to add. use any HEX editor on map archive and change what you like (also you can set player number to negative - map will be first in list) |
| 09-08-2009, 02:15 PM | #4 |
Thanks, that fixed it :) |
