The-Cataclysm-Preservation-Project / TrinityCore

Archived repository for WoW 4.3.4.15595. The project will be reworked for Cataclysm Classic as an official new branch of TrinityCore at https://github.com/TrinityCore/TrinityCore
GNU General Public License v2.0
239 stars 97 forks source link

Issue with multiple locale dbc files on Linux #426

Closed Snify89 closed 8 months ago

Snify89 commented 8 months ago

I have the full client with all 14 locales installed. When I extract the dbc files, it creates subdirectories in the dbc folder for each locale. I think there is a bug, cause inside the dbc/[locale] folder the files are named: DBFilesClient\LiquidType.dbc

I think DBFilesClient is an extra subdirectory but it's included in the filename. I am using Linux.

This causes mmaps to fail cause it cant find any dbc files.

How are the different (locale) dbc files related to mmaps? Do I really need different mmaps for each locale?

Ovahlord commented 8 months ago

The MMaps extractor needs dbc files to identify liquids and phased terrain. As for your dbc naming issue: I can't reproduce the issue on windows at all so I cannot test for solutions right now.

Snify89 commented 8 months ago

The MMaps extractor needs dbc files to identify liquids and phased terrain. As for your dbc naming issue: I can't reproduce the issue on windows at all so I cannot test for solutions right now.

It's a Linux issue I guess. The following snippet helps me to rename the dbc files:

for i in $(find /trinity/data/dbc | grep 'DBFilesClient\\')
do
filename=$(basename "$i")
sudo mv "$i" "$(dirname "$i")"/"${filename:14}"
done
Shauren commented 8 months ago

3cfee9d3d05ffd1dea368dcf8f9a27ac91a6a01c broke it, more specifically the changes in ExtractDBCFiles

Snify89 commented 8 months ago

3cfee9d broke it, more specifically the changes in ExtractDBCFiles

I see. Thank you for the investigation. So are the dbc files even complete and is renaming (removing DBFilesClient), a valid workaround until this is fixed?