• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Fun Facts Splashscreens

Scheduled Pinned Locked Moved Projects and Themes
splashscreenscarbon
102 Posts 13 Posters 22.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    Parviglumis @hiulit
    last edited by 28 Oct 2017, 03:38

    @hiulit

    Yes, I did use them as an initial splashscreen. But that is an awesome idea! All of you are wizards.

    Please feel free to take this in any direction you want (not like you needed my permission lol). But I am really happy with all the new ideas! Sorry that I am totally useless when it comes to coding.

    1 Reply Last reply Reply Quote 0
    • D
      detron
      last edited by 28 Oct 2017, 03:57

      I also think this is really cool.

      the images would be amazing, but even if it is only used on the command line through forture | cowsay it would still be cool

      alt text

      1 Reply Last reply Reply Quote 0
      • H
        hiulit
        last edited by 8 Nov 2017, 15:52

        I just wanted to let you know that I've started working on this project.

        I'll keep you updated ;)

        P.S. Looking good!
        0_1510156218247_Captura de pantalla 2017-11-08 a les 16.49.26.png
        P.P.S. @meleu When using convert, it takes a lot of time. I'm working on a Virtual Machine. Maybe it's that. I don't know. Here's a snippet of what I'm doing:

        convert splash4-3.png \
            -size 1000x100 \
            -interline-spacing 5 \
            -background transparent \
            -fill white \
            -caption:"${fun_facts[$random_number]}" \
            -gravity south \
            -geometry +0+25 \
            -composite \
            result.png
        

        And here's what time outputs:

        real 0m7.172s
        user 0m6.300s
        sys  0m0.656s
        

        My little contributions to the RetroPie project:

        • Shell-Script-Boilerplate
        • Fun-Facts-Splashscreens
        • Limit-Last-Played-Games
        1 Reply Last reply Reply Quote 1
        • H
          hiulit
          last edited by 8 Nov 2017, 16:39

          BTW, if anyone wants to tinker, here's the GitHub's repo https://github.com/hiulit/es-fun-facts-splashscreens

          My little contributions to the RetroPie project:

          • Shell-Script-Boilerplate
          • Fun-Facts-Splashscreens
          • Limit-Last-Played-Games
          M 1 Reply Last reply 8 Nov 2017, 17:14 Reply Quote 1
          • M
            meleu @hiulit
            last edited by 8 Nov 2017, 17:14

            @hiulit hey man! Well done!! ;-)

            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            H 1 Reply Last reply 8 Nov 2017, 17:18 Reply Quote 1
            • H
              hiulit @meleu
              last edited by 8 Nov 2017, 17:18

              @meleu Thanks! :D It's super basic now, but it seems to be working. Now it's time to take a look at your generate-launching-imagesscript and improve mine ;)

              My little contributions to the RetroPie project:

              • Shell-Script-Boilerplate
              • Fun-Facts-Splashscreens
              • Limit-Last-Played-Games
              M 2 Replies Last reply 8 Nov 2017, 17:21 Reply Quote 0
              • M
                meleu @hiulit
                last edited by 8 Nov 2017, 17:21

                @hiulit I'm glad to know it can inspire you. I usually spend sometime making my code readable just to help others to understand it (including @meleu in the future). Knowing that you're reading it and getting some inspiration makes me feel like the work was worth it. :D

                Let me know if you have any doubt!

                • Useful topics
                • joystick-selection tool
                • rpie-art tool
                • achievements I made
                1 Reply Last reply Reply Quote 1
                • M
                  meleu @hiulit
                  last edited by meleu 11 Aug 2017, 17:43 8 Nov 2017, 17:39

                  @hiulit a small tip: if you want to store fun facts in a text file, one fun fact per line, you can get a random line from the file using the shuf command. This way:

                  shuf -n 1 fun_facts.txt
                  

                  EDIT: This aproach would be useful if the users want to customize their fun facts. They wouldn't need to edit the script's code.

                  ;-)

                  • Useful topics
                  • joystick-selection tool
                  • rpie-art tool
                  • achievements I made
                  H 2 Replies Last reply 8 Nov 2017, 18:09 Reply Quote 1
                  • H
                    hiulit @meleu
                    last edited by 8 Nov 2017, 18:09

                    @meleu Thanks for the tip! I'll try it! :)

                    My little contributions to the RetroPie project:

                    • Shell-Script-Boilerplate
                    • Fun-Facts-Splashscreens
                    • Limit-Last-Played-Games
                    1 Reply Last reply Reply Quote 0
                    • H
                      hiulit @meleu
                      last edited by 8 Nov 2017, 19:18

                      @meleu Done! It works beautifully :D

                      My little contributions to the RetroPie project:

                      • Shell-Script-Boilerplate
                      • Fun-Facts-Splashscreens
                      • Limit-Last-Played-Games
                      1 Reply Last reply Reply Quote 0
                      • Z
                        Zigurana
                        last edited by 8 Nov 2017, 19:26

                        If it takes too long, maybe run the image-generation-script on system shutdown, to be used at next boot-time?

                        If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

                        M H 2 Replies Last reply 8 Nov 2017, 20:07 Reply Quote 1
                        • M
                          meleu @Zigurana
                          last edited by 8 Nov 2017, 20:07

                          @zigurana good idea! ;-)

                          @hiulit I have more comments, maybe it's better to move the nerdy conversation to the nerdy topic... :)

                          • Useful topics
                          • joystick-selection tool
                          • rpie-art tool
                          • achievements I made
                          1 Reply Last reply Reply Quote 0
                          • H
                            hiulit @Zigurana
                            last edited by 9 Nov 2017, 09:06

                            @zigurana Yeah, good idea! Although I really don't have any idea of where I should put my script to do that... (⊙_☉) hehe! Noob at scripting here :P

                            My little contributions to the RetroPie project:

                            • Shell-Script-Boilerplate
                            • Fun-Facts-Splashscreens
                            • Limit-Last-Played-Games
                            1 Reply Last reply Reply Quote 0
                            • H
                              hiulit
                              last edited by hiulit 11 Oct 2017, 11:25 10 Nov 2017, 11:24

                              More progress! :D
                              Now the splashscreen is created using the font of the active theme in EmulationStation, and if it has none it takes the Carbon theme font as default.

                              A little video demo of the script working https://streamable.com/s/bbzzd/fecqc

                              And here's the the splashscreen of the Pixel theme with a Fun Fact!™ using Pixel's own font.

                              0_1510312850864_Captura de pantalla 2017-11-09 a les 13.20.02.png

                              My little contributions to the RetroPie project:

                              • Shell-Script-Boilerplate
                              • Fun-Facts-Splashscreens
                              • Limit-Last-Played-Games
                              M 1 Reply Last reply 10 Nov 2017, 13:27 Reply Quote 1
                              • M
                                meleu @hiulit
                                last edited by 10 Nov 2017, 13:27

                                @hiulit you're doing a good job bro!!

                                I've submitted a PR to your repo. But, as I'm away from my RetroPie currently, please test it before merging. ;-)

                                • Useful topics
                                • joystick-selection tool
                                • rpie-art tool
                                • achievements I made
                                H 1 Reply Last reply 11 Nov 2017, 12:28 Reply Quote 1
                                • H
                                  hiulit
                                  last edited by 10 Nov 2017, 13:52

                                  WOW, thanks man! I will take a look at it and I'll get back to you :)

                                  My little contributions to the RetroPie project:

                                  • Shell-Script-Boilerplate
                                  • Fun-Facts-Splashscreens
                                  • Limit-Last-Played-Games
                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    hiulit @meleu
                                    last edited by hiulit 11 Nov 2017, 12:29 11 Nov 2017, 12:28

                                    @meleu Hey, I've merged your pull request but I had to make a little change because it didn't seem to work properly.

                                    The change I made was adding a ! before -f "$splashscreen" when checking for the splashscreen.

                                    if [[ ! -f "$splash" ]]; then
                                        splash="$DEFAULT_SPLASH"
                                    fi
                                    

                                    Besides that, everything was alright! Thanks! :)

                                    My little contributions to the RetroPie project:

                                    • Shell-Script-Boilerplate
                                    • Fun-Facts-Splashscreens
                                    • Limit-Last-Played-Games
                                    1 Reply Last reply Reply Quote 1
                                    • H
                                      hiulit
                                      last edited by 11 Nov 2017, 12:55

                                      @meleu When I encountered the problem with Pixel theme and xmlstarlet I tried a different approach for finding the font.

                                      function get_theme_font() {
                                          get_current_theme
                                          if [[ -n "$(find "$ES_DIR/themes/$current_theme/art" -type f -name '*.ttf')" ]]; then
                                              font="$(find "$ES_DIR/themes/$current_theme/art" -type f -name '*.ttf')"
                                          else
                                              font=$DEFAULT_FONT
                                          fi
                                      }
                                      

                                      I did the job, but I wasn't happy about repeating the find function , but I don't know any better :P

                                      Do you think that could be a workaround for finding theme fonts?

                                      I know that some themes can have multiple fonts but I think it's ok to use the first one found.

                                      My little contributions to the RetroPie project:

                                      • Shell-Script-Boilerplate
                                      • Fun-Facts-Splashscreens
                                      • Limit-Last-Played-Games
                                      M 1 Reply Last reply 11 Nov 2017, 13:15 Reply Quote 0
                                      • M
                                        meleu @hiulit
                                        last edited by 11 Nov 2017, 13:15

                                        @hiulit it's better to move the nerdy conversation to the nerdy topic... :)

                                        I'll try to answer your questions there. Wait a moment. ;)

                                        • Useful topics
                                        • joystick-selection tool
                                        • rpie-art tool
                                        • achievements I made
                                        H 1 Reply Last reply 11 Nov 2017, 13:17 Reply Quote 0
                                        • H
                                          hiulit @meleu
                                          last edited by 11 Nov 2017, 13:17

                                          @meleu Oh, you're right! ;) See you there!

                                          My little contributions to the RetroPie project:

                                          • Shell-Script-Boilerplate
                                          • Fun-Facts-Splashscreens
                                          • Limit-Last-Played-Games
                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received