HGL
wise-white
Heroic on ARM
Hello, I am trying to install Heroic on a Nintendo switch (arm) with Ubuntu, since there is no arm version, they recommended that I install the Windows version with wine. And when I try to open it I get this error.

90 Replies
rival-black•2y ago
Regular wine staging doesn't work
For electron apps
Just compile your own version of heroic
It's easier
Another option is to run heroic through an emulator
wise-whiteOP•2y ago
Can a version be compiled for arm? How do I do it?
rival-black•2y ago
yes, you would have to compile legendary, gogdl, and nile
replace the binaries
then compile heroic
compiling heroic is easy
just install yarn and then run
yarn dist:linux
in the heroic source codewise-whiteOP•2y ago
Ok thanks, when I can I'll try it and let you know.
wise-whiteOP•2y ago
wise-whiteOP•2y ago
It gave me this problem when compiling it
⨯ cannot resolve https://github.com/castlabs/electron-releases/releases/download/v27.0.0+wvcus/electron-v27.0.0+wvcus-linux-arm64.zip: status code 404
It seems like a problem with my internet connection.
I put it on the cable and try again
I have had the same error
wise-whiteOP•2y ago

wise-whiteOP•2y ago
Exactly, the link to download that file to compile it does not work
What can I do now?
rival-black•2y ago
Use a normal electron release
"electron": "castlabs/electron-releases#27.0.0+wvcus"
replace this line in package.json
to "electron": "^27"
wise-whiteOP•2y ago
I still have the same error even though I changed that. I made yarn before.
rival-black•2y ago
send the output
Electron Builder has its own config section (inside
package.json
), you'll have to configure the Electron source thererival-black•2y ago
oh whoops
wise-whiteOP•2y ago
So what should I do?
To avoid having the error that I am having
wise-whiteOP•2y ago
Ok I'll try it now
Ok the initial error no longer appeared :D, now I have a different one
One second to send the records
wise-whiteOP•2y ago
Well, seems like you're missing the
opj_decompress
executablewise-whiteOP•2y ago
From what I've read, that's what it seems like.
That's why I would have to download something or how do I do it?
https://launchpad.net/ubuntu/+source/openjpeg2 this looks to be the package you'd need
Launchpad
openjpeg2 package : Ubuntu
wise-whiteOP•2y ago
It appears to me that it is already installed
wise-whiteOP•2y ago

rival-black•2y ago
compile an app image
it's easier
That's not the same package
wise-whiteOP•2y ago
...
wise-whiteOP•2y ago
@CommandMC It's this one isn't it?

