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.
No description
90 Replies
rival-black
rival-black2y 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-white
wise-whiteOP2y ago
Can a version be compiled for arm? How do I do it?
rival-black
rival-black2y 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 code
wise-white
wise-whiteOP2y ago
Ok thanks, when I can I'll try it and let you know.
wise-white
wise-whiteOP2y ago
wise-white
wise-whiteOP2y 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-white
wise-whiteOP2y ago
No description
wise-white
wise-whiteOP2y ago
Exactly, the link to download that file to compile it does not work What can I do now?
rival-black
rival-black2y ago
Use a normal electron release "electron": "castlabs/electron-releases#27.0.0+wvcus" replace this line in package.json to "electron": "^27"
wise-white
wise-whiteOP2y ago
I still have the same error even though I changed that. I made yarn before.
rival-black
rival-black2y ago
send the output
CommandMC
CommandMC2y ago
Electron Builder has its own config section (inside package.json), you'll have to configure the Electron source there
rival-black
rival-black2y ago
oh whoops
wise-white
wise-whiteOP2y ago
So what should I do? To avoid having the error that I am having
CommandMC
CommandMC2y ago
Removing these 3 lines should make it use the default Electron
wise-white
wise-whiteOP2y 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-white
wise-whiteOP2y ago
CommandMC
CommandMC2y ago
Well, seems like you're missing the opj_decompress executable
wise-white
wise-whiteOP2y 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?
CommandMC
CommandMC2y ago
https://launchpad.net/ubuntu/+source/openjpeg2 this looks to be the package you'd need
wise-white
wise-whiteOP2y ago
It appears to me that it is already installed
wise-white
wise-whiteOP2y ago
No description
rival-black
rival-black2y ago
compile an app image it's easier
CommandMC
CommandMC2y ago
That's not the same package
wise-white
wise-whiteOP2y ago
...
wise-white
wise-whiteOP2y ago
@CommandMC It's this one isn't it?
No description
rival-black
rival-black2y ago
you know it would be a lot easier if you just sudo apt install openjpeg2
rival-black
rival-black2y ago
this installs that package along with a bunch of others
wise-white
wise-whiteOP2y 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
grumpy-cyan2y 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
rival-black2y ago
hangover has a built in emulator FEX is another emulator you can use
wise-white
wise-whiteOP2y ago
If I can run heroic native without anything in between better
grumpy-cyan
grumpy-cyan2y ago
Ok but i think getting games to work on a slow machine like the switch will be pain.
wise-white
wise-whiteOP2y ago
I also don't plan to play very heavy games. I'm not going to try gtaV at all xd
grumpy-cyan
grumpy-cyan2y ago
Sure but getting heroic to run is one step. Getting games to run is another.
wise-white
wise-whiteOP2y ago
Heroic already manages wine and proton.
CommandMC
CommandMC2y ago
(You're talking to the guy that built the Wine/Proton Manager)
grumpy-cyan
grumpy-cyan2y 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
rival-black2y ago
actually it might be a better idea to run heroic through an emulator like I said that exists
wise-white
wise-whiteOP2y ago
Well that's done, I have box64 and wine installed
grumpy-cyan
grumpy-cyan2y 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
rival-black2y 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
grumpy-cyan2y 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-white
wise-whiteOP2y ago
I have some knowledge of Linux, I'm not a newbie either.
rival-black
rival-black2y 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-white
wise-whiteOP2y ago
Ok in that case I'm annoyed
rival-black
rival-black2y ago
and pass in all the parameters
wise-white
wise-whiteOP2y ago
But first I'll try to compile heroic for arm to see if I can get it to work.
rival-black
rival-black2y ago
then modify the package.json to copy both the script and the binary that's the easy part
CommandMC
CommandMC2y ago
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
rival-black2y 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
CommandMC
CommandMC2y ago
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
grumpy-cyan2y 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
rival-black2y 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-white
wise-whiteOP2y ago
No description
wise-white
wise-whiteOP2y ago
I finally managed to compile it xd Although when I click on the icon to open it, it does nothing
wise-white
wise-whiteOP2y ago
Any ideas?
rival-black
rival-black2y 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-white
wise-whiteOP2y ago
How to run heroic from the terminal?
rival-black
rival-black2y ago
how did you install it
wise-white
wise-whiteOP2y ago
.deb file
wise-white
wise-whiteOP2y ago
No description
rival-black
rival-black2y ago
run the linux_unpacked version it's in the same folder dist/linux_unpacked you might have a slightly different path
wise-white
wise-whiteOP2y ago
Ok I found it
wise-white
wise-whiteOP2y ago
rival-black
rival-black2y ago
is your vulkan driver installed properly?
wise-white
wise-whiteOP2y ago
Yes... But I had some experimental drivers, maybe that's it
rival-black
rival-black2y ago
which experimental drivers
wise-white
wise-whiteOP2y ago
Some to have vulcan1.2 Or I think it was for Vulcan 1.4
rival-black
rival-black2y ago
NVK would be the savior for these tegra chips on linux now that I think about it
wise-white
wise-whiteOP2y 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
rival-black2y ago
if you really want to use NVK you would have to use dxvk 1.5.1
wise-white
wise-whiteOP2y ago
what is nvk?
rival-black
rival-black2y ago
open source nvidia drivers (the vulkan part of them) nouveau is the kernel side
wise-white
wise-whiteOP2y ago
okay, thanks for clarifying it, now I'm reinstalling Ubuntu, I'll tell you if it works
rival-black
rival-black2y ago
you will also probably have to compile custom mesa drivers to use NVK and you would have to use kernel 6.6
wise-white
wise-whiteOP2y ago
I already reinstalled Ubuntu and I still have the drivers error
No description
wise-white
wise-whiteOP2y ago
Does Heroic need a specific vulkan version or something?
rival-black
rival-black2y ago
no it just needs vulkan of litterally any form
wise-white
wise-whiteOP2y ago
Well, in principle I have vulkan 1.1 Let's see I'm going to check some things
rival-black
rival-black2y ago
I would try vulkaninfo
wise-white
wise-whiteOP2y 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
rival-black2y ago
no can you run vulkaninfo and see if that works
wise-white
wise-whiteOP2y ago
wise-white
wise-whiteOP2y ago
here is what vulkaninfo returned to me
rival-black
rival-black2y ago
so it's working...
wise-white
wise-whiteOP2y 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

Did you find this page helpful?