Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cart crashes on initial stage load #205

Open
f8less opened this issue Jul 18, 2023 · 5 comments
Open

Cart crashes on initial stage load #205

f8less opened this issue Jul 18, 2023 · 5 comments

Comments

@f8less
Copy link

f8less commented Jul 18, 2023

The following carts are crashing with the error "no lua to load. aborting cart":

  • Kalikan [https://www.lexaloffle.com/bbs/?pid=131586#p]
  • Peral [https://www.lexaloffle.com/bbs/?pid=92885#p]
  • Poom [https://www.lexaloffle.com/bbs/?pid=101541#p]
  • R-Type 1.4 [https://www.lexaloffle.com/bbs/?pid=98070#p]
@jtothebell
Copy link
Owner

It looks like the first three are all multicart games. Did you include the extra carts? I know Poom worked at one point, so unless there was an update to Poom or some regression in Fake-08 that one should work. I will add the others to my list to investigate, but I don't know when I'll get to them.

@stefan-girlich
Copy link

stefan-girlich commented Oct 13, 2023

Experiencing the same with Kalikan; looking into the (paid) download from itch.io right now.

a) Potentially useful info from the readme file:

To get the carts to talk to each other you might have to run the game as administrator , and they will have to be in the actual pico8/carts directory otherwise they don't work . Unsure why , ask zep <3

b) New error message when trying to start initial stage with all cart files available

Screenshot_20231013-125118

system info:

  • RetroArch 1.9.12 (2021-11-03)
  • Android 13
  • fake-08 libretro build 511 (src)
  • placing .info file in the cores directory is not possible on non-rooted Android

steps to reproduce:

  1. download Kalikan files from itch.io (paid, src)
  2. find folder with .p8 files
  3. copy all folder content to /storage/emulated/0/p8carts> on Android device (note: error is identical when using arbitrary other folder location)
  4. rename kalikan_menu.p8 to kalikan_menu.p8.png (to prevent RetroArch "No core" error when trying to load cart)
  5. open RetroArch
  6. Load Core -> libfake08-arm64.so
  7. Load Content -> ... -> kalikan_menu.p8.png
  8. Game starts -> press buttons to enter actual game -> error

My best guess is that the cart files would need to be in an actual root-level dir /p8carts which is not achievable on a non-rooted Android system

@xero
Copy link

xero commented Feb 22, 2024

i have similar issues with this list of games

  • shadowking
  • jungle ping
  • mot game's
  • pizza panda
  • whiplash taxi
  • frost punk
  • tiny coliseum
  • lab cat

appreciate all the hard work everyone on this project does <3

@FallOfArca
Copy link

also experiencing this issue with Marble Merger

@MindOfMatter
Copy link

MindOfMatter commented Aug 22, 2024

also experiencing this issue with Marble Merger

If you want to play this fabulous game (Marble Merger) for custom handheild,
I've locally fixed the code that was causing compilation to fail on fake8

find the str2mem function (in code of #4 tab)

and please replace with this one (tested, no regression found) :

function str2mem(data)
    local t, a, i, c, d, str, m = split(data)
    for a = 1, #t, 2 do  
        m, str, i = t[a], t[a+1], 1
        while i <= #str do
            c, d = ord(str, i, 2)
            if c == nil then break end  -- safeguard against nil value
            i += (c == 255) and 2 or 1
            if c > 16 then
                poke(m, (c == 255) and d or c ^^ 0x80)
                m += 1
            end
        end
    end
end

I shared the fix to the creator
https://www.lexaloffle.com/bbs/?pid=153066#p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants