Making premade gamelist.xml with xtra media collections
-
@meleu Wow.... what did you just do?
Old times: 6m4s/4m34s/1m13s
New times: 1m5s/0m33s/0m19sYou just cut the time down to about 20% of what it was before!
-
@Used2BeRX said in Making premade gamelist.xml with xtra media collections:
@meleu Wow.... what did you just do?
Tweaks on
find
command.Now let's see the time for the complete atari2600 set! :-)
EDIT
And check if the gamelist.xml is fine, please. -
@meleu Just finished running the full
--no-desc
30m12s, 17m58s, 8m10sI'm going to check to see if there were any problems with it now.
-
@meleu 100% hits for boxart so that means that it worked perfect for path and image :)
Had to do a long overdue reboot so it took a while for me to get back up but I did a few others while I was waiting.
Atari 7800: 3m44s, 2m11s, 0m57s
Atari Lynx: 3m25s, 1m56s, 0m54s
Atari 5200: 19m17s, 12m43s, 4m51sCURRENT ISSUES:
-
None of the `<path/> were written for Atari 5200/800. This might be because it's a special case. Of all of the systems I have for the RetroPie, this is the only one that you can't ZIP the files. All 5200/800 images I have are in BIN format.
-
Folders for other systems are being added to "atari2600_gamelist.xml". (I know why this is happening. All of my folders.txt files still say the information for the Atari 2600).
-
With the Atari 5200/800, I'd like for them to all write to atari5200_gamelist.xml. I don't include a lot of 800 games in my collection and rather than have two entries for it in the system I have all of the roms and media in the 5200 file structure, so I was wondering if we could maybe do somthing about putting those two scripts together. If that's too much of a hassle, no worries. I can just manually combine them when I'm done.
I went through both Atari 7800 and Atari LYNX and we have 100% boxart showing up for both of them as well!!!
As soon as I get the folder synopsis text files updated the folders should work perfect the next time I run the script.
Looking great though.
Now that we got the speed issue handled, I was wondering if we could talk about a few more options to add to the script?
I had a few ideas, such as creating all of the gamelist.xmls for all existing systems one after another without having to be there to put in the next command.(or from a list I could create in a file).
I was also thinking that we could do a
--no-desc
but with all of the Artwork folders, and then there could be a script that would easily change all of the entries to point to a different piece of artwork (ie: displaying action shots for all of the games instead of Boxart). -
-
CURRENT ISSUES:
- None of the `<path/> were written for Atari 5200/800. This might be because it's a special case. Of all of the systems I have for the RetroPie, this is the only one that you can't ZIP the files. All 5200/800 images I have are in BIN format.
Yep. The script was only trying to find
.zip
. I've made it search for.bin
too. Do you have other extensions?- Folders for other systems are being added to "atari2600_gamelist.xml". (I know why this is happening. All of my folders.txt files still say the information for the Atari 2600).
Exactly. The synopsis.txt files must be accurate. In this case, the problem is in the
Platform:
field.- With the Atari 5200/800, I'd like for them to all write to atari5200_gamelist.xml. I don't include a lot of 800 games in my collection and rather than have two entries for it in the system I have all of the roms and media in the 5200 file structure, so I was wondering if we could maybe do somthing about putting those two scripts together. If that's too much of a hassle, no worries. I can just manually combine them when I'm done.
The script puts every entry on its own platform gamelist.xml. Do they use the same emulator in RetroPie? Anyway, if you want to see atari 800 games in the atari 5200 you'll have to combine manually, as you said.
I had a few ideas, such as creating all of the gamelist.xmls for all existing systems one after another without having to be there to put in the next command.(or from a list I could create in a file).
You can give everything in only one command line. Like this:
./Used2BeTXT /path/to/atari2600/synopsis/*.* /path/to/nes/synopsis/*.* /path/to/megadrive/synopsis/*.*
I was also thinking that we could do a
--no-desc
but with all of the Artwork folders, and then there could be a script that would easily change all of the entries to point to a different piece of artwork (ie: displaying action shots for all of the games instead of Boxart).I've added the
--image
option. Then you can do:./Used2BeTXT --no-desc --image 3dbox /path/to/atari2600/synopsis/*.*
And the generated gamelist.xml will have the
<image>
pointing to the 3D Box art.Edit: Run
--help
to see the--image
details.It's not fast if you just wanna change this field on an existing gamelist.xml. But if you just wanna do that, you don't need a script. You just need a basic knowledge about
sed
command. I'll leave this task with you. ;-) -
The script was only trying to find .zip. I've made it search for .bin too. Do you have other extensions?
This won't increase search time, will it? All consoles have
.zip
except for.bin
in 5200. I haven't tried any CD consoles yet, but.bin
will probably be an issue there. I'm pretty sure that with SegaCD and TurboGrafxCD it will need to look for.cue
and actually NOT look for.bin
The script puts every entry on its own platform gamelist.xml. Do they use the same emulator in RetroPie? Anyway, if you want to see atari 800 games in the atari 5200 you'll have to combine manually, as you said.
Yeah. They both use the same emulator.
You can give everything in only one command line. Like this:
./Used2BeTXT /path/to/atari2600/synopsis/*.* /path/to/nes/synopsis/*.* /path/to/megadrive/synopsis/*.*
Is it possible for me to write the command once and save it so I can just type a quick command to run it?
I've added the --image option. Then you can do:
./Used2BeTXT --no-desc --image 3dbox /path/to/atari2600/synopsis/*.*
What does
--image
alone do? Does it add all of the image file fields, but default to Box Front? And then it would change it to 3D Box art or other types if I put the second command after it?It's not fast if you just wanna change this field on an existing gamelist.xml. But if you just wanna do that, you don't need a script. You just need a basic knowledge about sed command. I'll leave this task with you. ;-)
The reason I wanted the
--image
option to add all 5 types of artwork is because before I had any help writing scripts I did this switch between artwork types manually myself with a fewsearch and replace
commands in Notepad++.I was hoping that if the
--image
option wrote all 5 fields for all 5 pieces of artwork, that a quick script could be written that would automatically do this. For instance, if you wanted to showTitle shots
, but it was currently showingBox Front
, the script would first replace all<image></image>
lines to be<boxfront></boxfront>
and then replace all<title></title>
lines to be<image></image>
.But... It would have to do this ONLY in
<game>
entries. The script would break the<folder>
if it changed the<image>
fields for the folders. -
@meleu BTW dude... I've been learning some cool stuff in a great photo manipulation program called paint.net. Never did any graphic arts before and I always thought Photoshop was too complicated to bother learning...
Check these folder images out. :)
ATARI 5200 PROTOTYPES / HOMEBREW
US LICENSED GAME GEAR:
EUROPE LICENSED GAME GEAR:
JAPAN LICENSED GAME GEAR:
-
@meleu Yes... I definitely think we need a way to simplify a command that makes a gamelist.xml for all of the systems. I just started the script for all included systems so far and this is what it looked like:
time ./Used2BeTXT.sh --no-desc /home/pi/RetroPie/Media/atari2600/Synopsis/*.* /home/pi/RetroPie/Media/atari5200/Synopsis/*.* /home/pi/RetroPie/Media/atari7800/Synopsis/*.* /home/pi/RetroPie/Media/atarilynx/Synopsis/*.* /home/pi/RetroPie/Media/gamegear/Synopsis/*.* /home/pi/RetroPie/Media/gb/Synopsis/*.* /home/pi/RetroPie/Media/gba/Synopsis/*.* /home/pi/RetroPie/Media/gbc/Synopsis/*.* /home/pi/RetroPie/Media/mastersystem/Synopsis/*.* /home/pi/RetroPie/Media/megadrive/Synopsis/*.* /home/pi/RetroPie/Media/nes/Synopsis/*.* /home/pi/RetroPie/Media/ngp/Synopsis/*.* /home/pi/RetroPie/Media/pcengine/Synopsis/*.* /home/pi/RetroPie/Media/sega32x/Synopsis/*.* /home/pi/RetroPie/Media/sg-1000/Synopsis/*.* /home/pi/RetroPie/Media/snes/Synopsis/*.* /home/pi/RetroPie/Media/videopac/Synopsis/*.* /home/pi/RetroPie/Media/virtualboy/Synopsis/*.* /home/pi/RetroPie/Media/wonderswan/Synopsis/*.*
Not fun.... :(
Anyway....
I completed editing EVERY folder synopsis file, so once this finishes running I should be able to compile a full list of any problems with the script for every system except for the CD based systems.
I'll let you know more as soon as I know.
Thanks again.
-
I've just noticed that there's a smallbug in the code when some metadata has
&
and you re-run the script with the same synopsis. I'm trying to fix it now. In the first run (creating a new entry in the gamelist.xml) this bug doesn't happen.This won't increase search time, will it?
Maybe some miliseconds. But the script must be able to find those files, doesn't it? :-)
I haven't tried any CD consoles yet, but
.bin
will probably be an issue there. I'm pretty sure that with SegaCD and TurboGrafxCD it will need to look for.cue
and actually NOT look for.bin
OK, I've made the script search for
.cue
ifMedia: CD
, no matter what platform it is.Is it possible for me to write the command once and save it so I can just type a quick command to run it?
Yes, you can create an alias. But if you prefer to create a list in a file, I can show you some tricks on how to use this file (nothing to be changed in the script).
What does
--image
alone do?gives an error message and exit.
I'm planning add more options for
<image>
soon. -
@meleu Yes... I definitely think we need a way to simplify a command that makes a gamelist.xml for all of the systems.
I definitely think you need to invest some time to learn the basics of Linux shell. :-)
That huge command can be simplified to:
time ./Used2BeTXT.sh --no-desc /home/pi/RetroPie/Media/*/Synopsis/*.*
Also, don't know if you are aware, but you can auto-complete some commands using TAB key.
I've updated the script a few minutes ago. Small bugfixes and added the
--only-image
option (see--help
to get details).It was fun, I learned some
find
andxmlstarlet
tricks, but I think I'm done with it. Time to move on... -
I've just noticed that there's a smallbug in the code when some metadata has & and you re-run the script with the same synopsis. I'm trying to fix it now. In the first run (creating a new entry in the gamelist.xml) this bug doesn't happen.
No worries. I'm creating all new gamelist.xml files right now.
Maybe some miliseconds. But the script must be able to find those files, doesn't it? :-)
Milliseconds on your PC probably adds a lot on the Pi Zero. I don't have a time for just Atari 2600 since I was doing all of them, but I think it's taking 3-4 seconds each entry compared to the 2 seconds it was taking before. Maybe a separate script for the Atari 5200 is in order?
OK, I've made the script search for .cue if Media: CD, no matter what platform it is.
Nice... I won't be able to test this until I have a Pi 3 though, unfortunately :(
Yes, you can create an alias. But if you prefer to create a list in a file, I can show you some tricks on how to use this file (nothing to be changed in the script).
I'd be interesting in learning more about this. I gave you the full command above... what would I do with that to run it without typing 1,000 characters next time?
I'm planning add more options for <image> soon.
Sweet.
The script is still running. I started it over 5 hours ago and right now it's on the megadrive. Still got quite a lot to go through with some smaller systems as well as the TurboGrafx and SNES.
-
@meleu said in Making premade gamelist.xml with xtra media collections:
@meleu Yes... I definitely think we need a way to simplify a command that makes a gamelist.xml for all of the systems.
I definitely think you need to invest some time to learn the basics of Linux shell. :-)
That huge command can be simplified to:
time ./Used2BeTXT.sh --no-desc /home/pi/RetroPie/Media/*/Synopsis/*.*
Also, don't know if you are aware, but you can auto-complete some commands using TAB key.
I've updated the script a few minutes ago. Small bugfixes and added the
--only-image
option (see--help
to get details).It was fun, I learned some
find
andxmlstarlet
tricks, but I think I'm done with it. Time to move on...Ah... didn't notice you posted this before I replied.
Still have some possible issues that I mentioned though. I think we effectively doubled the search time by adding the BIN files to the search for the 5200.
-
@meleu I'm still making pics for the folders on about 3 more systems before I test this out, but the script finally finished!!! Just wanted to give you the time.
673m44s, 420m10s, 197m50s.
-
@Used2BeRX said in Making premade gamelist.xml with xtra media collections:
I think we effectively doubled the search time by adding the BIN files to the search for the 5200.
The searching for bin occurs only when platform is atari5200 or atari800.
-
@meleu 1st run through is done and the results are great overall.
100% HITS FOR THE FOLLOWING SYSTEMS!!!:
Atari 2600
Atari 7800
Atari LYNX
Game Gear
Gameboy Advance
Gameboy Color
Neo Geo Pocket/Neo Geo Pocket Color
Sega 32x
Sega SG-1000
Wonderswan/Wonderswan ColorMAJOR FULL-SYSTEM PROBLEMS:
-
SNES did not work. 338kb gamelist.xml file was created, but not a single rom or image was entered in the fields. Instead of writing to
"snes_gamelist.xml"
it wrote to"-supernintendoentertainmentsystem_gamelist.xml"
. -
Odyssey 2 did not work. It makes
magnavoxodyssey2_gamelist.xml
, but RetroPie is expectingvideopac
for the folder, so it didn't find any roms or media. -
Virtual Boy didn't work. It makes
gamelist.xml
with no other identifiers. RetroPie is expectingvirtualboy
for the folder.
FIXES TO SYNOPIS I MADE:
Changed "Platform: " on the following.
All "Atari 800" to "Atari 5200"
All "Sega Net" to "Sega Genesis / Mega Drive"
All "The Famicom Disk System" to "Nintendo Entertainment System"Big thing to note is that you cannot have two 1st line synopsis.txt descriptions in the same gamelist.xml. It confuses the script. So I made the following changes by system to get the rest of the working systems up to 100%
TurboGrafx:
(2) Translated Hu-Card Games
(2) Translated CD Games
Bonk 3: Bonk's Big Adventure (CD)
Altered Beast (CD)NES:
Metroid (Famicom Disk System)
Clu Clu Land (Famicom Disk System)
Gyruss (Famicom Disk System)
Kid Icarus (Famicom Disk System)
Super Mario Bros (Famicom Disk System)
Super Mario Bros 2 (Famicom Disk System)
Vs Excite Bike (Famicom Disk System)
AD&D Dragons of the Flame (Translated)
Battleship (Unlicensed)
Contra (Translated)
Maniac Mansion [Uncensored]
Ms. Pac-Man (Unlicensed)
Rainbow Islands (Europe)
Fantasy Zone I (Japan)
Super Mario Bros. 2 (Japan)
Othello (Australia)
Airwolf (Translated)
Contra (Translated)
Squoon (Translated)
Super Mario Bros. 2 (Prototype)
"Adult Games" 2/3rds of them were "Famicom Disk System" and showed up after changing this to "Nintendo Entertainment System"GAME BOY:
Bomberman GB (Japan)GENESIS:
Dynamite Headdy (Japan)
Rings of Power: The Hands of Fate (Hack)MASTER SYSTEM:
Pit Pot..... accidentially had it listed as Game Gear.
Assault City (Light Phaser Version)ATARI 5200:
Centipede (Atari 800)
Choplifter! (Atari 800)
Crystal Castles (Atari 800)
Mario Bros. (Atari 800)
Qix (Atari 800)
Rally Speedway (Atari 800) -
-
@meleu Any ideas about SNES, Virtualboy and Odyssey 2, meleu?
I'll have to look deeper into those individual game errors on the other systems, but if you look at my last post you'll see a section for "Major Problems" detailing why I can't get any of those gamelist.xml files to work with the script.
It looks like based off of the
Platform:
field, it's not looking in the correct folders for roms or media. -
@Used2BeRX I'll look into it when I have a chance, I think I know what's happening... No need to change txt files on your end.
-
@Used2BeRX I've fixed the snes issue and then the kids dragged me to play. :-)
Please test the snes synopsis conversion.
-
@meleu I already made all the synopsis changes on my end for the individual things above. Most notably changing all "Atari 800" to "Atari 5200", "Famicom Disk System" to "Nintendo Entertainment System" and "Sega Net" to "Sega Genesis / Mega Drive".
I'm actually in the process of re-running all of the gamelists right now. After making those changes to all of the games with the same name, I also had to delete a lot of entries from the original gamelists because they were bad. When it was getting confused, sometimes it was putting the Japanese or Translated version paths for the US version. But when I deleted that entry and re-ran the system, it was finding the other rom and not putting the US one in.
I don't know if I actually fixed anything by changing the name because of this, so I decided to re-run everything from scratch and then re-check the results and see where I land after all of these changes.
I won't probably be able to test out the SNES for at least 6 hours, but I'll let you know.
-
I won't probably be able to test out the SNES for at least 6 hours, but I'll let you know.
I'm afraid that the wisest decision would be to cancel this execution,
--update
and run it again. :-)By the way, in the pack of synopsis you sent me doesn't have synopsis for Virtual Boy games. Can you upload it somewhere?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.