Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCD2DDS issue running via batch file #11

Open
ghost opened this issue Mar 1, 2018 · 0 comments
Open

PCD2DDS issue running via batch file #11

ghost opened this issue Mar 1, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 1, 2018

When I drag-and-drop a DDS texture onto PCD2DDS, it correctly sets the hex at offset 10 to the last two characters of the file name. However, if I run PCD2DDS using a batch script:

for %%i in (*.dds) do PCD2DDS.exe %%i

This offset instead uses the first two characters of the file name, resulting in a hash mis-match error when repacking into a .drm file. However the DRM files still run fine in the game, at least with TRA PC which I'm testing on.

Example: I take a file called "40_36.dds" and drop it on PCD2DDS. When I view the resulting PCD file's hex code, offset 10 is correctly written as "36". However, if I take the same "40_36.dds" file and convert it using the batch file instead, the resulting PCD file's hex at offset 10 is instead written as "40".

It's a minor error in an otherwise superb toolset, but I thought it'd let you know anyway. Thank you so much for creating the cdcEngineTools!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants