Open sunnamed434 opened 7 months ago
Can you provide with steps on how to replicate the issue? Since off the top of my head I recall asset-reading being wrapped in using
statements, ensuring they will close the file stream once they done reading it.
Steps to reproduce:
Open NPC Maker, it must show the load bar that says Importing Assets
or smth after the app is loaded, try to remove Workshop mods from the Unturned directory, it will say: File is used by another process
, however, once I close the NPCMaker everything is just fine, I can remove anything as usually
On the screenshot, I'm trying to delete a random folder from steamapps\workshop\content\304930
After checking opened handles after importing assets I can confirm that app indeed keeps some files open. These files are map images. Will fix.
Thanks!
The problem is once you run NPCMaker you cannot normally remove any mods/files/maps etc from the Unturned directory.
I guess this problem is coming from the wrong reading/loading of the Icons/Files into NPCMaker, maybe it also make sense to cache all these files or smth like that