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

    Long standing ES bugs

    Scheduled Pinned Locked Moved Ideas and Development
    es bugsemultionstationbugs
    57 Posts 6 Posters 19.4k 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.
    • ruckageR
      ruckage
      last edited by ruckage

      Hi.

      I was just wondering if any of the long standing ES bugs are likely to be fixed. The gamelist in particular seems to have quite a few bugs and it would be nice if they could be looked into at some point.

      There are three bugs in particular in the textlist that could do with being looked at:

      <horizontalMargin> - if this is set to anything other than 0 and the game name is too long the ends of the name are cropped. Examples below.

      0_1495309381234_margin bug 1.png
      0_1495309398582_margin bug 2.png
      0_1495309431099_margin bug 3.png

      <lineSpacing> - if this is set to anything but the default setting then the selector bar no longer lines up. Example below

      0_1495309490145_linespacing bug.png

      Scaling isn't consistent between resolution, all other element display exactly the same regardless of resolution (assuming same aspect ratio) but gamelists can vary greatly. Example below.

      0_1495309554732_scaling bug control.png
      0_1495309575778_scaling bug.png

      There are other problems as well but these are the ones that for me at least have caused the most headaches and often forced me to compromise my original theme ideas.

      Could any of the devs comment on these? It seems that the likely cause would be some miscalculations somewhere. Programming isn't completely alien to me so I'm going to have a look through the textlist component myself to see if I can spot anything but as I've never really used C I'm not sure how much help I will be. If I see anything that looks suspect I'll post it here.

      SNES mini/Nes mini/Famicom mini theme developer.

      If you'd like to support my work you can donate here: Donate

      1 Reply Last reply Reply Quote 2
      • Z
        Zigurana
        last edited by

        In the past, there was no real development of ES anywhere, as the project has been abandoned by the original developer in 2015 or so.
        With the current activities going on at the Retropie branch however, you can try an add the misbehaviors of the gamelist component as an issue on github here.
        That is of course no guarantee that this will be picked up, but at least that list is a little more persistent than a forum thread. You can reference the discussion here as well though.

        To help highlight the issues you are seeing, could you please create some screenshots combined with the gamelist properties you are trying to use? Those would then make excellent test cases.

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

        ruckageR 2 Replies Last reply Reply Quote 3
        • ruckageR
          ruckage @Zigurana
          last edited by

          @Zigurana
          Thanks for the reply, I appreciate it.

          I'll open these as issues on github shortly and will upload screenshot etc. here. I did just check the current issues list and these bugs haven't been mention before from what I can see.

          SNES mini/Nes mini/Famicom mini theme developer.

          If you'd like to support my work you can donate here: Donate

          1 Reply Last reply Reply Quote 2
          • ruckageR
            ruckage @Zigurana
            last edited by ruckage

            @Zigurana
            I've updated the first post with screenshots showing each bug.

            SNES mini/Nes mini/Famicom mini theme developer.

            If you'd like to support my work you can donate here: Donate

            J 1 Reply Last reply Reply Quote 2
            • J
              jdrassa @ruckage
              last edited by

              @ruckage Thanks for the screenshots. I have fixes for the horizontalMargin and lineSpacing issues, but still need to look into the scaling issue.

              For the horizontalMargin, The end of the name may still get chopped off, but it is now consistent. The beginning will always be visible, regardless of alignment, and only the end will be cut off is there is not enough space.

              Get latest build of EmulationStation for Windows here

              ruckageR 1 Reply Last reply Reply Quote 2
              • ruckageR
                ruckage @jdrassa
                last edited by

                @jdrassa said in Long standing ES bugs:

                @ruckage Thanks for the screenshots. I have fixes for the horizontalMargin and lineSpacing issues, but still need to look into the scaling issue.

                For the horizontalMargin, The end of the name may still get chopped off, but it is now consistent. The beginning will always be visible, regardless of alignment, and only the end will be cut off is there is not enough space.

                That's great :). The end being chopped off is fine as you can obviously only display as many characters that will fit. I'm not sure I mentioned this originally but will it scroll the text now if the end is chopped off? With the bug it sometimes wouldn't scroll the name even if it was chopped off as it seemed to think that the name was fully displayed if that makes sense (I'm guessing it was only considering the full width of the textlist without accounting for the margins reducing the available width.)

                SNES mini/Nes mini/Famicom mini theme developer.

                If you'd like to support my work you can donate here: Donate

                J 1 Reply Last reply Reply Quote 0
                • J
                  jdrassa @ruckage
                  last edited by

                  @ruckage Yes it will still scroll the text when the end is chopped off. I did see that bug where it wouldn't scroll sometimes and fixed it. Your guess is correct, it was only considering the full width.

                  Get latest build of EmulationStation for Windows here

                  ruckageR 1 Reply Last reply Reply Quote 1
                  • ruckageR
                    ruckage @jdrassa
                    last edited by

                    @jdrassa said in Long standing ES bugs:

                    @ruckage Yes it will still scroll the text when the end is chopped off. I did see that bug where it wouldn't scroll sometimes and fixed it. Your guess is correct, it was only considering the full width.

                    Thanks. I really appreciate you fixing this, I wasn't expecting anything so quickly.
                    Any idea when these fixes will appear in retropie itself as I know the line spacing bug fix will definitely break my themes as I modified a font to specifically work around it?

                    SNES mini/Nes mini/Famicom mini theme developer.

                    If you'd like to support my work you can donate here: Donate

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jdrassa @ruckage
                      last edited by

                      @ruckage No timeframe yet. Unless it gives me trouble, I was hoping to fix the scaling issue and submit them all together. If you prefer, I can submit the first 2 fixes sooner. Regardless, I will make sure to post a build beforehand so that you can test it out with your theme.

                      Get latest build of EmulationStation for Windows here

                      ruckageR 1 Reply Last reply Reply Quote 1
                      • ruckageR
                        ruckage @jdrassa
                        last edited by

                        @jdrassa said in Long standing ES bugs:

                        @ruckage No timeframe yet. Unless it gives me trouble, I was hoping to fix the scaling issue and submit them all together. If you prefer, I can submit the first 2 fixes sooner. Regardless, I will make sure to post a build beforehand so that you can test it out with your theme.

                        No need to rush, it's been a problem for a long while so it's just nice to know that it's going to be fixed.
                        I'll definitely give the fixed build a test though when it's ready, keep us posted.

                        SNES mini/Nes mini/Famicom mini theme developer.

                        If you'd like to support my work you can donate here: Donate

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jdrassa @ruckage
                          last edited by

                          @ruckage I think I have the scaling issue fixed. I need to clean up the code some and I will get a build for you to test.

                          Get latest build of EmulationStation for Windows here

                          ruckageR 1 Reply Last reply Reply Quote 4
                          • ruckageR
                            ruckage @jdrassa
                            last edited by

                            @jdrassa
                            That's great :). I'd be happy to test it.

                            SNES mini/Nes mini/Famicom mini theme developer.

                            If you'd like to support my work you can donate here: Donate

                            1 Reply Last reply Reply Quote 1
                            • J
                              jdrassa
                              last edited by

                              Fixes are ready for testing.

                              I tested it against all of themes that are currently installable through RetroPie-Setup. There are a few that have the side effect of the last entry being cut off slightly. Before I submit this I plan to go through and submit the necessary fixes for those themes.

                              Code is here:
                              https://github.com/jrassa/EmulationStation/tree/gamelist-fixes

                              Windows build can be downloaded here:
                              https://ci.appveyor.com/api/buildjobs/yolhkm014epxeqpk/artifacts/EmulationStation-Win32.zip

                              Get latest build of EmulationStation for Windows here

                              ruckageR 2 Replies Last reply Reply Quote 1
                              • ruckageR
                                ruckage @jdrassa
                                last edited by

                                @jdrassa
                                Fantastic, I'm downloading it now to test, I'll let you know how it goes. I'm expecting my themes to break due to the font hack I'm currently using but that should be an easy fix (just a font change).

                                SNES mini/Nes mini/Famicom mini theme developer.

                                If you'd like to support my work you can donate here: Donate

                                1 Reply Last reply Reply Quote 0
                                • ruckageR
                                  ruckage @jdrassa
                                  last edited by

                                  @jdrassa
                                  Sadly seems to have broken my theme. The text now lines up and is spaced exactly as you would expect based on what's in the xml so that's good but the selector bar itself is huge. I've attached a screenshot, before the selector bar would fit within the boxes in the background but now it's much higher than the text and overhangs by a huge margin.

                                  0_1496003857754_selector bar.jpg

                                  SNES mini/Nes mini/Famicom mini theme developer.

                                  If you'd like to support my work you can donate here: Donate

                                  pjftP J 2 Replies Last reply Reply Quote 0
                                  • pjftP
                                    pjft @ruckage
                                    last edited by

                                    @ruckage Complete tangent on this topic, but your theme looks really good!

                                    1 Reply Last reply Reply Quote 1
                                    • J
                                      jdrassa @ruckage
                                      last edited by

                                      @ruckage I saw that same behavior. I believe the issue is with your font. The font you are using appears to have a some empty space below the actual characters. I assumed that this is what you had to do to work around the bugs. You mentioned this above.

                                      @ruckage said in Long standing ES bugs:

                                      I know the line spacing bug fix will definitely break my themes as I modified a font to specifically work around it

                                      I disabled your custom font and with a little tweaking to the font size and line spacing I got the following.

                                      0_1496019385098_Screenshot from 2017-05-28 20-50-58.png

                                      Get latest build of EmulationStation for Windows here

                                      ruckageR 1 Reply Last reply Reply Quote 0
                                      • ruckageR
                                        ruckage @jdrassa
                                        last edited by ruckage

                                        @jdrassa said in Long standing ES bugs:

                                        @ruckage I saw that same behavior. I believe the issue is with your font. The font you are using appears to have a some empty space below the actual characters. I assumed that this is what you had to do to work around the bugs. You mentioned this above.

                                        @ruckage said in Long standing ES bugs:

                                        I know the line spacing bug fix will definitely break my themes as I modified a font to specifically work around it

                                        I disabled your custom font and with a little tweaking to the font size and line spacing I got the following.

                                        0_1496019385098_Screenshot from 2017-05-28 20-50-58.png

                                        Hi, the original font was shifted down below the baseline to make it line up with the selector bar however the screenshot I posted above was with the unedited font. The fonts were designed in bitfontmaker2 which is an online tool for designing pixel fonts.
                                        Obviously I need that font as my theme relies on keeping that particular look. Previously the selector bar was the correct size with my font, it just didn't line up with if I altered the line spacing.

                                        SNES mini/Nes mini/Famicom mini theme developer.

                                        If you'd like to support my work you can donate here: Donate

                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          jdrassa @ruckage
                                          last edited by

                                          @ruckage If you can post a link to the unedited font, I can test it out and see what I can come up with. Currently, the height of the selector bar is 1.5 times the size of the text. This corresponds to the default line spacing. Worst case scenario, I may just need to add an additional theme option to make the selector bar size configurable.

                                          Get latest build of EmulationStation for Windows here

                                          ruckageR 1 Reply Last reply Reply Quote 0
                                          • ruckageR
                                            ruckage @jdrassa
                                            last edited by

                                            @jdrassa said in Long standing ES bugs:

                                            @ruckage If you can post a link to the unedited font, I can test it out and see what I can come up with. Currently, the height of the selector bar is 1.5 times the size of the text. This corresponds to the default line spacing. Worst case scenario, I may just need to add an additional theme option to make the selector bar size configurable.

                                            Thanks. Heres a link to the font : http://www.pentacom.jp/pentacom/bitfontmaker2/gallery/?action=dl&id=2639

                                            I actually think having the ability to define the selector bar height would be a real bonus if you could add it - along with an option to change the 'y offset' so that it's vertical position in relation to the text could be set as well. The more we can edit ourselves the better, gives us more freedom with design options.

                                            SNES mini/Nes mini/Famicom mini theme developer.

                                            If you'd like to support my work you can donate here: Donate

                                            J 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.