mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
add extraction tools.
This commit is contained in:
@@ -22,7 +22,7 @@ NUM_CPU="2"
|
||||
|
||||
## ! Use below only for finetuning or if you know what you are doing !
|
||||
|
||||
USE_AD="0"
|
||||
USE_MAPS="0"
|
||||
USE_VMAPS="0"
|
||||
USE_MMAPS="0"
|
||||
USE_MMAPS_OFFMESH="0"
|
||||
@@ -30,7 +30,7 @@ USE_MMAPS_OFFMESH="0"
|
||||
if [ "$1" = "a" ]
|
||||
then
|
||||
## extract all
|
||||
USE_AD="1"
|
||||
USE_MAPS="1"
|
||||
USE_VMAPS="1"
|
||||
USE_MMAPS="1"
|
||||
else
|
||||
@@ -42,14 +42,14 @@ else
|
||||
if [ "$line" = "y" ]
|
||||
then
|
||||
## extract all
|
||||
USE_AD="1"
|
||||
USE_MAPS="1"
|
||||
USE_VMAPS="1"
|
||||
USE_MMAPS="1"
|
||||
else
|
||||
echo
|
||||
echo "Should dbc and maps be extracted? (y/n)"
|
||||
read line
|
||||
if [ "$line" = "y" ]; then USE_AD="1"; fi
|
||||
if [ "$line" = "y" ]; then USE_MAPS="1"; fi
|
||||
|
||||
echo
|
||||
echo "Should vmaps be extracted? (y/n)"
|
||||
|
||||
BIN
contrib/extract/libmysql.dll
Normal file
BIN
contrib/extract/libmysql.dll
Normal file
Binary file not shown.
BIN
contrib/extract/mapextractor.exe
Normal file
BIN
contrib/extract/mapextractor.exe
Normal file
Binary file not shown.
BIN
contrib/extract/mmaps_generator.exe
Normal file
BIN
contrib/extract/mmaps_generator.exe
Normal file
Binary file not shown.
@@ -26,9 +26,9 @@ EXCLUDE_MAPS=""
|
||||
OFFMESH_FILE="offmesh.txt"
|
||||
|
||||
## Normal log file (if not overwritten by second param
|
||||
LOG_FILE="MoveMapGen.log"
|
||||
LOG_FILE="movemap.log"
|
||||
## Detailed log file
|
||||
DETAIL_LOG_FILE="MoveMapGen_detailed.log"
|
||||
DETAIL_LOG_FILE="movemap_detailed.log"
|
||||
|
||||
## ! Use below only for finetuning or if you know what you are doing !
|
||||
|
||||
@@ -89,20 +89,20 @@ createMMaps()
|
||||
continue 2
|
||||
fi
|
||||
done
|
||||
./MoveMapGen $PARAMS $OFFMESH $i | tee -a $DETAIL_LOG_FILE
|
||||
./mmaps_generator $PARAMS $OFFMESH $i | tee -a $DETAIL_LOG_FILE
|
||||
echo "`date`: (Re)created map $i" | tee -a $LOG_FILE
|
||||
done
|
||||
}
|
||||
|
||||
createHeader()
|
||||
{
|
||||
echo "`date`: Start creating MoveMaps" | tee -a $LOG_FILE
|
||||
echo "`date`: Start creating mmaps_generator" | tee -a $LOG_FILE
|
||||
echo "Used params: $PARAMS $OFFMESH" | tee -a $LOG_FILE
|
||||
echo "Detailed log can be found in $DETAIL_LOG_FILE" | tee -a $LOG_FILE
|
||||
echo "Start creating MoveMaps" | tee -a $DETAIL_LOG_FILE
|
||||
echo "Start creating mmaps_generator" | tee -a $DETAIL_LOG_FILE
|
||||
echo
|
||||
echo "Be PATIENT - This will take a long time and might also have gaps between visible changes on the console."
|
||||
echo "WAIT until you are informed that 'creating MoveMaps' is 'finished'!"
|
||||
echo "WAIT until you are informed that 'creating mmaps_generator' is 'finished'!"
|
||||
}
|
||||
|
||||
# Create mmaps directory if not exist
|
||||
@@ -140,7 +140,7 @@ case "$1" in
|
||||
echo "Recreate offmeshs from file $OFFMESH_FILE" | tee -a $DETAIL_LOG_FILE
|
||||
while read map tile line
|
||||
do
|
||||
./movement_extractor $PARAMS $OFFMESH $map --tile $tile | tee -a $DETAIL_LOG_FILE
|
||||
./mmaps_generator $PARAMS $OFFMESH $map --tile $tile | tee -a $DETAIL_LOG_FILE
|
||||
echo "`date`: Recreated $map $tile from $OFFMESH_FILE" | tee -a $LOG_FILE
|
||||
done < $OFFMESH_FILE &
|
||||
;;
|
||||
|
||||
BIN
contrib/extract/vmap4assembler.exe
Normal file
BIN
contrib/extract/vmap4assembler.exe
Normal file
Binary file not shown.
BIN
contrib/extract/vmap4extractor.exe
Normal file
BIN
contrib/extract/vmap4extractor.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user