home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
Updating description, year and company
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dir" data-source="post: 356033" data-attributes="member: 24485"><p>1. Extract information from Mame:</p><p></p><p>mame -listxml >mame.xml</p><p></p><p>2. Create fields.txt with the following in it:</p><p></p><p>game_name;description;year;manufacturer;cloneof</p><p>game_name==game|name</p><p>cloneof==game|cloneof</p><p></p><p>3. Open mame.xml in Notepad. do a find/replace of </p><p></p><p>.c"></p><p>.c" cloneof="NONE"></p><p></p><p>and save it again. This finds all games that aren't clones and adds the 'cloneof' value to them.</p><p>It's a big file so this might take a while.</p><p></p><p>4. Convert the file to csv:</p><p></p><p>xml2csv.exe mame.xml mame.csv fields.txt -D=;</p><p></p><p>5. At this point I opened the mame.csv file in a spreadsheet app (not Excel) and told it to use the ";" as the delimiter. </p><p>This neatly formatted the file so that each field was in it's own column: GameName, Description, Year, Manufacturer, and Visible.</p><p>I then changed the Visible column so that anything that was "NONE" I changed to "True". and the rest I changed to False.</p><p>Note that in the editor I used, it tried to interpret the values as boolean. I just want them as text.</p><p>Save the file again.</p><p></p><p>You should now have a csv file that shows the Visible status of each game that isn't a clone.</p><p></p><p>The file should then be able to be used by sqlite3.exe as the temp input file for updating the database.</p><p></p><p>Should.</p></blockquote><p></p>
[QUOTE="dir, post: 356033, member: 24485"] 1. Extract information from Mame: mame -listxml >mame.xml 2. Create fields.txt with the following in it: game_name;description;year;manufacturer;cloneof game_name==game|name cloneof==game|cloneof 3. Open mame.xml in Notepad. do a find/replace of .c"> .c" cloneof="NONE"> and save it again. This finds all games that aren't clones and adds the 'cloneof' value to them. It's a big file so this might take a while. 4. Convert the file to csv: xml2csv.exe mame.xml mame.csv fields.txt -D=; 5. At this point I opened the mame.csv file in a spreadsheet app (not Excel) and told it to use the ";" as the delimiter. This neatly formatted the file so that each field was in it's own column: GameName, Description, Year, Manufacturer, and Visible. I then changed the Visible column so that anything that was "NONE" I changed to "True". and the rest I changed to False. Note that in the editor I used, it tried to interpret the values as boolean. I just want them as text. Save the file again. You should now have a csv file that shows the Visible status of each game that isn't a clone. The file should then be able to be used by sqlite3.exe as the temp input file for updating the database. Should. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
Updating description, year and company
Contact us
RSS
Top
Bottom