Jump to content
LaunchBox Community Forums

wjrandon

Members
  • Posts

    3
  • Joined

  • Last visited

Community Answers

  1. wjrandon's post in 13.22 Game Competition Status Migration Issue was marked as the answer   
    Hey everyone,
    I decided to troubleshoot this myself using AI.  It wrote a simple script to correct all the xml files for me.  While rewriting I noticed the XMLs were littered with dozens (or hundreds) of duplicates <AdditionalApplication> entries so had it write an easy fix with Python that brought files sizes from 120mb to 4mb for some platforms:
    Progress Migration
    Parsed each system’s <Game> entries.
    For every <Completed>true</Completed>, inserted or updated <Progress>Done / Completed</Progress>.
    For any <PlayCount> ≥ 1 and <Completed>false</Completed>, set <Progress>Active / Paused</Progress>.
    Stripping Redundant <AdditionalApplication>
    Created a standalone script that walks through every <Game> and the document root, removing all <AdditionalApplication> blocks.
    Optionally backups originals to *.xml.bak before overwriting.
    I was able to restore all my completion badges and clean up hundreds of redundant entries in minutes.  Saving hours of manual edits since you still can't manually bulk delete entries for Additional Applications within Launchbox. 
×
×
  • Create New...