Tutorial - How to make a theme for Emulationstation and RetroPie
-
@winnetouch Without seeing the code there isn't much I can do to help. Can you paste the code into a pastebin dump and give us the link?
-
@mattrixk I realized what the problem was. I already had roms loaded in to my pi and had to create a folder and theme.xml for every single existing system that displayed, including the retropie folder. Without that the whole theme doesn't work.
Now I'm facing another problem. In the detailed view I don't want certain metadate like to display. I want only the image, game list and game description to display. I tried making the text transparent with this:
<text name="md_lbl_rating, md_lbl_releasedate, md_lbl_developer, md_lbl_publisher, md_lbl_genre, md_lbl_players, md_lbl_lastplayed, md_lbl_playcount">
<color>00000000</color>
<forceUppercase>1</forceUppercase>
<fontPath>./_inc/fonts/Roboto-Medium.ttf</fontPath>
<fontSize>0.04</fontSize>
<size>0.24 0.01</size>
</text><text name="md_developer, md_publisher, md_genre, md_players, md_playcount">
<color>00000000</color>
<forceUppercase>0</forceUppercase>
<fontPath>./_inc/fonts/Roboto-Light.ttf</fontPath>
<fontSize>0.04</fontSize>
<size>0.23 0.02</size>
</text>
<datetime name="md_releasedate, md_lastplayed">
<color>00000000</color>
<forceUppercase>0</forceUppercase>
<fontPath>./_inc/fonts/Roboto-Light.ttf</fontPath>
<fontSize>0.04</fontSize>
<size>0.23 0.02</size>
</datetime>But no matter what I type the text isn't transparent :P
-
@winnetouch I don't think you can do transparency on text (but don't quote me on that). What you can do is set
<pos>1 1</pos> <origin>0 0</origin>
and that basically tells the top left of the text to be positioned 100% from the top and 100% from the left, effectively hiding the text under the view-able area.
I think there are other ways to do it, but is all I can think of at the moment. I hope it helps.
-
Thank you. That was my plan B if transparency wasn't an option :P.
-
@mattrixk said in Tutorial - How to make a theme for Emulationstation and RetroPie:
@winnetouch I don't think you can do transparency on text (but don't quote me on that). What you can do is set
<pos>1 1</pos> <origin>0 0</origin>
and that basically tells the top left of the text to be positioned 100% from the top and 100% from the left, effectively hiding the text under the view-able area.
I think there are other ways to do it, but is all I can think of at the moment. I hope it helps.
Wel... Tried it... Doesn't work. Or maybe i put the code in the wrong place but adding that to any of the <text></text> lines crashes the template.
-
@winnetouch Sorry, my bad. I just had a look at the ES Themes.md documentation for the <text> element. The <pos> will work, but <text> doesn't accept the <origin> element. That is what is breaking your theme.
(it's been a while since I've gone through the docs)
-
Hey. I'm going through the tutorial right now, but I'm stuck at the beginning. No matter what I do, the background color refuses to change.
I tried what @winnetouch did and made sure I had the theme.xml in each system folder, but still nothing.
Here's what my code looks like: http://pastebin.com/DA52rHRHEDIT: If it's any help, I'm using the portable ES build on Windows. I'm running it from a USB stick.
-
@bumber I figured it out. There was a single extra slash in the closing tag for the theme.xml in each folder... Man, I'm bad at paying attention to details like that.
-
@bumber I'm glad you figured it out. I'll quite often miss a semi-colon or something and wonder why my code won't work. Sorry I didn't help earlier. I read your post as I was about to leave work. I had a quick glance over your code but nothing jumped out at me. I was going to have a proper look when I had the chance, but it appears you've beaten me to it. Good job.
-
@mattrixk
Hey there, i'm trying to create a rick and morty based theme for a console that i'm building. I'm usually pretty goo at coding when it comes to following simple instructions like this, but i seem to be having some trouble.
I've followed the tut all the way to the part where it's time to start adding pictures and color, so right now it's at the point where everything is in plain font and white background. I've started the coding, but when i checked if it was working, nothing was loading. the theme name changed and i can switch back and forth from it to other themes, but it won't let me call any images. I'm doing this on the raspberry pi 3 b, so i changed the filepaths accordingly. nothing seems to work for me. Is there something really simple that I'm possibly missing? -
@TCMOrangeJoe At some point your theme fails to be loaded correctly, most probably the XML parsing is failing at some typo or other error. when you run emulationstation with the '--debug' flag, do you get any additional logging? That might point you into the direction where things are going awry.
-
@Zigurana i'm really sorry, i'm not sure if i'm doing that correctly. i quit es, then typed emulationstation --debug. when i quit es again and look through the log that is now visible on screen i can't find anything that has to do with the theme not loading, just the systems that i don't have games for.
-
@TCMOrangeJoe it's at the beginning, so it might just have scrolled passed the buffer-lenght? If you do this on the RPi, there should also be a logfile written to disk somewhere, maybe home/.emulationstation/debug.log? (this from memory so probably wrong)
-
Use an XML validator to check your XML code
-
@TCMOrangeJoe You could put the code in a pastebin for us to have a look at, we might be able to spot the problem.
-
@mattrixk Is the Tutorial still existing?? Thanks.
-
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.