PlayingKarrde / gameOS

Pegasus Frontend theme gameOS
GNU General Public License v3.0
133 stars 36 forks source link

Help with images #188

Open JackTYM opened 2 years ago

JackTYM commented 2 years ago

Hello! I started using gameOS today, and when trying to setup all the images, the only things that actually come up are the videos for each game.

I am using Skraper for my images, and I did notice that the generated gamelist.xml only generates tags for

<image>
<thumbnail>
<video>

and when I convert it to metadata.txt (using the linked converter) they only have

assets.boxfront (Converted path matches the <image> tag aka the game screenshot)
assets.video (Converted path matches the <video> tag aka the video)

I attempted manually setting the metadata.txt options, but it didn't work (My attempt)

assets.boxfront: ./media/box2dfront/Doom (USA).png
assets.logo: ./media/wheel/Doom (USA).png
assets.background: ./media/fanart/Doom (USA).png
assets.video: ./media/videos/Doom (USA).mp4

Once again, when rebooting the only thing that loads is the video

What I have tried: I doublechecked that the Skraper resources are being checked for

Tree Path Example

C:.
│   Castlevania (USA) (Rev 1).nes
│   gamelist.xml
│   Kirby's Adventure (USA) (Rev 1).nes
│   metadata.txt
│   Super Mario Bros. (World).nes
│   Super Mario Bros. 3 (USA) (Rev 1).nes
│
└───media
    ├───box2dfront
    │       Castlevania (USA) (Rev 1).png
    │       Kirby's Adventure (USA) (Rev 1).png
    │       Super Mario Bros. (World).png
    │       Super Mario Bros. 3 (USA) (Rev 1).png
    │
    ├───fanart
    │       Castlevania (USA) (Rev 1).jpg
    │       Kirby's Adventure (USA) (Rev 1).jpg
    │       Super Mario Bros. (World).jpg
    │       Super Mario Bros. 3 (USA) (Rev 1).jpg
    │
    ├───images
    │       Castlevania (USA) (Rev 1).png
    │       Kirby's Adventure (USA) (Rev 1).png
    │       Super Mario Bros. (World).png
    │       Super Mario Bros. 3 (USA) (Rev 1).png
    │
    ├───videos
    │       Castlevania (USA) (Rev 1).mp4
    │       Kirby's Adventure (USA) (Rev 1).mp4
    │       Super Mario Bros. (World).mp4
    │       Super Mario Bros. 3 (USA) (Rev 1).mp4
    │
    └───wheel
            Castlevania (USA) (Rev 1).png
            Kirby's Adventure (USA) (Rev 1).png
            Super Mario Bros. (World).png
            Super Mario Bros. 3 (USA) (Rev 1).png

Anything else I can try to fix this?

oskcobb commented 1 year ago

I'm having the same issue, did you ever happen to find a fix?

mcpalmer1980 commented 1 year ago

In my experience gameOS uses screenshot for game images, and puts the logo on top. I do not included assets in pegasus.metadata.txt at all, but have properly named images instead:

clear logo: media/wheel box: media/box2dfront screenshots: media/screenshot videos: media/videos

electronight commented 1 year ago

I am only seeing these as the entries:

        game.assets.screenshotList.forEach(v => mediaList.push(v));
        game.assets.backgroundList.forEach(v => mediaList.push(v));

I think this is where the lack of support starts. I tried adding other items such as boxback and cartridge, but it did not have support for this. It seems to be in the api call (api.allGames.get(0)).

electronight commented 1 year ago

I got it to work. You need to change the GameDetails/GameView.qml file.

Line 62 under the mediaArray function just add the lines for your media you want.

if (game && game.assets.cartridge) { game.assets.cartridgeList.forEach(v => mediaList.push(v)); }

if (game && game.assets.boxBack) { game.assets.boxBackList.forEach(v => mediaList.push(v)); }