-
Notifications
You must be signed in to change notification settings - Fork 24
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
nesfab does nothing when trying to compile certain examples #9
Comments
That's a strange bug. Seeing "NROM requries chrrom" implies it's not parsing the files or something. I'm able to compile the example on my own computers though. Tell me me more about your setup. It looks like you're on Windows? Are you running the latest version (0.4)? |
yes i am on windows (windows 10 to be specific) and i am running 0.4 |
Thanks. Can you verify that no |
Hmm. If you don't mind trying one more thing, could you try an older version, like 0.3, and see if that works? That would help narrow things down. |
0.3 does the same as latest |
like mentioned earlier, if i remove the chrrom file loading part it also compiles hang_glider in this case, so something fails on that line of code for me |
did some experimenting to see if it was just my current windows install messing something up but even trying this both in a windows 10 and 11 vm gives the same issue |
Very helpful results :) The 'illegal instruction' is because the executable was compiled with extension flags I think it's reasonable to drop support for these extensions in the next release, as you're the second person to get this error. Until then, you can compile without extensions using:
|
The CHRROM stuff is a little baffling still. Can you narrow it down even further? For example, if this fails then it's
If this fails then it's the PNG loader:
(where file.bin is some arbitrary file) |
swapping out the file loading line with "U(10)" makes the hang_glider rom compile, really seems like something is wrong with the png loader then |
most likely my cpu just not supporting them as my cpu is fairly old by now, this isnt fully a problem for me as on the windows build it works fine, just the linux build has this issue |
also probably shouldve mentioned this, i managed to compile a rom when swapping out a png with a bin file instead by doing the "raw, "file.bin"" thing, it just really doesnt wanna do pngs for some reason |
Yeah, sounds like the PNG loader is the problem. Nesfab uses lodepng for this, so the bug might be out of my control. But I will review the code anyway. In the mean time, I'm glad there's a workaround. Instead of PNGs, you can load CHR graphics directly. External tools exist for this, like nexxt, nes asset workshop, or https://github.com/pubby/Ralph-4/blob/master/tools/pilbmp2nes.py |
dont know why this is happening specifically but it seems like some of the examples (for example, hang_glider) does absolutely nothing when trying to run its cfg file through nesfab while others (hello_world in this case) work perfectly fine.

The text was updated successfully, but these errors were encountered: