HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom creation of a w3x

05-06-2005, 01:25 AM#1
Sysiu
1st of all, I know what mpq is. I have a lot of mpq tool like mpq workshop, winmpq, powermpq, qmpq, mpq2k, ... etc
I know how to extract, flush, add... I know how to play with listfile, merge, etc...
I know there is difference between new storm.dll and the old one.
---------------------------
Problem comes here.

If I edit a w3x file, warcraft3 can play it whatever how I change file in it.
However, If I create a w3x by the mpq tool myself, warcraft3 cannot read it. And most of the modding tools say, its not a valid war3 map.

What do I need to do, to create a w3x when I have all the data file (j, doo, w3u, w3e, w3i, etc)
05-06-2005, 09:58 AM#2
BlacKDicK
The war3 maps have a 512 bytes header before the mpq starts. When you create the mpq with WinMpq for instance, this header is not included. You need to copy this header from the original w3x, try using an Hex Editor.
05-06-2005, 11:58 AM#3
Sysiu
Let me do more experiment. thanks for the infomation.
well, I'd started to get the hint from my experiment, just I'm too lazy to accept this fact

=0=,, If a mpq software can do it, it will be great.

thanks again.
05-06-2005, 01:36 PM#4
Sysiu
Hence, where can I find the spec for that 512 bytes?
The spec for the w3m, w3x contains the data about this 512bytes but it seems not to be the same from what I've seen...
05-07-2005, 03:01 AM#5
BlacKDicK
I think WInMpq can do that: save the old header and inject it onto a new MPQ. Open WinMPq and locate the "mpq embedder" thing.
05-07-2005, 09:09 AM#6
Sysiu
if you want to attach the header with a mpq session, u just need to type
copy /b header.bin+customMap.w3x target.w3x

i am trying to write a java script to generate the header for me.
(so i do copy n paste in the hex editor)
I can select what options I want there.

Something funs when I was testing.
The integer after the flag is the max player number.
I find that, it can be changed to be zero, or to a higher number(9999 etc)!
If we make it zero, the map will be sort on the top in the map list shown on the page you create game.

will that "number" affect player joining?
05-14-2005, 09:32 PM#7
Guest
hey i am trying to make a game called pokemon adventure based on pokemon red and blue map, i was wondering if anyone knows how to make a pokeball catch without the soul stell item...
05-16-2005, 08:07 PM#8
earths-fury
Quote:
Originally Posted by Covena
hey i am trying to make a game called pokemon adventure based on pokemon red and blue map, i was wondering if anyone knows how to make a pokeball catch without the soul stell item...

this is NOT the place to ask.