Search the Community
Showing results for tags 'new tables'.
-
Hi All I created a small program that wil generate XML files that will be shown as "Recently Updated" in the game list. It will check all XML files from the INI file and wil create a top list (as many as you want) This is handy if yo have a lot of tables, and added (or modified) some recently How does it works ? Simple copy the attached EXE and INI file and put it into a directory. Edit the INI file with your favorite editor (Notepad.exe for me ) [Global] LogPathLocal = "log" LogFileName = "GenerateUpdateTables.log" LogSize = 0 LogLevel = "LOGLVL_INFO [Paths] PinballX_Path = "c:\Pinball\PinballX" [PINBALLX] ShowTotalNewCount = 25 GenerateXMLSection1 = "VisualPinball" GenerateXMLSection2 = "System_1" GenerateXMLSection3 = "PinballFX3" [Options] CreateSeparateFile = True CleanupDebug = True CleanupOldFiles = True Setup the next sections one time : [Global] section : LogPathLocal - path for logfile. Can be only put a subdirectory or file pathname LogFileName - File name of the logfile LogSize - 0 will overwrite everytime the log file other value will be overwrite the logfile is fize is reached (kb) LogLevel - Type of logging : LOGLVL_INFO - Shows the least ammount of logging. Enough if all is working LOGLVL_VERBOSE - If you encounter errors, this mode will shows the most issues LOGLVL_VERY_VERBOSE - Nightmare logging mode ! Shows too much info, but handy if it is really not working [Paths] section : PinballX_Path - Set the correct to your PinballX root folder [PINBALLX] section : ShowTotalNewCount - Set a number. This will show the totally new or modified tables GenerateXMLSection - Start the GenerateXMLSection from 1 and up. add/remove the sections that has the names in the original Pinballx.INI in the CONFIG folder of PinballX for the emulators which you want t create the new tables for In the example, I want only for the 3 entries that are defined in PinballX.ini to be processed for this script. Modify this to your own needs, but make sure the numbering is starting from 1 to ... [Options] section : CreateSeparateFile - Set to True is you want to have Recently Added and Recently Modified in your list. Set to False creates 1 list of Recently Added (including recently modified) CleanupOldFiles - Set to True if you want to cleanup the next folders for unused files : "Backglass Images","Table Images","Table Images Desktop","Table Videos Desktop","Table Videos","Backglass Videos" Set to False to SKIP deletion (CleanupDebug will be ignored) CleanupDebug - True will only show files to delete, False will delete the files And just run the executable file every time you add or modify tables (I run it after i finished GameManager.exe) A log file will be generated to check anything (See global section), but also on the command line you see the results If you encounter any issues, please change the LogLevel = "LOGLVL_INFO" to LogLevel = "LOGLVL_VERBOSE" and post the logfile as attachment here The EXE file uses the icon of pinballX. Not sure if that is aloud. If not, I will remove the icon latest version : 1.3 GenerateUpdatedTables.exe GenerateUpdatedTables.ini (English is not my native language, so it could be that in the program/logs there are typos. I'm open to change that too ) Thanks to @scutters for testing this in Beta phase and reported issue (and extra feature) back and @simbamame for testing without finding issues
- 48 replies
-
- 1