Page 1 of 2

how to change the map name

Posted: March 20th, 2009, 11:52 am
by lansmozar
any one can tell me how to change the map name?

Re: how to change the map name

Posted: March 20th, 2009, 4:40 pm
by Ken
There are two parts to this.

Required tools (no links, find them yourself):
- MPQMaster
- XVI32 (Or some other hex editor)
- JassCraft (Optional, but makes it easier to deal with war3map.j)

Changing the load screen title.
Spoiler:
1) Using MPQMaster, or some similar program, extract war3map.j from the map.
2) Open it with JassCraft. Hit Control-F, and search for "function config" without the quotation marks. You'll see something like this.

If it DOES NOT have SetMapName("TRIGSTR_XXXX") then replace the string there, quotation marks in tact, to whatever you want, then skip to step 5. Otherwise, follow steps 3 - 4.

3) Use MPQMaster to extract war3map.wts.
4) Open that file in Notepad and find the number after TRIGSTR. In my example, it's 50000. It should look like this. Change that line to whatever you'd like it to be.

5) Use MPQMaster to reinsert war3map.j/.wts into the map, and in the top menu, hit Operation>Compact(Flush).


Changing the map name in lobby (this)
Spoiler:
1) Open the map with XVI32.
2) Starting at the 9th byte, type out the new map name.
3) Save the file.


If you need more clarification on anything, or you're having trouble, send me a PM or something.

Re: how to change the map name

Posted: March 26th, 2009, 11:52 am
by lansmozar
how can change the map name in here sample below and the loading screen picture

Re: how to change the map name

Posted: March 26th, 2009, 7:25 pm
by itsonlyaname
Just follow the guide FatherSpace posted ?

This is for the name in the game list (where u put the arrow)
FatherSpace wrote:1) Open the map with XVI32.
2) Starting at the 9th byte, type out the new map name.
3) Save the file.

Re: how to change the map name

Posted: April 2nd, 2009, 3:57 am
by lansmozar
where can i get hex editor "XVI32".

Re: how to change the map name

Posted: April 2nd, 2009, 5:01 am
by patrick-the-bomb
gooooooooooogle!!!

Re: how to change the map name

Posted: April 2nd, 2009, 9:12 pm
by Senethior459
We have a copy uploaded to the forum.
http://files.wc3edit.net/download/index.php?f=xvi32.rar

Re: how to change the map name

Posted: April 4th, 2009, 1:09 pm
by lansmozar
how to convert the code to text?

Re: how to change the map name

Posted: April 4th, 2009, 10:15 pm
by Senethior459
XVI32 has two parts to its view, did you notice? The left part shows the bits, in ASCII code numbers, and the right part shows what those bits translate to in plaintext. Just edit the text part on the right, the same way you would edit anything else. Click on the first character you want to change, and either delete the stuff you want to get rid of and type in new stuff, or just turn on overwrite mode and start typing (turning it off, of course, if you're typing more characters than there were originally, so you don't mess up anything: after the title is one character, I think ASCII code 20, which appears as a blank character in the plaintext, and then the author's name, and then the 20-character, and then the description, etc. You don't want to overwrite those parts, just add in the extra characters before the 20-character.)
Also, don't forget that if you add in any extra characters (more than there were before), remove an amount of blank spaces (from between the section of gibberish and text that includes the name, and the letters MPQ, which should be near the bottom of your screen (if you don't scroll anywhere, that is)) equal to the amount of characters you put in. Conversely, if it has less characters than it did before, add an equal amount of blank spaces into that area.
MPQ is supposed to be the 512th character, I believe, so try to keep that true.

Re: how to change the map name

Posted: April 15th, 2009, 2:38 pm
by crucial07
thanks for the guide .. it help me a lot ..



thanks ;-)