Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
dreamshadow1977
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Jan 16, 2024 3:43 am
Contact:

Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by dreamshadow1977 »

I keep getting the following error running Ubuntu 23.04 LTS and Factorio on Box64:

1.003 Error Util.cpp:86: Failed to create OpenGL context: Could not create GL context: GLXBadFBConfig

glxinfo reports 'direct rendering: yes'

glmark2 shows the following:

OpenGL Information
GL_VENDOR: Broadcom
GL_Renderer: V3D 7.1
GL_VERSION: 3.1 Mesa 23.2.1-1ubuntu3.1

and properly runs all tests.

The basics that I read seem to indicate I need to update my video drivers, but glxinfo and glmark2 seem to indicate I'm set up just fine. Thoughts? Is there a setting I need to set on Box64 for the Pi5?
DarkShadow44
Filter Inserter
Filter Inserter
Posts: 358
Joined: Thu Jun 01, 2017 12:05 pm
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by DarkShadow44 »

AFAIK your OpenGL version is simply too low. I had the same issue on Asahi Linux, until they updated to 3.3.
You can try to fake the version like "MESA_GL_VERSION_OVERRIDE=4.3 MESA_GLSL_VERSION_OVERRIDE=430"... Not very likely to work though.
dreamshadow1977
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Jan 16, 2024 3:43 am
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by dreamshadow1977 »

Thanks. I'll look and see what forcing the setting looks like with an understanding that it could be less than ideal.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14403
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by Rseding91 »

Even if you do get it working, I wouldn't keep your hopes up: viewtopic.php?f=23&t=110541
If you want to get ahold of me I'm almost always on Discord.
DarkShadow44
Filter Inserter
Filter Inserter
Posts: 358
Joined: Thu Jun 01, 2017 12:05 pm
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by DarkShadow44 »

Huh, interesting. Should affect single player though, unless I missed something.
Just don't report any issues you encounter to the factorio devs. ;)
dreamshadow1977
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Jan 16, 2024 3:43 am
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by dreamshadow1977 »

Success. Switched to Armbian Plasma (as I'm a fan of the KDE Plasma desktop environment).
Used NicoD's Armbian-gaming script to install box64. ( https://github.com/NicoD-SBC/armbian-gaming )
Downloaded the Linux version from this website and ran
box64 factorio from the x64 directory.


Armbian Plasma has a newer set of OpenGL drivers than what I was getting from a current ubuntu download.

It was still on the slow side, so I don't think you'll see any megafactories from the Raspberry Pi 5, but I can play it. At least I think I can. It's sitting on 'Cropping Bitmaps' for a good long while now.
vinnys
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Nov 05, 2024 11:05 am
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by vinnys »

DarkShadow44 wrote: Tue Jan 16, 2024 6:24 pm AFAIK your OpenGL version is simply too low. I had the same issue on Asahi Linux, until they updated to 3.3.
You can try to fake the version like "MESA_GL_VERSION_OVERRIDE=4.3 MESA_GLSL_VERSION_OVERRIDE=430"... Not very likely to work though.
Hey I am trying to get the game working on asahi right now, how did you do it? Using box64? I tried running it through steam now that asahi ships steam, but there appears to be some issue with the emulation on my system, so I am looking for alternatives :D
DarkShadow44
Filter Inserter
Filter Inserter
Posts: 358
Joined: Thu Jun 01, 2017 12:05 pm
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by DarkShadow44 »

Yeah, I compiled box64 (because 16k page sizes) and then just ran it.
vinnys
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Nov 05, 2024 11:05 am
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by vinnys »

DarkShadow44 wrote: Tue Nov 05, 2024 6:29 pm Yeah, I compiled box64 (because 16k page sizes) and then just ran it.
It worked! I compiled using the M1 compiler options from the page you linked, and used the -j1 flag when running make to avoid running out of memory. It runs relatively smooth on my space age world. I have yet to get it working with wayland, though. Will try a bit more
djole94hns
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Nov 19, 2024 10:46 pm
Contact:

Re: Has anyone tried running Factorio on Raspberry Pi 5 Box64 ?

Post by djole94hns »

Hello,
I know this is an ancient thread, but it's the first result for this topic so I'd like to post a solution that worked for me, might help someone, who knows.

First of all, you need to build and install box64. Plenty of guides on it online.

Then, download the linux version of Factorio. If you have it on Steam, just log in to factorio.com using your Steam account, and you'll get access to the standalone build.

Extract the archive wherever you want your factorio "install" to be.

Open up the terminal, navigate to your /factorio/bin/x64/ folder, and while in that folder run the following command:

Code: Select all

MESA_GL_VERSION_OVERRIDE=3.3 ./factorio
You should be able to access the game menu now. Go to settings, set every graphics setting to low (maybe leave high res sprites and decorations, they won't affect performance that much).

However, you'll notice animated sprites are blacked out, not drawing properly. Well, that's the drawback of having such a low OpenGL version, which is why you should run factorio with a software renderer.

Go to your factorio folder, find the config folder, and open config.ini. Find the following line:

Code: Select all

ogl-accelerated-renderer=auto
And change "auto" to "false".

It'll still run decently well, at least before you try loading a megabase. I've gotten solid 60fps on first load.
Post Reply

Return to “Technical Help”