VAS File Architect is a comprehensive tool designed to streamline the creation of Video Auto Split (.vas) archives for use with ROMaster2's VideoAutoSplit component.
This program automates the process of generating a game profile (structure.xml), a template Auto Split Language (ASL) script (script.asl), and the final .vas archive containing all necessary files.
The primary focus of VAS File Architect is to ensure that I never have to create another structure.xml file by hand again - and maybe help others avoid it too.
The most significant advantage of using VAS File Architect is its ability to automate the creation of complex game profiles, which are essential for use with the Video Auto Split component.
Once the target directory is selected, the program automatically:
- Groups images based on bounding box coordinates and their containing directory.
- Generates a
structure.xmlfile, creating unique WatchZones for each group of images. - Creates a
script.asltemplate populated with a list of recognised image masks. - Compiles the processed images,
script.asl, andstructure.xmlinto a.vasarchive.
Once the user selects their target directory, VASFA will handle the rest!*
*except getting the screenshots or making the unnecessary parts of the screenshots transparent or writing the code for the actions in the script file or installing the LiveSplit component or getting the component to recognise your capture card or
To clone the repository use the following command:
git clone https://github.com/phrayse/VAS-File-Architect.gitAlternatively, you can download the executable directly from the Releases page.
- Create a directory with the same name as your game.
- Get a screenshot of each frame you wish to use in your splitter.
- Use an image editing program such as GIMP to transform each image as follows:
- Maintain the original dimensions of the image (don't crop).
- Excluding the area you wish to track, make everything transparent.
- Export this mostly-transparent image as a
.pngfile into your game directory.
- (optional) Organise your mask images into subdirectories within the game directory.
- Run program, choose target directory.
- Open the resulting
.vasarchive, found inside your target directory. - Open the
script.asltemplate and insert your code.
- Logging is active and can be found in
vasfa.log. - Refer to the Video Auto Splitter instructions for help installing the LiveSplit component.
main.py: Coordinates the overall workflow.image_processing.py: Handles image cropping and grouping.xml_generation.py: Generates game profile.asl_generation.py: Creates an Auto Splitting Language script template.vas_archive_generation.py: Compiles assets into a.vasarchive.
Check vasfa.log for detailed info and error messages.
Additionally, you can test VASFA out on the demo folder included in the main repository.
Q: How do I modify the ASL script?
A: Open the script.asl file from the .vas archive and customize the action blocks as per your specific requirements.
Q: How do I change the Error Metrics used for image comparisons?
A: Open the structure.xml file from the .vas archive and uncomment the ErrorMetric tag in the relevant WatchZone.
Options are listed atop the document in a comment node.
Q: Why are some of my images being renamed?
A: Image masks must have unique names throughout the directory so the script.asl file can differentiate between them.
The original files will remain untouched, only the archived version is amended.
Contributions to the project are welcome. Feel free to submit a pull request or message me directly with feedback.
VAS File Architect is released under the MIT License. For more details, see the LICENSE file in the repository.