From ecce3a35b0fc7338571e700ea64f2590cc812851 Mon Sep 17 00:00:00 2001 From: Jac0xb Date: Mon, 12 Apr 2021 16:56:15 -0500 Subject: [PATCH] Improve info printing Was a bit confused. Thought I just needed the .tga files --- utils/vmt_to_vmat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/vmt_to_vmat.py b/utils/vmt_to_vmat.py index ec0a11a..400abb7 100644 --- a/utils/vmt_to_vmat.py +++ b/utils/vmt_to_vmat.py @@ -356,6 +356,10 @@ def parseVMTParameter(line, parameters): print('ERROR: CMD Arguments are invalid. Required format: "vmt_to_vmat.py C:\\path\\to\\folder_or_vmt"') quit() +if (len(fileList) == 0): + print('INFO: Did not find any .vmt or .vtf files in target folder. Make sure you .tga, .vmt, and .vtf files are together.') + quit() + for vmtFileName in fileList: print("+ Processing .vmt file: " + vmtFileName) baseFileName = os.path.basename(vmtFileName.replace('.vmt', '')) @@ -650,4 +654,4 @@ def parseVMTParameter(line, parameters): print('+ Finished Writing ' + vmatFileName) -input("Press the key to close...") \ No newline at end of file +input("Press the key to close...")