How do you edit the gamelist.xml manually?
-
I'm not sure if an editor is going to help much, but I see a few workarounds for this:
- when editing your
gamelist.xml
to add hacks info, add a custom attribute to thegame
entry
Before scraping, backup these entries to an additional file with<game mine=1> <path>ROM_Path</path> <name>Blah</name> </game>
xmlstarlet
:xmlstarlet sel -t -m '//game[@mine=1]' -c . ~/roms/ngpc/gamelist.xml > ~/roms/ngpc/gamelist_mine.xml
When using
skyscraper
, instruct it to ignore any non-scraped entries and to no add them to the gamelist, with theskipped
flag. After scraping is done, add the entries from your backup to your main gamelist.- (best option) add the necessary ROM metadata to Skyscraper's cache - either using the import module (if you need image/video) or via the cache editing options.
EDIT: forgot that
skyscraper
has an ES gamelist scraping module. As an addendum to the 2nd option presented above, you can scrape your games using it. The info you added to the games in thegamelist.xml
files should be added to the cache, so it will help when re-generating thegamelist.xml
again. - when editing your
-
Hi
I am trying to learn programming. I have created a small program. it works for me but it has a few bugs.
-
@Bluescreen This looks great and is what I was looking for. Is this more of a private helper application that you developed for yourself?
@WeirdH When I learned and experimented with RetroPie and the scrapers (years back now) I experienced a few problems with append operation. Don't ask me what problems these was. From that point I decided to go with overwrite and two files, just in case.
@mitu Actually, the introduction of a custom attribute is a good idea to quickly find any custom or edited entry. For the way you suggest: if I have to copy the custom entries and save them to a custom xml and reinstert them after scraping... that is actually more work for me than what I do now. I could just cut out the first work of getting them from the main list. But I guess this is just a workflow thing and could be automated anyway, so thanks for the idea.
I never used Skyscraper. It looks promising and maybe I should change my default scraper, especially if it have the functionality I need.So for now I need to evaluate what to do next and this can take ages. In the meantime if someone else have ideas or tools which helps you, you can post them here too.
-
@thelostsoul Yes its a private helper application. i learn coding, and this is my learning projekt.
ItΒ΄s works for the most. The program is slow from time to time and has a few small errors.
works very well for a learning project. I can send you the program if you want-Features
-XML read write
-check whether files are available.
-ID and Info: opens the Screenscraper page with the ID of the respective game (cover, marquee, video etc)
-Bugs ;)sorry my english is not the best.
-
@Bluescreen said in How do you edit the gamelist.xml manually?:
@thelostsoul Yes its a private helper application. i learn coding, and this is my learning projekt.
ItΒ΄s works for the most. The program is slow from time to time and has a few small errors.
works very well for a learning project. I can send you the program if you want-Features
-XML read write
-check whether files are available.
-ID and Info: opens the Screenscraper page with the ID of the respective game (cover, marquee, video etc)
-Bugs ;)sorry my english is not the best.
Your English is very good actually.
Looking at this I think there may be a few more people interested in your little "learning coding" project.
May be the mods can direct as to a way of getting it out there - with your permission of course. -
@Impman66 said in How do you edit the gamelist.xml manually?:
Your English is very good actually.
Looking at this I think there may be a few more people interested in your little "learning coding" project.
May be the mods can direct as to a way of getting it out there - with your permission of course.I do not have a problem with that. the code only looks dirty;)
but i think most only want the program and not the code -
@Bluescreen I would be interest in the code. The program looks nice and promising.
-
@Bluescreen I guess it is a Windows only app, as you are learning right now. Does it run in Linux? I would want to have a little look at the application and if possible in the code, just curious.
-
@thelostsoul
ItΒ΄s a Windows only app. i don't know much around linux.password is: retropie
only the app with 4 test entries for the snes. I can also upload the 20gb (without video and roms) or the full 80gb (without roms)
@Gamesman i can upload the code or the complete projectfile
-
I wasn't happy, so I made my own tool: https://retropie.org.uk/forum/topic/27466/gamelist-addon-an-assist-tool-to-manually-add-new-game-entries. Unlike the other tools, this is really just to add new games and not a general scraper or editing tool.
@Bluescreen, I had a quick look at the folder structure to see whats inside. Because its interesting. :-) About the 20gb, I am not really interested into the images itself (I suppose thats what the 20gb are).
What test entries do you have and what are you testing? I am absolutely not sure here what to test. -
@thelostsoul open the snes list via my program. the first 4 entries are with game information, cover video and marquee.
to see what it looks likeedit
my tool does exactly the same as yours. the only difference is video marquee and video display. It can't scrape. just edit the gamelist.xml.
I'm glad you programmed one yourself.
-
@Bluescreen Unfortunately I can't test it, because as said before I am on Linux. I tried it on a very old Win10 virtual machine, but it does not work. Probably because of too old libraries.
The tool I have created do not edit in the sense of deleting stuff and it does not show a table. Its really just adding new games only, as this is exactly the only thing I need. -
Just saw this app related to this topic. Its not exactly what I am looking for, just want to link it here: RetroPi Media - gamelist.xml generator
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.