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

    Box86 and Wine on RPi4

    Scheduled Pinned Locked Moved Ideas and Development
    box86wineqemux86windows
    475 Posts 40 Posters 237.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.
    • G
      Good_Punk
      last edited by Good_Punk

      I've installed Box86 and Wine from the RetroPieSetup but when I start Wine Desktop or the other shortcuts it will randomly crash (just goes back to EmulationStation) after 15-60 seconds.
      I have it installed on a Pi 400, with a 1024x768 mini LCD.

      Any ideas? Is there a log file I could look into? (Sorry, I'm really new to Linux and Wine 😅)

      Also after installing Box86 I've got an error message that he was missing the LICENSE directory.
      PS: Ok I've just added an empty LICENSE directory in the tmp folder and now it ran through without any errors.

      Wine is still crashing though.

      ectoE 1 Reply Last reply Reply Quote 0
      • shavecatS
        shavecat @ecto
        last edited by

        @ecto
        Wow love that
        so i also wants diablo 2 to work
        and with the hereos 3 can u tell me what your config is ? with the mod ?

        Thanks alot ! <3

        ectoE 1 Reply Last reply Reply Quote 0
        • ectoE
          ecto @Good_Punk
          last edited by

          @good_punk said in Box86 and Wine on RPi4:

          I've installed Box86 and Wine from the RetroPieSetup but when I start Wine Desktop or the other shortcuts it will randomly crash (just goes back to EmulationStation) after 15-60 seconds.
          I have it installed on a Pi 400, with a 1024x768 mini LCD.

          Any ideas? Is there a log file I could look into? (Sorry, I'm really new to Linux and Wine 😅)

          Also after installing Box86 I've got an error message that he was missing the LICENSE directory.
          PS: Ok I've just added an empty LICENSE directory in the tmp folder and now it ran through without any errors.

          Wine is still crashing though.

          You can always have a look at /dev/shm/runcommand.log, but in my experience, wine either starts or crashes before starting.
          I don't know why, but sometimes I have to try 2-3 times until wine starts. Usually after that, it works right away...

          1 Reply Last reply Reply Quote 0
          • hooperreH
            hooperre
            last edited by hooperre

            See Post Here For Updated List of Games I Have Running: https://retropie.org.uk/forum/topic/29241/the-which-games-works-with-box86-wine-topic-on-the-retropie-rpi4-400/89

            4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

            dodonpachiD 1 Reply Last reply Reply Quote 1
            • ectoE
              ecto @shavecat
              last edited by ecto

              @shavecat I can paste my HD Mod config file which you can find here: HoMM3/_HD3_Data/Settings/sod.ini:

              <Version> = 5002362
              <Language> = "#en.ini"
              <Graphics.Resolution> = 1280x720
              <Graphics.Mode> = 4
              <Graphics.ComplexFilter> = 0
              <Graphics.Threads> = 1
              <Graphics.SimpleFilter> = 2
              <Graphics.SystemCursors> = 1
              <HD+> = 1
              <HD+.RecentTimers> = "01:00 + 01:00 + 00:00", "01:00 + 01:00 + 00:00", "01:00 + 01:00 + 00:00", "01:00 + 01:00 + 00:00", "01:00 + 01:00 + 00:00", "00:00 + 00:00 + 00:00"
              <HD+.Settings> = 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 6, 0
              <Memory.Mod> = 0
              <Misc.TournamentSaver> = 0
              <Misc.BattleSaver> = 0
              <Packs>
              <Sys.NoCD> = 1
              <Sys.CPU.ReduceUsage> = 0
              <Sys.WriteToIniInsteadRegistry> = 1
              <UI.AdvMgr.SkipMapMsgs> = 1
              <UI.Battle.Queue> = 1
              <UI.Battle.ShowAlwaysHeroInfo> = 1
              <UI.ClipCursor> = 1
              <UI.DarkTransitions> = 1
              <UI.Ext.ScenarioMgr.Settings> = 3, 72, 2, 2, 0, 0, 2, 0, 0, 0, 0, 1, 1, 1
              <UI.Ext.ScenarioMgr.Folders> = 1
              <UI.Ext.TownMgr.AvailableInsteadGrowth> = 1
              <UI.HiRezCore> = 1
              <UI.QuickArmyManagementMode> {0, 1} = 0
              <UI.RecruitDlg.AutoSet> = 1
              <UI.RecruitDlg.AutoSet.Max> = 0
              <UI.Tavern.InviteHero> = 0
              <Update.CheckAtStart> = 0
              
              <OpenGL.Wrapper.Version> = 2
              <OpenGL.FixedRefreshRate> = 1
              <OpenGL.Interpolation> = 0
              <OpenGL.Upscaling> = 0
              <OpenGL.SingleWindow> = 1
              <OpenGL.Renderer> = 0
              <OpenGL.UpdateMode> = 1
              <OpenGL.SmoothMapScroll> = 1
              <OpenGL.SmoothHeroMove> = 1
              <OpenGL.Aspect> = 1
              <OpenGL.VSync> = 1
              <OpenGL.Benchmark> = 0
              <OpenGL.Colors.HueSat> = 32768500
              <OpenGL.Colors.RgbInput> = 65536000
              <OpenGL.Colors.RedInput> = 65536000
              <OpenGL.Colors.GreenInput> = 65536000
              <OpenGL.Colors.BlueInput> = 65536000
              <OpenGL.Colors.RgbGamma> = 500
              <OpenGL.Colors.RedGamma> = 500
              <OpenGL.Colors.GreenGamma> = 500
              <OpenGL.Colors.BlueGamma> = 500
              <OpenGL.Colors.RgbOutput> = 65536000
              <OpenGL.Colors.RedOutput> = 65536000
              <OpenGL.Colors.GreenOutput> = 65536000
              <OpenGL.Colors.BlueOutput> = 65536000
              
              <Show Intro> = 1
              <AppPath> = "D:\HoMM3\"
              <Music Volume> = 5
              <Sound Volume> = 5
              <Last Music Volume> = 5
              <Last Sound Volume> = 5
              <Walk Speed> = 3
              <Computer Walk Speed> = 3
              <Show Route> = 1
              <Move Reminder> = 1
              <Quick Combat> = 1
              <Video Subtitles> = 1
              <Town Outlines> = 1
              <Animate SpellBook> = 1
              <Window Scroll Speed> = 1
              <Bink Video> = 0
              <Blackout Computer> = 0
              <First Time> = 0
              <Test Decomp> = 0
              <Test Read> = 0
              <Test Blit> = 0
              <Unique System ID> = "GEX"
              <Network Default Name> = "Player"
              <Autosave> = 1
              <Show Combat Grid> = 1
              <Show Combat Mouse Hex> = 1
              <Combat Shade Level> = 1
              <Combat Army Info Level> = 1
              <Combat Auto Creatures> = 1
              <Combat Auto Spells> = 1
              <Combat Catapult> = 1
              <Combat Ballista> = 1
              <Combat First Aid Tent> = 1
              <Combat Speed> = 2
              <Main Game Show Menu> = 1
              <Main Game X> = 0
              <Main Game Y> = 0
              <Main Game Full Screen> = 1
              <CDDrive>
              
              <Graphics.DrawMap.Threads> = 0 {experimental tweak: multithread adventure map rendering}
              <Graphics.DrawMap.ShowFPS> = 0 {for testing different Graphics.DrawMap.Threads values and different Graphics Modes}
              <HD.QuickCombat> = 1 
              

              I suppose that only lines from 3-8 are important. But you can probably just copy over the whole text into your sod.ini. There is one game path in line 61 which you have to adjust.

              Let's see if that helps ;)

              shavecatS 1 Reply Last reply Reply Quote 1
              • G
                Good_Punk
                last edited by

                Hello, I could use some help with .conf files.
                I've installed everything and Wine Desktop works fine when I use the "Run" option and start SimCity3000 that way.

                But when I run my "Sim City 3000.conf" from the EmulationStation the screen just goes black for a few seconds and I'm back at Emulation Station. (tried quite a few times, never worked)

                My config file looks like this:

                DIRECTORY=/home/pi/RetroPie/roms/wine/Files/sc3000/
                PROGRAM=/home/pi/RetroPie/roms/wine/Files/sc3000/sc3.exe
                OPTIONS=
                

                Any ideas? :)

                G 1 Reply Last reply Reply Quote 0
                • G
                  George @Good_Punk
                  last edited by

                  @good_punk often programs will require additional libraries and windows DLLs to be installed via Wine Tricks. Does Wine Desktop work at all? I saw your previous post about that. Should probably make sure that you are using the "emulator" branch from GitHub.

                  Also, as @ecto mentioned, post your /dev/shm/runcommand.log output after running and perhaps there may be some error messages.

                  - George

                  G 1 Reply Last reply Reply Quote 0
                  • H
                    honcoop91
                    last edited by

                    i got the depends installed, but when i moved onto exp/box86, i got could not successfully install box86 emulator.
                    /home/pi/retropie-setup/tmp/build/box86/docs/license not found.
                    any help would be appreciated

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      Good_Punk @honcoop91
                      last edited by

                      @honcoop91
                      I've just added and empty LICENSE folder manually to the tmp folder... after that it worked. 😅

                      H 1 Reply Last reply Reply Quote 0
                      • G
                        Good_Punk @George
                        last edited by

                        @george
                        Wine Desktop works and I can run all the game from the Startmenu->Run... they just don't work when I try to run then from the .conf files. I'll have a look at the runcommand.log later, thanks. :)

                        1 Reply Last reply Reply Quote 0
                        • H
                          honcoop91 @Good_Punk
                          last edited by

                          @good_punk tried that, but for some reason the box86 owner is root instead of pi, and im having trouble logging into that/getting permissions

                          G G 2 Replies Last reply Reply Quote 0
                          • G
                            Good_Punk @honcoop91
                            last edited by

                            @honcoop91
                            Hm okay... I don't know much about Linux stuff. I've used the File Commander that came with RetroPie and that let me navigate to the tmp folder and create a new one.

                            1 Reply Last reply Reply Quote 0
                            • shavecatS
                              shavecat @ecto
                              last edited by

                              @ecto
                              hmm.... thanks ! :)
                              I tried didnt not help :\

                              1 Reply Last reply Reply Quote 0
                              • G
                                George @honcoop91
                                last edited by

                                @honcoop91 sounds like you might be running off the primary branch in the repository instead of the emulator branch, which is more up to date. The LICENSE file got moved in the Box86 repo, and the script in my emulator branch has the new location.

                                I really should just update the main branch on my repo.

                                Hope that helps.

                                - George

                                H 1 Reply Last reply Reply Quote 0
                                • H
                                  honcoop91 @George
                                  last edited by

                                  @george looks like i finally got it to work, now just gotta figure out how to install games and hopefully get pkhex to work lol

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    EvilCreamsicle
                                    last edited by EvilCreamsicle

                                    Just posting here for some accountability so I actually do this:
                                    I intend to try to use this to run a game I'm making in RPG Maker VX Ace on RetroPie. This is the only thing close to a solution I've been able to find... from what I can tell from reading most of this entire thread, I think it should work. I'll let you know what I find out.

                                    I do IT/DevOps professionally and so am pretty familiar with Linux/Command Line and hardware, but I'm actually not super familiar with how RetroPie and Wine, specifically, work, so I may pop in with questions.

                                    1 Reply Last reply Reply Quote 1
                                    • hooperreH
                                      hooperre
                                      last edited by hooperre

                                      Has the audio issue been sorted or any known fix? My audio isn't working on the pi outside of splash videos regardless of whether wine is opened.

                                      cat /proc/asound/cards only shows headphones.

                                      4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                      1 Reply Last reply Reply Quote 0
                                      • dodonpachiD
                                        dodonpachi @hooperre
                                        last edited by

                                        @hooperre how did you install DirectX9? I wonder if that's what I'm missing for Vanguard Princess and Freedom Planet...

                                        hooperreH 1 Reply Last reply Reply Quote 0
                                        • hooperreH
                                          hooperre @dodonpachi
                                          last edited by hooperre

                                          @dodonpachi https://www.microsoft.com/en-us/download/details.aspx?id=8109

                                          Then installed inside wine. I tried doing it through Winetricks but it failed. Also using winetricks to install the core fonts (From memory) helped compatibility.

                                          4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                          dodonpachiD 1 Reply Last reply Reply Quote 0
                                          • dodonpachiD
                                            dodonpachi @hooperre
                                            last edited by

                                            @hooperre .... That link just takes me to a page to shop for Surface laptops. Did you copy the wrong one?

                                            And when you say installed through Wine, what do you mean? You ran the .exe through a .conf or something like you would a game?

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