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

How to change button icons? [DONE]

Scheduled Pinned Locked Moved Projects and Themes
themesretropieiconschange
65 Posts 15 Posters 28.0k 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.
  • F
    frgn
    last edited by frgn 12 Aug 2016, 04:16 28 Nov 2016, 10:07

    Hi guys! I'm doing my theme, and faced such problem.
    I use dualshock 2 controller (from PSOne). As is known, its buttons are different from those displayed in the GUI.
    I tried to look for them in PNG and SVG images, but found nothing. Most likely they are hidden somewhere in the depths of the system. But, even if I could find the files with icons - is there a way to replace icons of the buttons?
    Any help would be useful.
    Picture in order to understand what I want to get.
    0_1480327329357_Снимок.PNG

    UPD

    with the help of @jacobfk20 my idea is implemented. thanks to him!

    0_1481164798390_IMG_0253.PNG
    0_1481164808522_IMG_0254.PNG

    Download

    Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
    My RetroPie themes repo - https://github.com/free-gen/
    Blast16 to MDMINI mod
    DONATE HERE

    L D 4 Replies Last reply 28 Nov 2016, 11:07 Reply Quote 1
    • L
      lilbud @frgn
      last edited by 28 Nov 2016, 11:07

      @frgn I believe they are hardcoded into ES

      Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

      Backlog: http://backloggery.com/lilbud

      F 1 Reply Last reply 29 Nov 2016, 00:50 Reply Quote 1
      • F
        frgn @lilbud
        last edited by frgn 29 Nov 2016, 00:50

        @lilbud I found out that the icon files are stored in emulationstation file (/opt/retropie/supplementary/emulationstation). Extension this file is potentially to ELF.
        I read Wikipedia, it says that this file is used in UNIX operating systems, and can contain a variety of resources (such as dll in windows).
        Further, I found the source code retropie.
        On this page you can see it files of icons have SVG format.
        I do not know how to open and edit this file (emulationstation). but it is a solution to my problem. Probably need disassembling skills. Unfortunately, I do not have such skills. Maybe you have any ideas on this?
        My quest complicated by the fact that I am from Russia and do not know much English.

        Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
        My RetroPie themes repo - https://github.com/free-gen/
        Blast16 to MDMINI mod
        DONATE HERE

        H 1 Reply Last reply 29 Nov 2016, 01:16 Reply Quote 0
        • H
          herb_fargus administrators @frgn
          last edited by 29 Nov 2016, 01:16

          @frgn you don't need any disassembly, you just need to edit the source code to include your svgs and recompile it.

          If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

          Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

          F 1 Reply Last reply 29 Nov 2016, 04:03 Reply Quote 0
          • F
            frgn @herb_fargus
            last edited by 29 Nov 2016, 04:03

            @herb_fargus what tools are needed for this?

            Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
            My RetroPie themes repo - https://github.com/free-gen/
            Blast16 to MDMINI mod
            DONATE HERE

            1 Reply Last reply Reply Quote 0
            • C
              Capeman
              last edited by 2 Dec 2016, 21:59

              It would be cool if the retropie team would change the ES version source code to make things like button icons and ES splash screen load from outside files (same as game artwork) so re-compiling wouldn't need to be done to update these sort of things.

              Vector Artist, Designer and Maker of Stuff: Laser Cut Atari / Pixel Theme Bartop

              F 1 Reply Last reply 5 Dec 2016, 04:39 Reply Quote 2
              • F
                frgn @Capeman
                last edited by 5 Dec 2016, 04:39

                @Capeman I agree with you!
                And related - the source code and svg's of the file 'emulationstation' are is on githab.
                I tried to follow the instructions and assemble them again (after changing some images), but after compiling a file does not start because of an error in the code. Unfortunately, I know nothing about C ++.
                Maybe someone more skilled in C ++ will see this message, and try to do it.
                For that I leave a link to the file with modified icons and a link to githab.
                We will do better together emulationstation! :)

                source code: https://github.com/RetroPie/EmulationStation
                upgrade icons (svg): https://mega.nz/#!gdRjHTQB!I-cbX15YRBcvYgyDGNxeJPHoQdoz8au_OfTMBY4WBQo

                Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
                My RetroPie themes repo - https://github.com/free-gen/
                Blast16 to MDMINI mod
                DONATE HERE

                H 1 Reply Last reply 5 Dec 2016, 06:18 Reply Quote 0
                • H
                  herb_fargus administrators @frgn
                  last edited by 5 Dec 2016, 06:18

                  @frgn it's not as simple as swapping out svgs, they have to be converted to binary code with res2h first

                  If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                  Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                  F 1 Reply Last reply 5 Dec 2016, 11:01 Reply Quote 0
                  • F
                    frgn @herb_fargus
                    last edited by frgn 12 May 2016, 11:05 5 Dec 2016, 11:01

                    @herb_fargus res2h.exe easy to use on windows. I can add a link to ready .cpp files
                    Except images, I re-generated the cpp files. Error occurs just after the compilation. Even if collect original source files - file "emulationstation" still runs with an error.
                    I think the problem is in the description for the assembly of a binary file.
                    But more likely a problem with me. I'm a lamer. :c

                    cpp files: https://mega.nz/#!kYBFVDTD!SihhUa9BqIvMN-0bKmMh_htnKyJJgdcHM996lafCgjk
                    res2h: https://github.com/HorstBaerbel/res2h/releases

                    Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
                    My RetroPie themes repo - https://github.com/free-gen/
                    Blast16 to MDMINI mod
                    DONATE HERE

                    F 1 Reply Last reply 5 Dec 2016, 17:56 Reply Quote 0
                    • F
                      frgn @frgn
                      last edited by 5 Dec 2016, 17:56

                      I urge you, @fieldofcows !
                      Maybe, you can help in the assembly?
                      You succeeded modify the binary file, judging on this topic.

                      If I'm wrong - sorry to trouble you.

                      Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
                      My RetroPie themes repo - https://github.com/free-gen/
                      Blast16 to MDMINI mod
                      DONATE HERE

                      1 Reply Last reply Reply Quote 0
                      • J
                        jacobfk20
                        last edited by 7 Dec 2016, 05:06

                        @frgn Here is a link to a compiled version of ES with your changes on my drive.

                        Be sure to give it permission to execute with chmod +x

                        I compiled with the latest Retropie branch.

                        F E 2 Replies Last reply 7 Dec 2016, 08:19 Reply Quote 1
                        • F
                          frgn @jacobfk20
                          last edited by 7 Dec 2016, 08:19

                          @jacobfk20
                          Oh no, I made a mistake with the scale of the two buttons (select and start) - it can be fixed?
                          I have changed the svg Images, it remains only to collect them again. help me again?
                          Embarrassing happened... uncomfortable to ask you again about this :c
                          SVG: https://mega.nz/#!cNYy0SLI!DZadJaEhQPamxhAa2b0fpSis9bxUQapYZW78B4Q7Q00

                          Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
                          My RetroPie themes repo - https://github.com/free-gen/
                          Blast16 to MDMINI mod
                          DONATE HERE

                          1 Reply Last reply Reply Quote 0
                          • J
                            jacobfk20
                            last edited by 7 Dec 2016, 16:53

                            @frgn I don't mind helping but please send me already converted files next time. I went ahead and converted this time and compiled with the change. I overwrote the old file on my drive.

                            F M 2 Replies Last reply 8 Dec 2016, 02:20 Reply Quote 1
                            • F
                              frgn @jacobfk20
                              last edited by 8 Dec 2016, 02:20

                              @jacobfk20 ok. thank you, man :)
                              I have one more question - whether the possible change font gui? for him too need to generate cpp?

                              Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
                              My RetroPie themes repo - https://github.com/free-gen/
                              Blast16 to MDMINI mod
                              DONATE HERE

                              1 Reply Last reply Reply Quote 0
                              • J
                                jacobfk20
                                last edited by 8 Dec 2016, 04:55

                                @frgn No problem, glad to help :)
                                ES font for MAIN MENU and other Gui menus are hard coded. At a quick glance I think the quick way would be to change es-core/resources/font.cpp Font::get() to pull from a different path if path is empty, or change the default path to the new font you want. I'm not too familiar with how ES handles fonts so someone else may have a better answer than me.

                                F 1 Reply Last reply 8 Dec 2016, 05:04 Reply Quote 1
                                • F
                                  frgn @jacobfk20
                                  last edited by 8 Dec 2016, 05:04

                                  @jacobfk20
                                  OK, I understand you.
                                  if you will do it - please let me know about it.

                                  Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
                                  My RetroPie themes repo - https://github.com/free-gen/
                                  Blast16 to MDMINI mod
                                  DONATE HERE

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jacobfk20
                                    last edited by 8 Dec 2016, 16:10

                                    @frgn I would do this for you but if you ever update to the newest ES build it will overwrite any change done unless you cherry pick. Actually, updating even now will overwrite the changes to the button icons you have done.

                                    With that said-- you may like one of the next updates I'm about to release for my mod.

                                    F 1 Reply Last reply 11 Dec 2016, 10:49 Reply Quote 0
                                    • E
                                      enderandrew @jacobfk20
                                      last edited by enderandrew 12 Aug 2016, 18:02 8 Dec 2016, 17:58

                                      @jacobfk20 That was really awesome of you to do a one-time compile and host it, but future ES updates on the RetroPie will revert this. We really need an upstream fix in the ES repository that allows for loading these files remotely, or perhaps just selecting from a menu that you want to see SNES button layout, XBox button layout, PS button layout, etc.

                                      https://github.com/Aloshi/EmulationStation/issues/631

                                      1 Reply Last reply Reply Quote 1
                                      • J
                                        jacobfk20
                                        last edited by 8 Dec 2016, 20:58

                                        @enderandrew I said this in the post above yours that's why I do not want to do the second request, especially since I'm working on a branch for my fork that does exactly that.
                                        Also, thanks for creating the issue. I may do a pr after I test it in my fork for awhile.

                                        1 Reply Last reply Reply Quote 1
                                        • F
                                          frgn @jacobfk20
                                          last edited by 11 Dec 2016, 10:49

                                          @jacobfk20 I'm not going to do the update ES, since I do not see the point.
                                          you could replace the font (including the last modifications)? in the archive are two types of font, as in the original ES. as well as button icons.
                                          you are my hero! :)

                                          Aloha from Russia, and sorry for my bad English. ¯\(ツ)/¯
                                          My RetroPie themes repo - https://github.com/free-gen/
                                          Blast16 to MDMINI mod
                                          DONATE HERE

                                          1 Reply Last reply Reply Quote 0
                                          20 out of 65
                                          • First post
                                            20/65
                                            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