Closed DopiePanda closed 4 months ago
This is surprising... I've tested this a bunch... I'm guessing there's a bug here, maybe on Windows only. Looking into it.
Yeah, on Linux this is definitely working correctly...
NewColoritems_104_16521c.oxz.zip
Adding a sample import file to test with.
Indeed! Removing the imported stuff isn't working on Windows. Sorry about that!
This line isn't working on Windows:
Actually, the problem seems to be that elsewhere in the importer code, there are fopen calls without corresponding calls to fclose. Windows won't let a file get removed that is still open somewhere.
When importing mods, the mods imported gets copied into the "imported" folder, but does not get removed from the import_add folder, so you need to remember to manually remove it from this as well as the import_replace folders, if not if will keep creating new duplicate objects everytime you lauch the editor untill the OXZ file(s) are removed.
I suggest it gets automatically removed either at the end of importing, or when closing out of the editor cause this is easy to forget and causes extra confusion and a lot of extra work if there is multiple mods or mods with many objects you are importing.