thpatch / thtk

Touhou Toolkit
https://thtk.thpatch.net/
Other
315 stars 44 forks source link

What's the meaning of "incorrect entry magic“? #68

Open Sylive147 opened 4 years ago

Sylive147 commented 4 years ago

I got empty files after inputing “.\thdat.exe -x d th08.dat”,why? And I also “enemy.anm: couldn't open enemy.anm for reading” after “ .\thanm.exe -x enemy.anm”(Happens all versions)

32th-System commented 4 years ago

It's trying to extract a file "th08.dat" from a nonexistent file "d" in your first command. The right command is .\thdat.exe -x8 th08.dat. If you only want to extract enemy.anm for example it would be thdat -x8 th08.dat enemy.anm. The thanm command is correct though.

hhhhh322 commented 4 months ago

It's trying to extract a file "th08.dat" from a nonexistent file "d" in your first command. The right command is .\thdat.exe -x8 th08.dat. If you only want to extract enemy.anm for example it would be thdat -x8 th08.dat enemy.anm. The thanm command is correct though.

I have same question,but I use this:"./thdat -x8 th08.dat",it still return incorrect entry magic.Whatever I'm using windows or linux.

32th-System commented 4 months ago

Does your game still run?

hhhhh322 commented 4 months ago

Does your game still run?

No, I copied this file somewhere else for easy operation

32th-System commented 4 months ago

then copy over th08.dat again and see what happens

hhhhh322 commented 4 months ago

then copy over th08.dat again and see what happens然后再次复制th08.dat,看看会发生什么

Still the same output, maybe my files are corrupted, but it reads fine when I try to read the list of files. I'll try to get a new one from elsewhere.

hhhhh322 commented 4 months ago

then copy over th08.dat again and see what happens然后再次复制th08.dat,看看会发生什么

Problem solved, I accidentally put the modified file into it, which caused it not to work properly, there may be many people who use this version of the file in our country, so maybe it is necessary to note it in the documentation?