th7nder 17 Posted July 29, 2014 Share Posted July 29, 2014 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hi! Today, i'm gonna give u simple tool, to remove all objects from map with one command, i think it's useful (; import os, sys try: directory = os.path.relpath(str(sys.argv[1])) dirs = [] except IndexError: print "usage: deleteObjects.py <mapfolder>" else: if os.path.isdir(directory): directoryListing = os.listdir(directory) for file in directoryListing: file = os.path.join(directory, file) if os.path.isdir(file): dirs.append(file) for dir in dirs: with open(os.path.join(dir, "areadata.txt"), "a") as f: f.truncate() f.write("AreaDataFilennnObjectCount 0") f.close() else: print "Maaan, directory " + directory + " doesn't exist" print "usage: deleteObjects.py <mapfolder>" 2 2 1 3 Link to comment Share on other sites More sharing options...
The picos 0 Posted July 11, 2015 Share Posted July 11, 2015 How to work? you can make a video tuto, plese. Tanks. Link to comment Share on other sites More sharing options...
Recommended Posts