Insane tool, nice work!
Didnt even know about the fix.
Only problem i see is: When you export a vehicle (for example) via ZModeler and you change the name of the vehicle for the _hi.yft inside zmodeler, then the file content is not 1:1 identical.
A lot of vehicles are using basically the same model for model.yft and model_hi.yft, but changed eg the model name or something inside zmodeler for the _hi.yft. Now the files are not identical anymore in size or content. Cant think of a way to fix that right now, maybe a small configurable āsize marginā or something. Mostly its just a very very small difference in size
eg:
8,92 MB (9.357.750 Bytes) for model.yft
8,92 MB (9.356.697 Bytes) for model_hi.yft
But this small difference is enough to ābypassā this code
# Check if file contents are identical (hash) -> Line 380 of StreamFileAssistant.py
hi_hash = self.compute_file_hash(hi_file)
org_hash = self.compute_file_hash(original_file)
if not hi_hash or not org_hash or hi_hash != org_hash:
return None
maybe im completely wrong but for the couple of models ive tested, it didnt recognize them. This seemed to me like the logical reason for it
Thank you for your feedback and for pointing this out!
You are absolutely correct that small differences in file size(e.g., due to changes in some editing tools) can cause the hash comparison to fail. To address this, Iāve added a new size margin feature in the latest update: Commit a7304f7.
Whatās New:
Size Margin Option:
You can now configure a size margin (in KB) when scanning _hi.yft files.
This allow the tool to treat files with small size differences as identical.
For example, in your case:
8,92 MB (9,357,750 Bytes) for model.yft
8,92 MB (9,356,697 Bytes) for model_hi.yft
If you set the size margin to 2 KB, this will now be recognized as a duplicate.
Detailed Byte Difference:
If size margin is applied, the tool will display the exact byte difference in the results, so you can verify which files are close matches.
Thank you again for highlighting this use case!
Feel free to test it out and let me know if you encounter any other issues.
Hey everyone, I have a question thatās been bothering me. I used Stream Duplicate Checker, and it found a lot of duplicatesāthings like .ymap, .ytd, and other files with the same name but in different resources.
If I understand correctly, I need to remove one of the duplicates. However, Iām worried that if I remove, for example, a .ymap file from one MLO thatās in a different location than another, it could cause issuesālike props or parts of the MLO not showing up anymore.
Does anyone have any advice or suggestions on how to handle this? Iād really appreciate the help!