smlu/Urgon

Replace multiple mat files at once

HeilanMo opened this issue · 3 comments

Hey, is it somehow possible to replace multiple mat files at once. I would like to replace all textures from the first level but the cnd file has 162 textures and I can only replace them one by one. Is it for example possible to add a complete folder with the mat files to the cnd?

smlu commented

Hey, yes it's possible to replace multiple mat files in one go.
You should be able to execute the command cndtool add material --replace on multiple *.mat files.
e.g.:

cndtool.exe add material --replace some_level.cnd mat1.mat mat2.mat mat3.mat mat4.mat

Side note: I'm upgrading cndtool to convert CND to NDY file format. When it's finished you won't need to patch CND files anymore.

Hey thank you it worked. Now it is a lot easier to change textures for me. I'm experementing a bit with texture upscaling at the moment.
Screenshot (2)
Screenshot (6)

So I'm looking forward to see your next version of cndtool. It will be much easier to replace the textures when you don't have to patch the cnd files

smlu commented

@HeilanMo that's great to hear. Btw I'm in contact with someone who's doing the HD texture upscale too. If you want to get in touch with him please PM through gog.com.