Attempting to port NES games to PC for fun

A place where you can keep others updated about your NES-related projects through screenshots, videos or information in general.
mkwong98
Posts: 319
Joined: Mon May 30, 2011 9:01 pm

Re: Attempting to port NES games to PC for fun

Post by mkwong98 »

matthughson wrote: Fri Nov 21, 2025 3:03 pm I think if it's easy, it should be excluded as I haven't actually figured out what license to use for that game yet. If that complicates things, let me know and I'm sure we can figure things out.
I have add a release of the game:
https://github.com/mkwong98/NesToPcPort/releases
A section is add to the readme file and the license file in the archive to indicate that.
User avatar
matthughson
Formerly Goose2k
Posts: 349
Joined: Wed May 13, 2020 8:31 am

Re: Attempting to port NES games to PC for fun

Post by matthughson »

The license looks great, thank you for that!

However, I tried to run the game and it seems to just silently fail. I don't see a log file and I ran in a command line and there was no output to the console. I haven't tried building to run from source though to see if I can see what's happening. Same thing happens with Balloon Fight as well. I haven't tried any others.

I am running Windows 10.
mkwong98
Posts: 319
Joined: Mon May 30, 2011 9:01 pm

Re: Attempting to port NES games to PC for fun

Post by mkwong98 »

matthughson wrote: Fri Nov 21, 2025 11:02 pm The license looks great, thank you for that!

However, I tried to run the game and it seems to just silently fail. I don't see a log file and I ran in a command line and there was no output to the console. I haven't tried building to run from source though to see if I can see what's happening. Same thing happens with Balloon Fight as well. I haven't tried any others.

I am running Windows 10.
You need to create a config file with this tool: https://github.com/mkwong98/NesToPcPort ... gurator.7z
mkwong98
Posts: 319
Joined: Mon May 30, 2011 9:01 pm

Re: Attempting to port NES games to PC for fun

Post by mkwong98 »

Hi matthughson. Is it still not working? I'll add some error messages later on.
User avatar
matthughson
Formerly Goose2k
Posts: 349
Joined: Wed May 13, 2020 8:31 am

Re: Attempting to port NES games to PC for fun

Post by matthughson »

mkwong98 wrote: Mon Nov 24, 2025 8:52 pm Hi matthughson. Is it still not working? I'll add some error messages later on.
Yes it works now. Sorry I missed that step!

What is the ROM used for at runtime? I was surprised that it's needed after building the exe. Is that for graphics or something?
User avatar
matthughson
Formerly Goose2k
Posts: 349
Joined: Wed May 13, 2020 8:31 am

Re: Attempting to port NES games to PC for fun

Post by matthughson »

This is very cool! I have a couple pieces of feedback if you're interested.

1. It's a little confusing having a "Releases" section that doesn't contain a working executable. I think I get why it's that way, but maybe for From Below at least, you could include a working config so folks can just run the game? (since it includes the ROM)
2. Having the config tool separate from the actual game is a little confusing. It would be nice if it were bundled with the game exe, and possibly even run automatically if you run the game without first running the config tool.
3. Having to go find a palette file was mildly annoying. Could you include a default, and optionally allow folks to override it?
4. Alt+Enter to go fullscreen would be great!
5. Options for both controller AND keyboard for each player would be great.
6. Having to run the config from scratch to change config data is a little annoying (I know I can edit the file, but I don't know what the controller key ids are). It would be nice if it could read in an existing config.

Anyway, awesome work. Very cool project!!
mkwong98
Posts: 319
Joined: Mon May 30, 2011 9:01 pm

Re: Attempting to port NES games to PC for fun

Post by mkwong98 »

matthughson wrote: Mon Nov 24, 2025 10:17 pm What is the ROM used for at runtime? I was surprised that it's needed after building the exe. Is that for graphics or something?
Yes, that is for graphics and data.
matthughson wrote: Mon Nov 24, 2025 10:30 pm 1. It's a little confusing having a "Releases" section that doesn't contain a working executable. I think I get why it's that way, but maybe for From Below at least, you could include a working config so folks can just run the game? (since it includes the ROM)
Yes, I'll do that.
matthughson wrote: Mon Nov 24, 2025 10:30 pm 2. Having the config tool separate from the actual game is a little confusing. It would be nice if it were bundled with the game exe, and possibly even run automatically if you run the game without first running the config tool.
I'll add the tool as a separate zip file in all future releases. I'm annoyed by file size of the tool. QT3 is way to big for a simple tool like this.
matthughson wrote: Mon Nov 24, 2025 10:30 pm 3. Having to go find a palette file was mildly annoying. Could you include a default, and optionally allow folks to override it?
Can I just include one of the palette files from the wiki page? Any license attached? https://www.nesdev.org/wiki/PPU_palettes
matthughson wrote: Mon Nov 24, 2025 10:30 pm 4. Alt+Enter to go fullscreen would be great!
5. Options for both controller AND keyboard for each player would be great.
6. Having to run the config from scratch to change config data is a little annoying (I know I can edit the file, but I don't know what the controller key ids are). It would be nice if it could read in an existing config.
I'll have a look into these. Thank you for the suggestiions!
Fiskbit
Site Admin
Posts: 1405
Joined: Sat Nov 18, 2017 9:15 pm

Re: Attempting to port NES games to PC for fun

Post by Fiskbit »

mkwong98 wrote: Tue Nov 25, 2025 2:36 am Can I just include one of the palette files from the wiki page? Any license attached? https://www.nesdev.org/wiki/PPU_palettes
Please use the palette file. You don't need to credit the wiki. The wiki is public domain by default.
mkwong98
Posts: 319
Joined: Mon May 30, 2011 9:01 pm

Re: Attempting to port NES games to PC for fun

Post by mkwong98 »

Fiskbit wrote: Tue Nov 25, 2025 2:39 am Please use the palette file. You don't need to credit the wiki. The wiki is public domain by default.
Thanks! I've updated the release with a pal file and a config file. Now the game can run right out of the box. The controls are listed in the readme.
mkwong98
Posts: 319
Joined: Mon May 30, 2011 9:01 pm

Re: Attempting to port NES games to PC for fun

Post by mkwong98 »

Added Gradius and my own 2x filter.