I wrote a table manager that abstracts the XML database so that you can manage tables quickly and efficiently. It will import your entire table directory automatically for you if you are just starting out. If you have an existing XML database, it will import it. You can enable and disable tables, update and manage images and videos with this tool.

Documentation:
Microsoft .NET 4 Required
Installation:
Copy the executable somewhere on your hard drive. Be sure .Net 4 framework is installed on your computer. Know your file locations from the hyperpin settings.ini file.
How to use:
1) Run the program. Change the directories to match your directories (button upper left corner). Make sure you put a \ at the end as in the example.
2) If you have an existing Visual Pinball.XML file that you are currently happy with, click the button "Import XML". This will load your file into the program. Then, click "Save DB" to save the database - it is saved in an alternate textual format. At this time, a backup of your original Visual Pinball.XML file will have been created if you ever need it again. Once you've imported the XML once, don't do it again (or if you do, don't save!)
3) Click the "Refresh Tables" button. If starting from scratch, this will load all the table names into the left list. If you have imported an XML, or loaded a previously created database, this will add any new tables to the database since you've last run the software. If you're loading a previously created database, and no new tables have been copied into the directory, you can skip this step.
4) Click the "Load Images" button. This will load all the filenames and paths for the Backglass Images, Table Images, Wheel Images and Table Videos on the right. You must do this every time you are going to be adding or changing image files.
5) Now, click the "Save DB" to save the database.
6) To edit a table, click on it's name on the left hand column. It will load the game name, and any previously saved settings into the text fields in the middle area.
7) To make a change, just change the values of the fields and they will automatically update. However, you still need to save your database whenever you're finished working on it. It's not a bad idea to just save periodically as you're working, especially if you're doing a lot of tables.
8) To associate an image with the table, click on the filename in the lists on the right hand side. You'll see what the image looks like in the preview below the image text fields. If you want to pick a different file, just click on them.
You can always see the image again by clicking on the text field that shows the full path of the image.
Realize that the Description must match the name of the images you're going to use!
You'll notice that if there is information missing in the fields above, clicking on image filenames that have parenthesis "( )" in them will automatically attempt to fill out some of the information. If it is successful in loading this data, it will also select that any game made prior to 1976 is a EM. There is at least one SS made in 1975, and I wasn't sure so I just picked 1976 as a random date.
In addition to filling out information for you, it will also attempt to find the matching table, wheel and video files, if they're named the same as the image you just clicked on. If you've already set an image to be something, it won't automatically do this conversion for you.
If you want to reset the Description (and data if it can figure it out) based on the image you're interested in, click the SD button next to that text field once the text field has been set.
Now, let's say that you have an image file that doesn't match the rest of the files. You can press the Copy button next to that file, and it will automatically copy the image you've selected to the appropriate location with the filename that matches the description. This WILL overwrite the file if it exists, so use with caution. The original file will remain intact. This feature is nice because, say for example, if you have multiple backglass images for one table, you can easily change back and forth by just clicking the backglass image list, and then clicking the Copy button.
Also, you can filter the results of the image list by typing in the Search Filter text field above Backglass Images. This will help you quickly locate the appropriate image you're looking for. Just type in, say "Attack" and you will see all results with the word "Attack" in it.
9) When you're ready to move on to the next game, just click another game on the left.
10) When you're done editing, click "Save DB" to save your work.
11) Once you've saved the DB, you should save the XML file by clicking "Save XML".. this generates the Visual Pinball.xml file based on the information in the database.
12) FYI, You must click the Visible checkbox in order to see the table! By default, they're invisible. That's because I personally only want to have a handful of games running on my system. If you want to quickly change them all to visible, open the DB file: hyperpin\databases\hyperpin-gamedbvp.txt and search and replace |False with |True
------------------------------------------
That's about it. If you have any questions, feature requests or comments, I'm all ears.
VERSION HISTORY
v0.9 - Initial release. No version information in form title.
v1.0 - Added ability to set all necessary directories. No version information in form title.
v1.1 - Implemented file backup option with image copy buttons. Fixed bug where import xml did not work if xml tag was missing from visual pinball.xml. Added version number to form title.
v1.1 FP - Future Pinball Version Created
v1.2 VP & FP
- Decided not to put both programs into one for ease of development. Made changes to source to simply build process.
- Now loads images once directories are set. Note, if you have run a prior version, click the set directories button and press ok. Exit and restart and it will now load on program start.
- Load DB once directories are set (see just above)
- Table list filter. Click X to clear, added X to image filter as well. Also, changing table filter immediately changes image filter to the same as the table filter. You can change image filter independently, but this helps save time.
- If database has description, or if importing XML from a new install, auto loads image file names if entry blank and if file exists. Does not auto load videos
- Fixed bug where software was saving XML with & as literal ampersand, rather than & Note, if you are importing an xml file generated with a prior version, you must first search and replace all &'s with & in the XML, otherwise the XML will not load.
- Search forums for game description button
- Search IPDB for game description button
- Search VPForums.org downloads section for description button
- One click save saves DB and XML
v1.3 VP & FP
- Support for tables in nested subdirectories of tables folder
- Check box to ignore visibility option and save all in database to XML
- If on a copy the destination file doesn't exist, delete old file to help keep image/video folders cleaner.
FEATURE REQUESTS
UVP Support
Search/Filter game list based on image
Identify missing files
Link roms so that registry edits can be made
DOWNLOAD CURRENT VERSION:
Attached Files
Edited by analog999, 13 March 2012 - 08:06 PM.




Top















are all trademarks of VPFORUMS.