Homebrew RELEASE LaiNES - A cycle accurate NES Emulator

  • Thread starter Deleted-442439
  • Start date
  • Views 46,816
  • Replies 132
  • Likes 35

TheRocK

Well-Known Member
Member
Joined
Apr 16, 2003
Messages
374
Trophies
2
Website
Visit site
XP
819
Country
Gambia, The
New Release: 1.4

This one fixes most crashing issues seen before. The issues seem to stem from a deadlock somewhere on the multithreading end of things. I don't really have time to track it down, so have reverted the threading and fixed up a few things.

Configurable controllers are now supported as well, so have fun!

Release: https://github.com/Kevoot/LaiNESwitch/releases/tag/1.4

This one freezes on a black screen.
 

Kevoot

Well-Known Member
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
This one freezes on a black screen.
What does your directory structure look like? The switch.settings should be at the root of the sdcard, the .nro and res folder should be in sdmc:/switch/LaiNes/

EDIT: Just looked at my code. I forgot to include the "switch" portion of the filepath. Will have to fix when i get home. For now, move the res folder to the root of the sdcard and keep the .nro folder where it is.
 
Last edited by Kevoot,
  • Like
Reactions: TheRocK

TheRocK

Well-Known Member
Member
Joined
Apr 16, 2003
Messages
374
Trophies
2
Website
Visit site
XP
819
Country
Gambia, The
What does your directory structure look like? The switch.settings should be at the root of the sdcard, the .nro and res folder should be in sdmc:/switch/LaiNes/

EDIT: Just looked at my code. I forgot to include the "switch" portion of the filepath. Will have to fix when i get home. For now, move the res folder to the root of the sdcard and keep the .nro folder where it is.

That worked, but clicking the 'Load Rom' menu button also freezes my switch.

Why not keep every file in /switch/LaiNes/ ?

