• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Extracting a lot of custom maps

Status
Not open for further replies.

jonmii

Enthusiast
Hi all,

i have 5 custom mpq with maps, these mpqs doesnt have listfile.

I edited mapextractor to read these mpqs but i dont know how to edit vmap extractor to load these files too..


Anyone can give any tip on the procedure?
THanks ED
 

slp13at420

Mad Scientist
ok I did this before with WOD maps from I think [MENTION=18]Anthonys-Toolbox[/MENTION] -> tut videos https://www.youtube.com/channel/UCA4guSb6SERhp2-xB9SrOvg

I edited and added my custom mpq files to : \src\tools\map_extractor\System.cpp about line 75:
Code:
// List MPQ for extract from
const char *CONF_mpq_list[]={
    "common.MPQ",
    "common-2.MPQ",
    "lichking.MPQ",
    "expansion.MPQ",
    "patch.MPQ",
    "patch-2.MPQ",
    "patch-3.MPQ",
    "patch-4.MPQ",
    "patch-5.MPQ",
};

I just added my custom mpq's to the list then compiled with tools.

once you have ALL your new map tools you will need to start all over and make all your maps, mmaps, vmaps again . :D
 
Last edited:

jonmii

Enthusiast
Hi all,

i have 5 custom mpq with maps, these mpqs doesnt have listfile.

I edited mapextractor to read these mpqs but i dont know how to edit vmap extractor to load these files too..


Anyone can give any tip on the procedure?
THanks ED




I have done that, but vmap isnt extracting from those mpqs
 

slp13at420

Mad Scientist
hmm I did find something in src\tools\vmap4_extractor\vmapexport.cpp,
it looks like another patch list :
Code:
    // open locale expansion and common files
    printf("Adding data files from locale directories.\n");
    for (std::vector<std::string>::iterator i = locales.begin(); i != locales.end(); ++i)
    {
        pArchiveNames.push_back(in_path + *i + "/locale-" + *i + ".MPQ");
        pArchiveNames.push_back(in_path + *i + "/expansion-locale-" + *i + ".MPQ");
        pArchiveNames.push_back(in_path + *i + "/lichking-locale-" + *i + ".MPQ");
    }

    // open expansion and common files
    pArchiveNames.push_back(input_path + std::string("common.MPQ"));
    pArchiveNames.push_back(input_path + std::string("common-2.MPQ"));
    pArchiveNames.push_back(input_path + std::string("expansion.MPQ"));
    pArchiveNames.push_back(input_path + std::string("lichking.MPQ"));

https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/tools/vmap4_extractor/vmapexport.cpp#L330


I also have this tool that will just run ALL the maps,vmaps and mmaps tools so you don't have to do anything until its all done:
https://github.com/BlackWolfsDen/Toolz/blob/master/Make_ALL_Maps.bat
you just start it and walk away ,, walk away.
 
Last edited:

jonmii

Enthusiast
hmm I did find something in src\tools\vmap4_extractor\vmapexport.cpp,
it looks like another patch list :
Code:
    // open locale expansion and common files
    printf("Adding data files from locale directories.\n");
    for (std::vector<std::string>::iterator i = locales.begin(); i != locales.end(); ++i)
    {
        pArchiveNames.push_back(in_path + *i + "/locale-" + *i + ".MPQ");
        pArchiveNames.push_back(in_path + *i + "/expansion-locale-" + *i + ".MPQ");
        pArchiveNames.push_back(in_path + *i + "/lichking-locale-" + *i + ".MPQ");
    }

    // open expansion and common files
    pArchiveNames.push_back(input_path + std::string("common.MPQ"));
    pArchiveNames.push_back(input_path + std::string("common-2.MPQ"));
    pArchiveNames.push_back(input_path + std::string("expansion.MPQ"));
    pArchiveNames.push_back(input_path + std::string("lichking.MPQ"));

https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/tools/vmap4_extractor/vmapexport.cpp#L330


I also have this tool that will just run ALL the maps,vmaps and mmaps tools so you don't have to do anything until its all done:
https://github.com/BlackWolfsDen/Toolz/blob/master/Make_ALL_Maps.bat
you just start it and walk away ,, walk away.

I use same bat, but even editing that cpp, vmaps arent being extracted, only maps. Players can cast spells and pass walls, i think it caused by vmaps
 

slp13at420

Mad Scientist
do you have vmaps/mmaps turned on in your worldserver.conf ?

I issues with npcs falling into go's and walls until I turned on mmaps/vmaps in my conf file.
 

jonmii

Enthusiast
Yes! I have it enabled, in world config, also in vmap extractor i see the map list that is going to extract, but is not appearing custom maps, like in normal map extractor.
In server it says that cant load vmap when i go a custom map
 
Status
Not open for further replies.
Top