# NEO Cheater for NEO Scavenger # Python Script for Python 3 on Windows 10 # Created by El Mano # Copies your NEO Scavenger save file to the script's parent directory every five minutes. # Script maintains five copies, overwriting the oldest of the five. # Script uses backupLog.txt to store the number of the next backup to create so that the backup order is retained between run sessions. # Files are NOT renamed with each new copy, so file # 1 is not necessarily your oldest copy. Check the script output to see which file was the last copied. # Make sure to set the savedGame variable below to the path of your game saves. # Start NEO Cheater before launching NEO Scavenger to start saving games. # To "load" a save, copy a saved file back into the saved games directory and remove the number from the end of the file name. # imports import shutil import time #initialize variables num = 1 sleepTime = 300 t = sleepTime # savedGame is the saved game file. This will usually be some variation of # C:\Users\*YOU*\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\*RANDOM CHARACTERS*\localhost\Program Files (x86)\NEO Scavenger\nsSGv1.sol # where "nsSGv1.sol" is the save file. # Do NOT delete the 'r' in front of the file path! savedGame = r"C:\Users\Me\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\8JTA285W\localhost\Program Files (x86)\NEO Scavenger\NEOScavenger.exe\nsSGv1.sol" print("Saving from " + savedGame) print() print() # open log file and retrieve backup number try: logFile = open("backupLog.txt", 'r') print("Log opened.") num = int(logFile.readline()) print("Starting on backup " + str(num) + '.') except: logFile = open("backupLog.txt", 'x') print("Log created.") num = 1 logFile.write(str(num)) logFile.close() print() print() print() # main code loop while True: try: # wait print("Waiting to save copy " + str(num)) time.sleep(t) # define new file name fileName = 'nsSGv1.sol' + str(num) # use this next line to save to a folder that NEO Cheater is not stored in. Change 'fileName' to 'newpath' in the copy command below. # newpath = r"C:\\Users\\Me\\Desktop\\Saves_Folder\\" + fileName # copy file shutil.copy2(savedGame, fileName) # reset wait time t = sleepTime except: print("Couldn't copy file. Trying again...") print() # shorten wait time to try again t = 10 else: print("Copied " + fileName + " as copy number " + str(num)) print() # increment fileName counter and save to log num += 1 if num > 5: num = 1 try: logFile = open("backupLog.txt", 'w') logFile.write(str(num)) logFile.close() except: print("Failed to save log number.")