[BATCH] Scrape your roms on your PC - fastscraper
-
@paradadf It gets to ...
G:\EmulationStation.emulationstation\roms>reg Query "HKLM\Hardware\Description
System\CentralProcessor\0" | find /I "x86" 1>nul && set arch=386 || set a
rch=amd64And just hangs....
-
@DavidinCT weird... it must be because you use a nuc or something similar.
Can you open the command prompt and give the output of:
reg Query "HKLM\Hardware\Description System\CentralProcessor\0"
In the mean time, you can erase that part and just use:
set arch=386
Or whatever platform your pc is. -
Under a command line...
reg Query "HKLM\Hardware\Description System\CentralProcessor\0"
ERROR: The system was unable to find the specified registry key or value.Manually checking that key Closest you get to AMD64 is "Intel64 Family 6 Model 60 Stepping 3"
-
@DavidinCT hmmm... these new computers have weird registry entries XD
Try using the 386 arch as I said. Any 64 bit OS would run 32 bits apps, so no problems. -
@paradadf Think I found out what PART of my problem was....
I was using notepad...and word wrap was on... when saving it modified the file and caused errors (have not done that in years), Notepad++ only going forward... this gets me backwards tho...
Running as an Admin....
ERROR: The system was unable to find the specified registry key or value.
Can't get OS's language. English will be used.from this point it just hangs here. Is there anything that needs to be enabled for this script to work ?
This is a HTPC, this is a very stripped down feature machine, only setup for media viewing. That I wanted to use some of it's horsepower for some classic gaming (funny it runs Wii and WiiU games fine too..LOL)
Thanks again for your help, I could understand if you were done at this point...
-
@DavidinCT the registry entry the script isn't finding tells what arch (32 or 64 bit) your OS has, so it knows which version of the scraper to downlod. Just erase that prt of the code and let:
set arch=386That should solve the problem.
-
@paradadf Think I got it working. I did try to the set arch and I got stuck on the NEXT part...downloading...and stuck again...sigh
So, I pulled out a LOT of stuff..
-CPU check (changed to amd64)
-Lang check (changed to EN)
-Removed check version, download and extract (that whole section, as it was getting stuck on each part)Now running it, it asked me the questions and seems to be running now.
Crossing fingers this works... remember my folder layout is not exactly common for this and before nothing would show up in ES...
Trust me, I really hope this all works... If you want me to up the mod that I did, let me know as it could help others with funky problems.
-
@DavidinCT it might be better to run it from a real pc the next time XD
Probably the PowerShell functions where causing problems too.
If you can share how the paths within the gamelist.xml files should look like, that's be helpful for someone. Otherwise, good luck! -
@paradadf Real system ? I told you this system was designed as a media PC and on Windows 7 (that even updates ARE disabled on as too many problems over the years), I don't even think PowerShell is installed (I believe it's an optional feature in 7). I was not kidding !
Note, this system is not used for anything else, Not even a browser is opened on it unless it's for a driver, Even the host file is broken down so every ad site is blocked.
Anyway, the Atari 2600 finished up (250 or so roms), still the XML file and the Images are in the ROM folder, NOT in the \downloaded_images or \gamelists.(there are separate root folders for it)
I tried this before, leaving the XML in the folder with the images but, it didn't do anything or moving the files to the correct directories didn't do anything.
Here is something, I don't know how ES on windows processes information. Can it be manually imported ? What can I do with the xml to get it in the system with the according folder layout ?
sigh, so close...
Edit: finished up, looking over the Atari 2600 games, OMG it found like 99% of them, The built in thing only found about 15 out of 250ish. I really hope I can get this working !!!!
Edit 2: Oh, well.... Ran ES, No data updates keeping the files where they are (as your script created). Anyone else running the Windows version of ES using this and how did they get the data/images working correctly ?
The data and images are there, how can I use them ??
-
@DavidinCT OK, I think this needed it's own post. I did get it WORKING and working in ES on Windows...paradadf you have been moved to a GOD status in my book !
FIRST CLOSE ES and MAKE SURE it's not running in the task manager.
Ok, When this script runs on Windows, it creates in the folder in the roms folder for each system. For example.
Roms\nes
Roms\nes\downloaded_images (Image store)
Roms\nes\gamelist.xml (game list and meta data)
and
Roms\nes_nes_missing.txt (roms that were not found)In the Windows version,
There is a few folders where this data is stored. Starting in the root of the <user> folder by default.C:\users<user name>.emulationstation
C:\users<user name>.emulationstation\roms
C:\users<user name>.emulationstation\downloaded_images
C:\Users<user name>.emulationstation\gamelistsIn each of the ROM, Downloaded_images and gamelists, there are sub folders for each system, named accordingly, like nes, snes, atari2600, etc. So they should all line up.
Now looking over the NEW gamelist.xml that is in your ROM folder...here is an example...
<path>./Castlevania 64.n64</path>
<name>Castlevania (USA)</name>
<desc> (SNIPPED FOR EXAMPLE).</desc>
<image>./downloaded_images/Castlevania 64-image.jpg</image>The problem is, the image store is and as this is n64 game...
C:\users<user name>.emulationstation\downloaded_images\n64So you would need to change that to, again example
~/.emulationstation/downloaded_images/n64With notepad++ you can do a easy search and replace. save the file, drop in the correct folder (.emulationstation\gamelists<system name>) and over write the old one, then CUT all the images out of the downloaded_images folder (in the rom folders, and move them to the official store .emulationstation\gamelists<system name>)
Once this is done restart ES and enjoy your new images.
Hope this helped someone !
-
@DavidinCT I meant to just scrape using a real pc and then transfer it over. You could even scrape over the network if your roms are on a network share. Anyway, glad it worked. You must close ES before editing the gamelists, I thought that was obvious, sorry I didn't mentioned it.
-
@paradadf I'm just a Windows user, so thanks for your help again. After moding your script to fit my needs. I didn't even know what a Recallbox was till this morning. Sorry about that.
The machine is a HTPC, and for the roms, I dropped in a SSD so I get performance on them, they are in the local machine. By just dropping things in the ROM folder, it saves me a hassle anyway, as my roms are NOT on the drive. I just dont like how I see the desktop when loading a rom from ES...sigh, nothing I can do about that one.
I did need to edit the XML for it to work (it's nice too, as I can edit the name MUCH easier than in ES),
Going through all the NES Roms for example with the built in thing (with 46 roms), it would take hours and time out 1/2 the time, so about 50% of them had no data (once it times out, it's done till you do a new search). With this script, it found 99% of them (a few not found ones but, those I can do manually or find a new rom) and only took about 45 seconds...
Loving it... In my tool box for life...
-
@DavidinCT I only created the script, but the credit for the scraper goes to sselph.
Also, take a look for the Universal XML Scraper if you don't know it yet ;). -
@paradadf said in [BATCH] Scrape your roms on your PC - fastscraper:
@DavidinCT I only created the script, but the credit for the scraper goes to sselph.
Also, take a look for the Universal XML Scraper if you don't know it yet ;).What is it and what does it do ? I'm using Notepad++ (Notepad on steroids one of my fav apps)
Thanks again for your help !
-
@DavidinCT just do a simple search on this forum and find it out.
-
@paradadf Hello I have move my ROMS to PC but I cant find the .bat file to download it from github.The link I have is this https://github.com/sselph/scraper/releases but where is the bat file I dont know. I know that this is a 1st class NEWBE question but please show me the obvious because I m STUCK
-
@levendis32 you should always read the very first entry on any topic. That's where usually the instructions are
Just right click and download as...
https://raw.githubusercontent.com/paradadf/recaltools/master/fastscraper/fastscraper.batfastscraper automatically downloads sselph's scraper.
-
I like your script, it's pretty effective. I have one request, for game naming: is it possible to extract game names from their file, without having the bracket stuff and the file ending in it? e.g. if my SNES rom is called "Ys V - Kefin, Lost Kingdom of Sand (J) [T+Eng 1.00 Aeon Genesis].zip" your script either make the game names like the file itself or takes the name from the Database which will turn into "Ys V: Ushinawareta Suna no Miyako Kefin", I'm not happy with either of those and would simply prefer "Ys V - Kefin, Lost Kingdom of Sand", substring from file name before the first bracket. maybe you can add an option to set the game name stripped from the filename without the stuff in the brackets and without the .zip etc. ending? just a suggestion...
-
@paradadf looks like your script doesnt add file endings already, but I would prefer to not see the stuff in (...) and [...] in the game name
-
@gmgman the name convention doesn't come from my script but from the scraper itself. But I can try to add that option for you. I'm pretty busy right now though, so it might take me a while.
The only problem I see is that you might end up with many duplicates if you don't clean up your romset properly.
I'll let you know when the feature is implemented.