rival-black•2y ago
you know it would be a lot easier if you just
sudo apt install openjpeg2
According to https://manpages.ubuntu.com/manpages/focal/man1/opj_decompress.1.html, you'd need
libopenjp2-tools
rival-black•2y ago
this installs that package along with a bunch of others
wise-whiteOP•2y ago
Ok, since he shared the link I thought it wouldn't be with apt
With apt it tells me that the package cannot be found, I will manually download the two that are needed
grumpy-cyan•2y ago
I wonder if playing games on arm even works. There is no wine version with arm support or did they released one ?
rival-black•2y ago
hangover has a built in emulator
FEX is another emulator you can use
wise-whiteOP•2y ago
If I can run heroic native without anything in between better
grumpy-cyan•2y ago
Ok but i think getting games to work on a slow machine like the switch will be pain.
wise-whiteOP•2y ago
I also don't plan to play very heavy games. I'm not going to try gtaV at all xd
grumpy-cyan•2y ago
Sure but getting heroic to run is one step. Getting games to run is another.
wise-whiteOP•2y ago
Heroic already manages wine and proton.
(You're talking to the guy that built the Wine/Proton Manager)
grumpy-cyan•2y ago
If heroic runs it does not mean all games works out of the box. You still need to find a wine version with arm support
rival-black•2y ago
actually it might be a better idea to run heroic through an emulator
like I said that exists
wise-whiteOP•2y ago
Well that's done, I have box64 and wine installed
grumpy-cyan•2y ago
Yes sure i just want to say that all that heroic provides to make games run easier is not made for arm architecture.
rival-black•2y ago
heroic doesn't support emulators but you can add box64 as a wrapper command
ideally you shouldn't use box64, you should use FEX
grumpy-cyan•2y ago
So
1. Get heroic to run on arm
2. Get a game runinng on arm via FEX
Both steps are pretty complicated in my eyes and you need to have knowledge about linux and other tools
wise-whiteOP•2y ago
I have some knowledge of Linux, I'm not a newbie either.
rival-black•2y ago
you will probably have to do some manipulation of the legendary binaries
basically take legendary and rename it to something else
create a script in its place
then in the script run legendary through fex
wise-whiteOP•2y ago
Ok in that case I'm annoyed
rival-black•2y ago
and pass in all the parameters
wise-whiteOP•2y ago
But first I'll try to compile heroic for arm to see if I can get it to work.
rival-black•2y ago
then modify the package.json to copy both the script and the binary
that's the easy part
You can specify an alternative legendary binary in the settings
They could either specify their wrapper there, or just compile Legendary for ARM & specify that
rival-black•2y ago
but then you need a script for something
either you use a script to wrap wine in fex
or you use a script for all the wrappers
I think the best option would be what you are suggesting
to compile legendary for arm
and then use that as the binary
why is arm on linux this bad, it's theoretically the better than mac, but people are too lazy to compile for arm, this is depressing
Well, the target audience is small, so the developerbase is small, so the target audience is small... classic chicken & egg problem (I hope that idiom translates somewhat well)
grumpy-cyan•2y ago
Because there are no arm gaming machines yet. Everything for e.g. controlling machines via microchips is available as arm
Raspberry pi's for example are not used for gaming. There are more used in the industrie for controlling.
rival-black•2y ago
thankfully arm linux gaming is much better than mac os
once you set everything up
in fact I would bet that it's better than windows on arm 🤔
wise-whiteOP•2y ago

wise-whiteOP•2y ago
I finally managed to compile it xd
Although when I click on the icon to open it, it does nothing
wise-whiteOP•2y ago
Any ideas?
rival-black•2y ago
you have to recompile all the helper binaries probably (only 4, 1 is rust based so that once is really easy)
run it through terminal and send a log
wise-whiteOP•2y ago
How to run heroic from the terminal?
rival-black•2y ago
how did you install it
wise-whiteOP•2y ago
.deb file
wise-whiteOP•2y ago

rival-black•2y ago
run the linux_unpacked version
it's in the same folder
dist/linux_unpacked
you might have a slightly different path
wise-whiteOP•2y ago
Ok I found it
wise-whiteOP•2y ago
rival-black•2y ago
is your vulkan driver installed properly?
wise-whiteOP•2y ago
Yes... But I had some experimental drivers, maybe that's it
rival-black•2y ago
which experimental drivers
wise-whiteOP•2y ago
Some to have vulcan1.2
Or I think it was for Vulcan 1.4
rival-black•2y ago
NVK would be the savior for these tegra chips on linux
now that I think about it
wise-whiteOP•2y ago
You could try running heroic with a clean installation, without those drivers.
Yes because now that I read it is giving an error with the Vulcan drivers. Ok then I'll try that
I will save the heroic that I compiled before and reinstall Ubuntu
rival-black•2y ago
if you really want to use NVK you would have to use dxvk 1.5.1
wise-whiteOP•2y ago
what is nvk?
rival-black•2y ago
open source nvidia drivers
(the vulkan part of them)
nouveau is the kernel side
wise-whiteOP•2y ago
okay, thanks for clarifying it, now I'm reinstalling Ubuntu, I'll tell you if it works
rival-black•2y ago
you will also probably have to compile custom mesa drivers
to use NVK
and you would have to use kernel 6.6
wise-whiteOP•2y ago
I already reinstalled Ubuntu and I still have the drivers error

wise-whiteOP•2y ago
Does Heroic need a specific vulkan version or something?
rival-black•2y ago
no it just needs vulkan
of litterally any form
wise-whiteOP•2y ago
Well, in principle I have vulkan 1.1
Let's see I'm going to check some things
rival-black•2y ago
I would try vulkaninfo
wise-whiteOP•2y ago
Do you know if 32 bit drivers are needed? Since I only have 64bit ones, well for 32bit I only have software rendering
I just don't understand why I get that error.
Right now I have vulkan 1.1
And before reinstalling Linux I had vulkan1.2, although well, they are not stable drivers
rival-black•2y ago
no
can you run vulkaninfo and see if that works
wise-whiteOP•2y ago
wise-whiteOP•2y ago
here is what vulkaninfo returned to me
rival-black•2y ago
so it's working...
wise-whiteOP•2y ago
Then what can I do? xd
So I'll assume it's not possible to compile heroic for Arm myself
I could try running it with box or wine
But I was interested in running it native