cmangos / issues

This repository is used as a centralized point for all issues regarding CMaNGOS.
180 stars 48 forks source link

🐛 [Bug Report] ad can't output right map.dbc #2581

Open SimonChenyongxing opened 2 years ago

SimonChenyongxing commented 2 years ago

Bug Details

When I extract maps, I got this: Extracting maps... Read Map.dbc file... Fatal error: Invalid Map.dbc file format!

Steps to Reproduce

1.download the latest code. 2.compile. 3.obey the guide:https://github.com/cmangos/issues/wiki/Detailed-installation-guide-for-Microsoft-Windows 4.then I got this information:Extracting maps... Read Map.dbc file... Fatal error: Invalid Map.dbc file format!

  1. I opened Map.dbc , the first four byte of the file is not 'WDBC'.

Expected behavior

ad output the right Map.dbc

Suggested Workaround

the client version is 3.3.5 12340.

Crash Log

No response

Core SHA1 Commit Hash

40dfb1b586fb4253f89d1f7acc6039c775f92deb

Database SHA1 Commit Hash

40dfb1b586fb4253f89d1f7acc6039c775f92deb

Operating System

windows

Client Version(s)

killerwife commented 2 years ago

What I did. I pulled latest mangos-wotlk. I cleared my wotlk client folder of everything, I used ExtractResources.sh to only extract Maps and DBCs (first option after saying not to extract everything) and it worked fine. I am going to suggest to download a different client from a different source. (we do not share clients or links here, maybe ask on discord)

killerwife commented 2 years ago

And please update the thread when you get a different client.

SimonChenyongxing commented 2 years ago

I have used 335 12340 and 335 13507.They have the same problem. Can you share me your ad.exe?

killerwife commented 2 years ago

Hop on discord and msg me.

SimonChenyongxing commented 2 years ago

We can't access discord from china. Can you mail ad.exe to wowchina80@163.com? Do the locale file affect the result? My client is cn version.

killerwife commented 2 years ago

Try using the extraction on a normal enGB client to see if it works. If not, we might need to get our hands on the cn version and try if it extracts.

SimonChenyongxing commented 2 years ago

Confirmed.The extraction works very well on a normal enGB client,but it does't work on cn client.

adellaci commented 2 years ago

I am unable to compile MoveMapGen

[ 20%] Linking CXX executable MoveMapGen
/usr/bin/ld: CMakeFiles/MoveMapGen.dir/src/MapBuilder.cpp.o: in function `MMAP::MapBuilder::buildMap(unsigned int)':
/usr/include/c++/9/thread:130: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[2]: *** [contrib/mmap/CMakeFiles/MoveMapGen.dir/build.make:153: contrib/mmap/MoveMapGen] Error 1
make[1]: *** [CMakeFiles/Makefile2:877: contrib/mmap/CMakeFiles/MoveMapGen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Everything else is compiling

adellaci commented 2 years ago

I no long have the compile error [WoTLK] Core Hash; e2c4d2e423bd5f1c17dd37a181578119dc067432 Database Hash; e6e2c6a6b763a04409b0998d3bb69ec9944c6e7a but i have not run the new 'Resource Extraction' Running that next

adellaci commented 2 years ago

I just extracted the latest maps and started world and realm, i have no errors. You must have a corrupt file, or you need to reduce the number of processors being use. I have seen when i extract if i am consuming all the CPU's i can have a failure in that file.

I'll run extract on all three copies of WoTLK that i have to make sure.

SimonChenyongxing commented 2 years ago

Have you extracted the maps on cn client? I tried again, and can't get right map.dbc.

killerwife commented 2 years ago

Problem is that none of use really have your environment with cn client. This might be due to cn client itself or likely cn locale and unicode. We will gladly review a user submitted patch but this is outside of our scope to fix.