diff --git a/doc/LinuxServerSetup.md b/doc/LinuxServerSetup.md index be81083275..f1b7b12f34 100644 --- a/doc/LinuxServerSetup.md +++ b/doc/LinuxServerSetup.md @@ -97,6 +97,19 @@ tar -cf - -C "PATH/TO/DATADIR" dbc gt maps vmaps cameras | ssh root@SERVER_IP "m (~680 MB.) +If the game client is on the Linux machine itself (for example a desktop running the game under Proton or Wine), the data can be +extracted there instead. The extractors are only built with `-DTOOLS=1`, so configure with it (step 6 turns them off), build, and +point the script at the build's `bin` folder: + +``` +cmake .. -DCMAKE_BUILD_TYPE=Release -DTOOLS=1 -DWITH_WARNINGS=0 +make -j2 mapextractor vmap4extractor vmap4assembler mmaps_generator +tools/extract_client_data.sh --client-path "/path/to/World of Warcraft/_forever_" --output-path /root/TrinityCore/build/bin +``` + +The data folders then lie in that `bin` folder; copy `dbc`, `gt`, `maps`, `vmaps` and `cameras` (and `mmaps` if made) to the data +folder of step 7. + ## 8. Databases All four databases are created by worldserver's auto-setup on the first start (section 10). diff --git a/tools/extract_client_data.sh b/tools/extract_client_data.sh index 4a3a7c1478..ff3eda1882 100644 --- a/tools/extract_client_data.sh +++ b/tools/extract_client_data.sh @@ -99,7 +99,9 @@ fi for bin in "${required[@]}"; do if [[ ! -x "$OUTPUT_PATH/$bin" ]]; then die "Required binary not found or not executable: $OUTPUT_PATH/$bin -Build the worldserver project first (cmake --build build)." +The extractors are built only with -DTOOLS=1: configure with it, then + cmake --build build --target mapextractor vmap4extractor vmap4assembler mmaps_generator +and pass the build's bin folder as --output-path (doc/LinuxServerSetup.md, step 7)." fi done