Edit:
Nevermind had the roms in the wrong folder. Put them in /switch/LaiNes/game/ unfortunately it freezes when loading a rom. :(
 
Last edited by TheRocK,

Kevoot

Well-Known Member
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
That worked, but clicking the 'Load Rom' menu button also freezes my switch.

Why not keep every file in /switch/LaiNes/ ?

Edit:
Nevermind had the roms in the wrong folder. Put them in /switch/LaiNes/game/ unfortunately it freezes when loading a rom. :(
What game? On my repo there is a compatibility list. Please check on there if it's supported.
 

rocket1420

New Member
Newbie
Joined
Aug 8, 2018
Messages
1
Trophies
0
Age
42
XP
54
Country
United States
So I finally got this working by moving the required files to the root of the SD card and getting the latest release. It now launches the ROMs just fine, for the most part. BUT, the controls don't seem to be mapped properly. A seems to be mapped to "left," the stick works fine, but B does nothing. Is there a problem with the app or am I doing it wrong?

EDIT: Okay I figured out how to change controls. I cleared the first level in Dr. Mario and it crashed :(.
 
Last edited by rocket1420,

Bellebite2000

Well-Known Member
Member
Joined
Jul 31, 2018
Messages
180
Trophies
0
Age
64
XP
256
Country
Afghanistan
Is this still the best nes emulator currently on the Switch?

Sadly yes, and by best, I mean this is the only standalone one. Never managed to make it work, just gave up.
Either this or the Fat32 friendly / SX OS suxx retroarch nazis for now... Thoughts and prayers for Cpasjuste, to come up with PNES, a port of FCE!!
 

Kevoot

Well-Known Member
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
Sadly yes, and by best, I mean this is the only standalone one. Never managed to make it work, just gave up.
Either this or the Fat32 friendly / SX OS suxx retroarch nazis for now... Thoughts and prayers for Cpasjuste, to come up with PNES, a port of FCE!!
Throwing a lot of hate toward people providing you with free things for your enjoyment. Maybe just a bit of courtesy and thankfulness in the community and more people would be will to work long term on these projects. Just a guess.
 

m4xw

Ancient Deity
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
Sadly yes, and by best, I mean this is the only standalone one. Never managed to make it work, just gave up.
Either this or the Fat32 friendly / SX OS suxx retroarch nazis for now... Thoughts and prayers for Cpasjuste, to come up with PNES, a port of FCE!!
Let me tell you, his port has the exact same exfat issues, as any other homebrew. Stick that "retroarch nazis" up your butt or something
 

Eskorbuto

Active Member
Newcomer
Joined
Jul 26, 2018
Messages
25
Trophies
0
Age
42
XP
164
Country
Australia
This emulator only shows a few of my games, the other games are in the SD card, but not shown in the emulator, it shows only a small list
 

deanspeed

Active Member
Newcomer
Joined
Apr 24, 2018
Messages
36
Trophies
0
Age
38
XP
233
Country
United States
If I wanted to add a save file for a game from a pc nes emulator to this. Will it work? And if so, where would I put it on the sd card?
 

Kevoot

Well-Known Member
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
This emulator only shows a few of my games, the other games are in the SD card, but not shown in the emulator, it shows only a small list
Use the same file extension name as the ones being seen by the emulator. Afaik .nes and .rom are picked up but I'm at work so not sure off the top of my head.

If I wanted to add a save file for a game from a pc nes emulator to this. Will it work? And if so, where would I put it on the sd card?
Save states aren't supported at the moment. Initial integration was started but due to bugs is on the backburner, which brings me to my next point:

Things are pretty busy for me at the moment which is why there hasn't been a proper new release in some time. Between personal life issues and stress from work it's been difficult to find any time at all to work on this, and with the miniscule amount of free time I do come across I've been trying to take care of my health (dropped to 125 lbs. from working so hard I've been forgetting to eat...I'm 5'9" to put it into perspective).

Once my plans start working out on how to get my life reorganized I plan on ditching LaiNES as the core port of the emulator as there's just too many memory leaks and issues to track down. Apart from that I've been pretty demotivated to work on it due to the nature of many users both here and elsewhere who seem to think I owe them anything at all and their self-centered attitudes. It's one thing to report a bug, a whole other to DM directly calling my code shit (which has happened on here, reddit, etc.). I'm no stranger to criticism but I've never seen the animosity included alongside it with such odd intensity.

I had been hemming and hawing about this for some time now, but I've decided instead to begin replacing it with a proper FCEUX port instead since not only is it far more stable but also supports a much wider array of games. The reason LaiNES (the original version) was abandoned seem to be the same problems I'm running into now: because of the abnormal and often times unnecessarily arbitrary way of writing large portions of it, debugging and finding memory leaks is layers of redirections and headaches and not worth it in the end.

So a port of FCEUX proper will be on its way. Can't say how long it will take but that's what is to be expected now instead of more bugfixes on the current project.
 

jimmykarlbird

New Member
Newbie
Joined
Aug 7, 2018
Messages
2
Trophies
0
Age
37
XP
51
Country
United States
Use the same file extension name as the ones being seen by the emulator. Afaik .nes and .rom are picked up but I'm at work so not sure off the top of my head.


Save states aren't supported at the moment. Initial integration was started but due to bugs is on the backburner, which brings me to my next point:

Things are pretty busy for me at the moment which is why there hasn't been a proper new release in some time. Between personal life issues and stress from work it's been difficult to find any time at all to work on this, and with the miniscule amount of free time I do come across I've been trying to take care of my health (dropped to 125 lbs. from working so hard I've been forgetting to eat...I'm 5'9" to put it into perspective).

Once my plans start working out on how to get my life reorganized I plan on ditching LaiNES as the core port of the emulator as there's just too many memory leaks and issues to track down. Apart from that I've been pretty demotivated to work on it due to the nature of many users both here and elsewhere who seem to think I owe them anything at all and their self-centered attitudes. It's one thing to report a bug, a whole other to DM directly calling my code shit (which has happened on here, reddit, etc.). I'm no stranger to criticism but I've never seen the animosity included alongside it with such odd intensity.

I had been hemming and hawing about this for some time now, but I've decided instead to begin replacing it with a proper FCEUX port instead since not only is it far more stable but also supports a much wider array of games. The reason LaiNES (the original version) was abandoned seem to be the same problems I'm running into now: because of the abnormal and often times unnecessarily arbitrary way of writing large portions of it, debugging and finding memory leaks is layers of redirections and headaches and not worth it in the end.

So a port of FCEUX proper will be on its way. Can't say how long it will take but that's what is to be expected now instead of more bugfixes on the current project.

Thanks for the update. While I've only used it minimally, I've got no complaints reaping the rewards from your labor. I couldn't even begin to try and figure out how to port an emulator to the switch, so even if it's a bit "clunky" I'm not going to complain for something I got for free due to someone else's work. I hope things work out for you in all facets of life. Good luck with everything, and thanks again!
 

Eskorbuto

Active Member
Newcomer
Joined
Jul 26, 2018
Messages
25
Trophies
0
Age
42
XP
164
Country
Australia
Now I see all my games, now I detected that looks like it won't play long filenames ROMs, ill try to rename to see if it can play certain time that is not working
 

Kevoot

Well-Known Member
Newcomer
Joined
May 23, 2018
Messages
67
Trophies
0
Age
40
XP
430
Country
United States
Just as an update:

The port of the other NES emulator is underway. Video and Audio are done and in sync. Compatibility is much higher and far less speed issues. Nailing down what I want for a UI then I'll be doing an initial release. I'd consider LaiNES dead at this point as I'm not intending on supporting or bugfixing any further.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I'm doing alright, thanks.
    +1
  • Maximumbeans @ Maximumbeans:
    That must be rough. Productive I'm sure but hard to balance with daily life
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Indeed. I've been working on getting this Infecutus chip to work on my PS2. But after soldering, I realised that a plastic piece was missing from the power ribbon cable to the power and eject buttons.
  • SylverReZ @ SylverReZ:
    Now I could go with soldering the contacts from the cable to the connector on the mobo, but doesn't sound like a good permanent solution.
  • Maximumbeans @ Maximumbeans:
    Man, that's beyond my brain :rofl: I'm no good with hardware for now. I'd like to get into hardmods in future though
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Maybe start practice soldering. Get a cheap-ass soldering iron and follow some good YouTube tutorials.
    +1
  • SylverReZ @ SylverReZ:
    Least my experience has gotten better than over a decade ago. My iron would constantly bump into components and break them.
  • Maximumbeans @ Maximumbeans:
    Sounds good. I actually did soldering but like 16 years ago for school so uuuuh probably rusty haha
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Same here. I did soldering at school from a teacher who I honestly liked since he had plenty of good electronics experience.
    +1
  • Maximumbeans @ Maximumbeans:
    I wish I could play chess well
    +1
  • Maximumbeans @ Maximumbeans:
    Useless but a true art
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I had a friend who had a glass chess set for their birthday.
  • SylverReZ @ SylverReZ:
    It was like all clear and fancy. Tbf I'm not too experienced with chess, but would like to learn someday.
  • Maximumbeans @ Maximumbeans:
    That sounds really cool
  • Maximumbeans @ Maximumbeans:
    I know the basics but no strategy at all :rofl:
    +1
  • Veho @ Veho:
    Watch chess streamers on Twitch and you'll pick up a thing or two.
    +1
  • Veho @ Veho:
    Not to mention there's an infinite number of chess games for every possible platform.
    +1
  • DinohScene @ DinohScene:
    just play it, get beaten a few times and start dominating
    +1
  • K3Nv2 @ K3Nv2:
    Nude chess is best
    +1
  • DinohScene @ DinohScene:
    strip checkers > nude chess
    +1
  • K3Nv2 @ K3Nv2:
    Nude checkers get jumped
    +1
  • SylverReZ @ SylverReZ:
    @Veho, I guess you'd pick up something while watching tub streams.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Dick fights. :tpi:
  • Veho @ Veho:
    Turkish olive oil wrestling.
    Veho @ Veho: Turkish olive oil wrestling.