Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # site settings
- # $USER = system account name
- ClientDir="/home/$USER/WoW/Client/World of Warcraft"
- DataDir="/home/$USER/WoW/Server/Core/data"
- # specify command line parameter(s) for mmap_generator
- MMapsGenArg="--threads 4"
- # these should only be changed if the tools changed the path names
- # they are only here as a "just in case"
- DBCDir="dbc"
- MAPSDir="maps"
- MMAPSDir="mmaps"
- VMAPSDir="vmaps"
- BLDGDir="Buildings"
- cd "$ClientDir"
- # clean any existing data directories
- if [ -d "$DBCDir" ]; then
- rm -rf "$DBCDir"
- fi
- if [ -d "$MAPSDir" ]; then
- rm -rf "$MAPSDir"
- fi
- if [ -d "$MMAPSDir" ]; then
- rm -rf "$MMAPSDir"
- fi
- if [ -d "$VMAPSDir" ]; then
- rm -rf "$VMAPSDir"
- fi
- if [ -d "$BLDGDir" ]; then
- rm -rf "$BLDGDir"
- fi
- # extract dbc and map files
- ./mapextractor
- cp -r "$DBCDir" "$MAPSDir" "$DataDir"
- # extract vmap files
- ./vmap4extractor
- # create vmaps directory and build core vmaps
- mkdir "$VMAPSDir"
- ./vmap4assembler "$BLDGDir" "$VMAPSDir"
- cp -r "$VMAPSDir" "$DataDir"
- # build mmaps (movement maps) - the longest process
- mkdir "$MMAPSDir"
- ./mmaps_generator $MMapsGenArg
- cp -r "$MMAPSDir" "$DataDir"
Advertisement
Add Comment
Please, Sign In to add comment