• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.
Find-invalid-versions.py

Plugins + Scripts Find-invalid-versions.py

Download [<1 MB]
  This script directly modifies files in your VaM folder and could lead to irreversible corruption of var filenames. Use carefully.
Purpose: Fixing files causing naming errors found during startup.

Python script that will process the files with invalid filenames, apply the renaming rules as described, and rename the files accordingly:
<creator>.<name>.<version>
  1. Handling Duplicates:
    • If the script encounters a FileExistsError while renaming, it will move the file to the ./duplicates folder instead of throwing an error.
    • The shutil.move() function is used to move the duplicate file.
  2. Dry-Run and Actual Execution:
    • In dry-run mode, the script will simulate the rename and print what it would do.
    • When run with the "T" parameter, it will actually rename the files or move duplicates as needed.

Example Usage:​

  • Dry Run (default): $ py myscript.py
  • Execute Rename: $ py myscript.py T
  This script directly modifies files in your VaM folder and could lead to irreversible corruption of var filenames. Use carefully.
React to this content...

Share this resource

Back
Top Bottom