fgsfdsfgs / max_nx

Nintendo Switch port of https://github.com/fgsfdsfgs/max_vita
MIT License
35 stars 3 forks source link

Could not load libMaxPayne.so #1

Closed jzarca01 closed 3 years ago

jzarca01 commented 3 years ago

Hi

I followed your instructions but I have this error when I try to start to game from hbmenu Here is the maxpayne folder on my switch sdcard

https://imgur.com/a/MTNyAcJ

fgsfdsfgs commented 3 years ago

That libMaxPayne.so is extremely small. Should be around 13MB, yours is closer to 1MB. You sure it didn't get corrupted during transfer or something?

jzarca01 commented 3 years ago

You were right about libMaxPayne.so although I keep having the same error.

How can I provide a useful log ?

fgsfdsfgs commented 3 years ago

What's the size of it now?

jzarca01 commented 3 years ago

14,3MB

fgsfdsfgs commented 3 years ago

The exact size should be 14 314 072 bytes. That error can only indicate one of three things:

If you were copying files from OSX or something, try unsetting the archive flag on all the files inside the folder. Also make sure you're not running hbmenu from the album, that shit doesn't provide enough memory.

jzarca01 commented 3 years ago

I downloaded the apk from here [...] so it should be the right version and libMaxPayne.so weighs the exact same size Let's assume it's not corrupted, the correct path for the file is /switch/maxpayne/libMaxPayne.so right ?

fgsfdsfgs commented 3 years ago

Please don't post links to copyrighted material. The path is correct. I don't know what to tell you then. exfat memes? Maybe nuke the entire folder and copy it again?

fgsfdsfgs commented 3 years ago

Here, try this. It should produce a log file called debug.log in the game folder. max_nx.zip

jzarca01 commented 3 years ago

I tried starting all over again but still no luck, still "could not find libMaxPayne.so" Here's what's inside the debug file

screen mode: 1280x720 heap size = 524288 KB lib base = 0xa07800000 lib max = 0 KB

fgsfdsfgs commented 3 years ago

Are you running the game from the album?

jzarca01 commented 3 years ago

It's not even showing in the album, the only way to run the game I have for now is through hbmenu

Wouldn't it solve things to place the nro file in /switch and let it browse files from /switch/maxpayne ?

fgsfdsfgs commented 3 years ago

The log is literally reporting that you have 0KB free memory after the newlib heap is allocated. I've only had this happen when running the game through the album override. What are you using to run hbmenu?

jzarca01 commented 3 years ago

Latest SXOS on first-gen switch ?

fgsfdsfgs commented 3 years ago

I have no idea how exactly it's set up in SX OS, but it would seem that it runs in applet mode. Does it provide game override functionality? Like "hold R while launching a game to enter hbmenu"? You should use that if it does. If it doesn't, maybe try this. UPDATE: Apparently it does. So try that I suppose.

jzarca01 commented 3 years ago

Ok so I installed hbmenu from your link, ran it while holding R and I get the same error except that this time debug.log shows this

screen mode: 1280x720 heap size = 524288 KB lib base = 0x1ff1a9000 lib max = 2826588 KB

fgsfdsfgs commented 3 years ago

Here, this should give a bit more debug info. Nuke the old log and try running this NRO. max_nx2.zip

jzarca01 commented 3 years ago

ok I finally got it working !!!

thanks a lot for your help, you made my weekend :)

fgsfdsfgs commented 3 years ago

Well, that's weird. What was the problem?

jzarca01 commented 3 years ago

libMaxPayne.so got deleted at some point for no reason