I am currently trying to integrate Dolphin with my Wii Games that are already on my Wiis HDD, including Artwork.
The best thing about the wii games is, that every game has an individual game id. So scraping gets very easy. But the available scraper sources in rcb do not support that.
So I decided to download the wiitdb.xml from
http://www.gametdb.com/Wii/Downloads and try to scrape everything from there (Every game of the wii is listed there).
My games are saved in a folder per Game so:
Ex:
Code:
\wii\games\Super Smash Bros. Brawl [RSBP01]\RSBP01.wbfs
The Artwork then
Code:
\wii\images\cd\RSBP01.png
So everything is related to the game id I have. Including the artwork seems to be easy, but scraping the wiitdb.xml fails.
My config.xml (only the sections that are important)
Code:
<RomCollections>
<RomCollection id="1" name="Wii">
[...]
<romPath>d:\wii\games\*.wbfs</romPath>
[...]
<useFoldernameAsGamename>False</useFoldernameAsGamename>
[...]
<scraper name="Wii" replaceKeyString="" replaceValueString="" />
</RomCollection>
</RomCollections>
<Scrapers>
<Site descFilePerGame="True" name="local nfo" searchGameByCRC="False">
<Scraper parseInstruction="00 - local nfo.xml" source="nfo" />
</Site>
<Site descFilePerGame="False" name="Wii" searchGameByCRC="False" useFilenameAsCRC="False" useFoldernameAsCRC="False">
<Scraper parseInstruction="d:\wiitdb.scraper.xml" source="d:\wiitdb.xml" />
</Site>
</Scrapers>
My scraper:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<parserConfig>
<GameGrammar type="xml" root="game">
<SearchKey>id</SearchKey>
<Game>locale[@lang=DE]/title</Game>
<Description>locale[@lang=DE]/synopsis</Description>
<Genre>genre</Genre>
<Players>input/@players</Players>
<Developer>developer</Developer>
<Publisher>publisher</Publisher>
<ReleaseYear>date/@year</ReleaseYear>
<OriginalTitle>@name</OriginalTitle>
<AlternateTitle>locale[@lang=EN]/title</AlternateTitle>
<Region>region</Region>
</GameGrammar>
</parserConfig>
WiiTdb.xml parts
Code:
<datafile xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="wiitdb.xsd">
<WiiTDB version="20170130110647" filter="DE_wiiware_gamecube" games="9289"/>
<game name="Super Smash Bros. Brawl (USA) (EN,ES)">
<id>RSBE01</id>
<type/>
<region>NTSC-U</region>
<languages>EN,ES</languages>
<locale lang="EN">
<title>Super Smash Bros. Brawl</title>
<synopsis/>
</locale>
<locale lang="ES">
<title>Super Smash Bros. Brawl</title>
<synopsis/>
</locale>
<locale lang="ZHTW">
<title>任天堂明星大亂鬪X[WiFi](美)</title>
<synopsis/>
</locale>
<locale lang="ZHCN">
<title>任天堂明星大乱斗X[WiFi](美)</title>
<synopsis/>
</locale>
<developer>Sora / HAL Laboratory</developer>
<publisher>Nintendo</publisher>
<date year="2008" month="3" day="9"/>
<genre>fighting</genre>
<rating type="ESRB" value="T">
<descriptor>crude humor</descriptor>
<descriptor>cartoon violence</descriptor>
</rating>
<wi-fi players="4">
<feature>online</feature>
<feature>download</feature>
<feature>wiimmfi</feature>
</wi-fi>
<input players="4">
<control type="wiimote" required="true"/>
<control type="nunchuk" required="false"/>
<control type="classiccontroller" required="false"/>
<control type="gamecube" required="false"/>
</input>
<save blocks="128"/>
<rom version="" name="Super Smash Bros. Brawl (USA) (EN,ES).iso" size="8511160320" crc="7d5228c6" md5="d18726e6dfdc8bdbdad540b561051087" sha1="0e95949ac585f357e79fcd34b20670b5dca97ac2"/>
<rom version="1.02" name="Super Smash Bros. Brawl (USA) (EN,ES) (v1.02).iso" size="4699979776" crc="854b2889" md5="52ce7160ced2505ad5e397477d0ea4fe" sha1="59432f150bf6b871ab378bb5b28e92005e0862f6"/>
<case versions="3"/>
</game>
<game [...]>[...]</game>
RCB finds no game this way, what I am doing wrong here?