Homebrew WIP NESalizer - Successor to LaiNES

Kevoot

Well-Known Member
OP
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
Hey all,

Figured I'd make a thread for this as it's getting relatively close to an initial (albeit somewhat buggy at first) build of the successor to LaiNES, NESalizer

Why start a whole new emulator might you ask?

LaiNES was a giant pain in the ass to debug. Credit where credit is due to the original author, but they attempted to write the emu in as few lines as possible and as a result was nightmarish to debug. I spent many hours attempting to track down where all the memory leaks were to no avail. Additionally, LaiNES compatibility was very low and answering why games didn't run by constantly linking the compatibility chart wore me thin.

So how is this better?

For one, the initial port ran better even with the compiler optimization flag set to -O1, compared with -O3 for LaiNES. Now obviously the emulator this is based on may be a bit less accurate, but I'd rather my games playable frankly. In addition, the code is FAR more readable and means I can actually effectively debug.

What can it currently do?

Load a ROM one time, and run smoothly.
Warning: exit the emulator by hitting the home button. Trying to exit through the menu currently crashes the switch.

<thing> is broken! What am I doing wrong?

Probably nothing. The current state is a WIP. Here's a list of broken stuff I'm working on:

- Pausing emulation
- Loading a new ROM after the initial one is loaded.
- Configurable Controls
- Clean Exits
- Reconfiguring video settings
- Menu controls are janky as hell
- Palette seems...off. Red Looks very brown, not sure what's up with that yet.

So how do I test this out?

There is no release as of yet, because it's broken in many ways that will give bad first impressions.

So with all of that said, the repo is here:
https://github.com/Kevoot/NESalizer

As soon as I have a release, I'll be sure to update this immediately. See you all soon.
 
Last edited by Kevoot,

Kevoot

Well-Known Member
OP
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
I hope I can play punch out in this emulator, in laines I could not. Thanks for working in this emulator
Can confirm so far working: Contra, Zelda 1&2, Mario 1, 2, and 3 (even the duck hunt version of no. 1), and of course Punchout. The mappers supported are in the readme, at some point I'll cross reference implemented mappers with game names and include a list of games expected to work.
 
  • Like
Reactions: slaphappygamer

Kevoot

Well-Known Member
OP
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
Update: things are moving along smoothly. Implementing a pause for the emu/sdl threads for transitioning between UI and running game. Save/Load states are working, controls are all set. Been pretty busy with work and classes but I should be able to push out an initial release within the next week or two.

If opengl support makes its way into sdl before then I'll make sure that's working before the release as well.
 
Last edited by Kevoot,

Kevoot

Well-Known Member
OP
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
Update: working out a weird bug where the video renders properly and at the right fps only when using nxlink for debugging. Once I get that bug sorted out I'll be doing an initial release. Possibly tomorrow if I can get through my other work in a reasonable time, otherwise probably Tuesday.
 

AcuRaw

Member
Newcomer
Joined
Jul 30, 2012
Messages
13
Trophies
0
XP
35
Country
United States
Sorry for the noob question but how do I run this?

When I go to the GitHub link, I see there are a dozen different files. What files do I need on my SD card?
 
Last edited by AcuRaw,

AcuRaw

Member
Newcomer
Joined
Jul 30, 2012
Messages
13
Trophies
0
XP
35
Country
United States
That's what I was having trouble with. I couldn't find a NRO file and there in nothing available under releases.
 

Kevoot

Well-Known Member
OP
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
That's what I was having trouble with. I couldn't find a NRO file and there in nothing available under releases.
Read my first post again. This is a WIP and I have not posted an official release yet. I will be releasing as soon as I deem it to be useable enough by the general public. Right now there are a few outstanding issues I would like fixed before that state is achieved.
 

TamarindoJuice

Well-Known Member
Member
Joined
Jan 30, 2016
Messages
288
Trophies
0
XP
1,531
Country
Brazil
Read my first post again. This is a WIP and I have not posted an official release yet. I will be releasing as soon as I deem it to be useable enough by the general public. Right now there are a few outstanding issues I would like fixed before that state is achieved.

Not trying to bother you aboutETA but... It's going to be released anytime soon dear dev?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
    Karma177 @ Karma177: do y'all think having an sd card that has a write speed of 700kb/s is a bad idea? trying to...