I've made some script with AI for VAM.
It automates the process of adding new downloaded vars to your organized collection.
Requires Python to run. Remove .txt extension before run.
How it works:
1. Fill two variables at the beginning:
SOURCE_DIR = Path('')
TARGET_DIR = Path('')
SOURCE_DIR is where you put new files. Script assume flat structure (files only) - FILES IN THIS DIRECTORY WILL BE MOVED INTO SUBDIRECTORIES
TARGET_DIR is your Addons directory or another directory where you store vars - THIS CATALOG IS READ ONLY
You should fill directories with proper paths :
a) REMEMBER: TARGET IS READ ONLY AND SOURCE IS MODIFIED
b) SOURCE_DIR should be outside of TARGET_DIR
c) Path directories should be separated by / character, example:
TARGET_DIR = Path('C:/Games/Adult/VAM/AddonPackages')
SOURCE_DIR = Path('C:/Games/Adult/VAM/NewFiles')
d) paths should be absolute (starting with drive letter)
2. Script scans your TARGET_DIR, remember each var file with it's path (if subdirectories are used, ie. by creator)
3. Script scans your SOURCE_DIR, remember each var with "side" files
4. Moves file inside SOURCE_DIR into subdirectories:
a) duplicates - vars in SOURCE_DIR with same name and hash as in TARGET_DIR
b) duplicates_different_content - same name but differnt hash (different content inside var file)
c) older - files in SOURCE_DIR with older version than in TARGET_DIR or files in SOURCE_DIR with multiple versions - only newest is processed against TARGET_DIR
d) newer - opposite to above
e) new - files not found in TARGET_DIR with any version
5. Files are moved into subdirectories according to TARGET_DIR structure, example:
TARGET_DIR:
Looks\Woman\SuperVAMCreator.HOTGirl.1.var
SOURCE_DIR:
SuperVAMCreator.HOTGirl.2.var
SuperVAMCreator.HOTGirl.3.var
Files in SOURCE_DIR will be moved to:
a) older\SuperVAMCreator.HOTGirl.2.var (NOTE: not subdirectory becase this is compared inside SOURCE_DIR)
b) newer\Looks\Woman\SuperVAMCreator.HOTGirl.2.var
6. Together with var files, side files are moved. Side files are files:
a) same name as var with different extension, ie. SuperVAMCreator.HOTGirl.3.var, SuperVAMCreator.HOTGirl.3.jpg
b) sanme name as var with different extension and without version, ie. SuperVAMCreator.HOTGirl.jpg
c) as above with numbers (1), (2) added (Windows convention), ie. SuperVAMCreator.HOTGirl (2).var
d) as above with letters (a,b) added, ie. SuperVAMCreator.HOTGirla.var
e) *.depend.txt are not moved sorry
7. Script can move only side files (wihout var file) if there are none in TARGET_DIR but appeared in SOURCE_DIR, ie. SOURCE_DIR contains old var but with previews, TARGET_DIR has only newer var. In that case, var will be put in older and side files will be in newer with proper structure.
Tested a little, "side" files sometimes work in a wrong way, ie. if two var version have side files, the first processed gather all side files.
It automates the process of adding new downloaded vars to your organized collection.
Requires Python to run. Remove .txt extension before run.
How it works:
1. Fill two variables at the beginning:
SOURCE_DIR = Path('')
TARGET_DIR = Path('')
SOURCE_DIR is where you put new files. Script assume flat structure (files only) - FILES IN THIS DIRECTORY WILL BE MOVED INTO SUBDIRECTORIES
TARGET_DIR is your Addons directory or another directory where you store vars - THIS CATALOG IS READ ONLY
You should fill directories with proper paths :
a) REMEMBER: TARGET IS READ ONLY AND SOURCE IS MODIFIED
b) SOURCE_DIR should be outside of TARGET_DIR
c) Path directories should be separated by / character, example:
TARGET_DIR = Path('C:/Games/Adult/VAM/AddonPackages')
SOURCE_DIR = Path('C:/Games/Adult/VAM/NewFiles')
d) paths should be absolute (starting with drive letter)
2. Script scans your TARGET_DIR, remember each var file with it's path (if subdirectories are used, ie. by creator)
3. Script scans your SOURCE_DIR, remember each var with "side" files
4. Moves file inside SOURCE_DIR into subdirectories:
a) duplicates - vars in SOURCE_DIR with same name and hash as in TARGET_DIR
b) duplicates_different_content - same name but differnt hash (different content inside var file)
c) older - files in SOURCE_DIR with older version than in TARGET_DIR or files in SOURCE_DIR with multiple versions - only newest is processed against TARGET_DIR
d) newer - opposite to above
e) new - files not found in TARGET_DIR with any version
5. Files are moved into subdirectories according to TARGET_DIR structure, example:
TARGET_DIR:
Looks\Woman\SuperVAMCreator.HOTGirl.1.var
SOURCE_DIR:
SuperVAMCreator.HOTGirl.2.var
SuperVAMCreator.HOTGirl.3.var
Files in SOURCE_DIR will be moved to:
a) older\SuperVAMCreator.HOTGirl.2.var (NOTE: not subdirectory becase this is compared inside SOURCE_DIR)
b) newer\Looks\Woman\SuperVAMCreator.HOTGirl.2.var
6. Together with var files, side files are moved. Side files are files:
a) same name as var with different extension, ie. SuperVAMCreator.HOTGirl.3.var, SuperVAMCreator.HOTGirl.3.jpg
b) sanme name as var with different extension and without version, ie. SuperVAMCreator.HOTGirl.jpg
c) as above with numbers (1), (2) added (Windows convention), ie. SuperVAMCreator.HOTGirl (2).var
d) as above with letters (a,b) added, ie. SuperVAMCreator.HOTGirla.var
e) *.depend.txt are not moved sorry
7. Script can move only side files (wihout var file) if there are none in TARGET_DIR but appeared in SOURCE_DIR, ie. SOURCE_DIR contains old var but with previews, TARGET_DIR has only newer var. In that case, var will be put in older and side files will be in newer with proper structure.
Tested a little, "side" files sometimes work in a wrong way, ie. if two var version have side files, the first processed gather all side files.
Last edited: