Lemmings Forums

Other Lemmings Projects => Other Projects => Topic started by: The Tomato Watcher on April 03, 2023, 07:47:37 PM

Title: NES Lemmings Improvement Hack [V1.4 Out Now!]
Post by: The Tomato Watcher on April 03, 2023, 07:47:37 PM
EDIT 08/27: Version 1.4 out now! Among other things, it features the classic "Let's go!" speech sample we all know and love, with everything crammed into the same 256 KB as the vanilla game! More details in the readme and most recent posts! https://www.romhacking.net/hacks/7748/ (https://www.romhacking.net/hacks/7748/)
For anyone who isn't too familiar with IPS patches, you will need to obtain a copy of the US Lemmings ROM yourself, then download a program like LunarIPS which will let you select the ROM and the patch and apply it for you.

Yeah I should stop running my mouth nonstop in the Discord server and actually make a proper post about this, shouldn't I :P

Anyway, I'm working on an improvement romhack for this utterly terrible version of Lemmings. I originally just wanted to see if I could fix an issue with the sound driver, but then I experimented with fixing other issues, just on a whim at times, and eventually I found myself working on a full improvement hack. Here's the title screen :)
(https://i.imgur.com/Ep7aLA0.png)

Plus a menu screen, with the background removed so this 3-color font, provided by CindySparks, can work with no issue.
(https://i.imgur.com/FtJxNXQ.png)

Here's some palette changes along with a lovely skill bar graphic, also by CindySparks ^^
(https://i.imgur.com/XGFsXXU.png) (https://i.imgur.com/cEX9dDL.png) (https://i.imgur.com/H0FgBj5.png)

It's not just graphics, though. Here's the bulk of the changes made so far:

Those gameplay issues are certainly not the ONLY ones in the game but they are certainly the most annoying. There is one last oddity I intend to look into--Bashers sometimes pass through the first tile of terrain in their way without deleting it for reasons I don't yet understand. It doesn't happen often but it never feels good when it does.

Now, since I had to adjust the skill sets of some levels anyway, I have begun experimenting with tweaking the properties of other levels, particularly ones in Taxing which, in my opinion, is BY FAR the dullest rating in this version. For example, POOR WEE CREATURES was reduced to a pure Builderfest in this version, but with my edits to the skill set, save requirement, and release rate, it has at least a little more depth now.

I'll have to get into the specifics of these level changes later, as well as perhaps recruiting a couple playtesters... assuming anyone would actually be interested in that :P
Title: Re: NES Lemmings Improvement Hack [WIP]
Post by: The Tomato Watcher on April 10, 2023, 12:27:15 PM
I suppose an update is in order as I've made some exciting changes. I have not yet looked into the odd Basher behavior described above, but here's what I have done.
(https://i.imgur.com/RZhLbTV.png)
Title: Re: NES Lemmings Improvement Hack [WIP]
Post by: The Tomato Watcher on April 13, 2023, 08:54:36 AM
So, I think I'm ready to post the level changes and, if anyone actually wants to play them (do keep in mind you can switch skills while paused now(!) among other things), get some feedback on my new solutions, e.g. if they're too out-of-place difficulty-wise, if there's a bad backroute, etc.

Along with the .IPS file, I've attached a spreadsheet detailing all the notable level changes as well as providing the passwords to each. Not all of them need to be tested necessarily (for example, We All Fall Down (only the Fun one in this version) is Diggers-only now, and I don't think anyone will argue with that or run into problems with the solution), but I'm keeping track of them nonetheless.

Also, I made a couple more general changes since the last post.

NOTICE: Currently, this hack is only designed to be applied to the US version of the game, and there are no guarantees about what will happen with the PAL version.
Title: Re: NES Lemmings Improvement Hack [WIP]
Post by: CindylemSparks on April 13, 2023, 04:44:19 PM
cindy here, congrats on the test release!, I can't wait yall to check this out, we are working hard on making it the best it could be :thumbsup:
Title: Re: NES Lemmings Improvement Hack [WIP]
Post by: The Tomato Watcher on April 14, 2023, 07:46:21 PM
Hey all, uh- small warning. Turn your volume down before booting the game first time. Depending on a lot of factors that I don't feel like explaining right now, you might be greeted by a VERY unpleasant and loud sound during the intro cutscene. I did not encounter this before this beta release because I didn't have developer settings enabled like an idiot. I haven't fixed it yet but I'm looking into it.

On a more positive note, I've managed to get Builders to stop bouncing off exits and hatches! :D For this beta release I had to add a few extra Builders in some levels where bouncing off the exit could be lethal. The behavior now is for them to stop building and NOT turn around, and since exits aren't solid, I think this makes sense. Besides, it is exactly what happens in the original game.

My remaining goals for the next beta version:
Title: Re: NES Lemmings Improvement Hack [WIP]
Post by: The Tomato Watcher on April 15, 2023, 12:52:58 AM
Beta Version 0.1 is now available! If it wasn't for the awful audio bug I would have waited a bit, but it really needed fixing. Plus, I discovered ANOTHER bug that I hadn't encountered before for the exact same reason as the audio bug. Both seem to be fixed now. I've posted the updated level edits spreadsheet as well. :)

Some other patch notes:
(https://i.imgur.com/QTOmyZl.png)
It doesn't look amazing, but ANYTHING is better than how BS the level was in the original.

Known Issues:
Title: Re: NES Lemmings Improvement Hack [Beta 0.2]
Post by: The Tomato Watcher on April 16, 2023, 12:31:07 AM
Beta Version 0.2 out now! :D This version introduces quite a few more level changes, which are detailed in the spreadsheet attached below, but the most notable ones are:

Some other patch notes:

Known issues:
Title: Re: NES Lemmings Improvement Hack [Beta 0.2]
Post by: The Tomato Watcher on April 17, 2023, 07:42:45 PM
Alright y'all, I am sad to report that I thought I fixed the Frame 1 Shrugger glitch, but it just happened to me again playing through the levels.

Trust me when I say there is ABSOLUTELY NOTHING I can do to fix this; I'd have to rewrite the whole main game loop from scratch pretty much. That is WELL above my paygrade. So um... don't assign Builders to Shruggers on their first frame, I guess.


Oh also there's a similar glitch with Blockers where if you assign them to a Lemming exactly on the edge of a platform, it'll just get eaten and the Lemming will fall. I'm not even gonna try fixing that one. Sorry everyone. :'(


EDIT: I just discovered ANOTHER glitch that results in a skill being eaten if you're frame perfect. And with that, I am deciding, right now, that I will no longer be fixing ANY bugs that are from the base game. If there's a bug in my own code I'll look into it, but otherwise? I'm done. There's probably HUNDREDS of weird edge cases like this and I have NO interesting in pursuing all of them. I've fixed the absolute worst of this game's issues, and that's good enough for me. This version is still not final because I may still make level changes.
Title: Re: NES Lemmings Improvement Hack [Beta 0.2]
Post by: The Tomato Watcher on April 18, 2023, 12:53:41 AM
Alright, last wave of level changes before I get some feedback.
Beta 0.3 is out now!
Spreadsheet of level edits attached as well. I hope you think they're decent fits for their ratings ^^

If the levels are all alright, I'll go ahead and put the finishing touches on this version and make it "final" (v1.0). I'll be waiting for a decent while though, and I'll consider all feedback. :)
Title: Re: NES Lemmings Improvement Hack [Beta 0.3; Level edits are awaiting feedback!]
Post by: WillLem on April 18, 2023, 07:21:39 PM
Looking good. Does this run in any NES emulator?

(and, I'm guessing it's a patch for the original ROM rather than a standalone...?)
Title: Re: NES Lemmings Improvement Hack [Beta 0.3; Level edits are awaiting feedback!]
Post by: The Tomato Watcher on April 18, 2023, 07:52:29 PM
Looking good. Does this run in any NES emulator?

Yes! And thank you. :D

(and, I'm guessing it's a patch for the original ROM rather than a standalone...?)

Yeah it's a patch. You'll need Lunar IPS and a copy of the US ROM specifically.
Title: Re: NES Lemmings Improvement Hack [Beta 0.3; Level edits are awaiting feedback!]
Post by: Proxima on April 18, 2023, 07:55:14 PM
Would you consider releasing a version with the quality of life changes but without the level changes?
Title: Re: NES Lemmings Improvement Hack [Beta 0.4; Fixed some incorrect collision data]
Post by: The Tomato Watcher on April 18, 2023, 08:01:44 PM
Would you consider releasing a version with the quality of life changes but without the level changes?

Not a bad idea. As far as I can tell, none of the levels would be impossible thanks to these changes, but some could definitely be very easily cheesed, so that's something to keep in mind. If I were to release a version like that, should I use the original annoying Builder behavior and the like? As in, should I leave the main gameplay untouched for a version like that? Obviously I'd keep the ability to switch skills while the game is paused and stuff like that, but as far as how Lemmings would interact with the terrain, what would be the best thing for me to do?
Title: Re: NES Lemmings Improvement Hack [Beta 0.4; Fixed some incorrect collision data]
Post by: The Tomato Watcher on April 25, 2023, 05:12:28 AM
So, thinking about that version with no level changes some more: I realize that there might actually be some levels rendered impossible (or at least stupidly precise) thanks to these gameplay tweaks, so what I'm now thinking of doing is testing all 100 levels, leaving the cheese-able ones alone, but changing the skill sets of the impossible/stupid hard ones by as little as possible to make the level beatable. That sound alright?

Also, I'm pretty much in the finishing touches state at this point, at least for the main version. I made the credits text blue, and I think the altered levels are probably fine; I know for sure that none of them are impossible, which is by far the most important thing. I probably--no, definitely--could have managed this a little better, but I went into this pretty much blind :P

(https://i.imgur.com/upu14KN.png)
Blue text!
Title: Re: NES Lemmings Improvement Hack [Near-Complete, finishing touches]
Post by: The Tomato Watcher on April 26, 2023, 02:16:08 PM
I FIXED THE BASHER GLITCH FINALLY!!! I'm fully releasing this later today before I screw it up somehow. This was the hardest code puzzle I've had to solve BY FAR while working on this, but it was worth it. When you assign a Basher to a Lemming now, it will immediately delete the tile it's standing within, assuming there's actually terrain there. I checked all the edge cases too; they won't bash through exits or anything like that. You can now bash out of a pre-made Miner tunnel and through those STUPID bars in "THE PRISON" without worry :)
Title: Re: NES Lemmings Improvement Hack [Complete, awaiting RHDN approval]
Post by: The Tomato Watcher on April 28, 2023, 02:15:40 AM
On Tricky 8, something may go wrong with OAM RAM when the hatches open that causes the status bar to have incorrect graphics and the music to slow down for one frame. I have no idea why this happens, it may even depend on emulator or something, and it looks like there is absolutely zero rhyme or reason to it and there's likely nothing I can do, but since it's for one frame on one level only (so far...) I'll just have to live with it.

I solved the Tricky 8 mystery. In short, the NES PPU is jank, and through bad luck there's a lot of tiles to animate on one frame for that level, and when the hatches open, it takes juuust long enough to update those extra tiles that sprite data (written after everything else) is still being written by the time the screen is starting to be drawn, which triggers a hardware bug that corrupts the sprite data. Yay. I have an idea to mitigate this in the code, and if that fails, I can also just remove the lava from that level. If the DOS version can do stuff like that, then so can I :P Gonna wait till the romhacking.net submission is approved or denied though; if it does get denied for whatever reason, might as well make this one last change before officially releasing v1.0.
Title: Re: NES Lemmings Improvement Hack [v1.0]
Post by: The Tomato Watcher on April 28, 2023, 02:24:24 AM
Talk about timing!!! The hack just got approved! Here's the romhacking.net page! https://www.romhacking.net/hacks/7748/ (https://www.romhacking.net/hacks/7748/)
Title: Re: NES Lemmings Improvement Hack [v1.0]
Post by: The Tomato Watcher on May 10, 2023, 03:38:38 AM
There's gonna be a v1.1 update here in a bit, fixing the Tricky 8 bug and addressing some feedback I've gotten since release.

Beyond the bug fix, I'll be tweaking the final level--and likely some of the adjacent levels--after some feedback from roundthewheel.

Additionally, I will look into enabling assigning skills to lemmings while the game is paused--a feature available in a couple of official versions--since the game runs kinda fast at NTSC speed and the levels are more cramped. The constant pause-resume cycle can get old kinda fast, so I'm gonna look into mitigating that. Hopefully it's as simple as changing one line of code like enabling switching skills while paused was, but if it causes other issues I'm likely not gonna bother.
Title: Re: NES Lemmings Improvement Hack [v1.0]
Post by: The Tomato Watcher on June 17, 2023, 03:09:54 PM
There's gonna be a v1.1 update here in a bit, fixing the Tricky 8 bug and addressing some feedback I've gotten since release.

Beyond the bug fix, I'll be tweaking the final level--and likely some of the adjacent levels--after some feedback from roundthewheel.

Additionally, I will look into enabling assigning skills to lemmings while the game is paused--a feature available in a couple of official versions--since the game runs kinda fast at NTSC speed and the levels are more cramped. The constant pause-resume cycle can get old kinda fast, so I'm gonna look into mitigating that. Hopefully it's as simple as changing one line of code like enabling switching skills while paused was, but if it causes other issues I'm likely not gonna bother.

The update is out now! I took care of all three of those issues mentioned above and cleaned a couple things up. https://www.romhacking.net/hacks/7748/
Title: Re: NES Lemmings Improvement Hack [v1.1]
Post by: The Tomato Watcher on June 21, 2023, 04:40:47 AM
Oh yeah here's the soundtrack if any of you all are interested in that: https://youtu.be/rRW8WNkuvao (https://youtu.be/rRW8WNkuvao)
Title: Re: NES Lemmings Improvement Hack [v1.1]
Post by: The Tomato Watcher on June 25, 2023, 05:04:09 AM
Found another glitch. Classic left-right jank involving Miners and Bashers...
(https://i.imgur.com/mZYo8YP.jpg)

I've managed to fix it, though, and V1.2 is releasing very soon. I've also swapped the level layout of Fun 18 from being an "easier" version of Tricky 1, primarily because the two level's solutions are exactly the same, even with the different skillset. It's now an easier version of Mayhem 14, which is based on Mayhem 26 of Amiga Lemmings.

Before I actually release V1.2, I'd like everyone's opinion on a potential Faller animation change. Currently, they flip back and forth as they fall, much like the Master System version. This isn't a bug or anything of the sort; it's baked into the animation cycle, which means it can also be removed easily. I'm thinking about having the animation stay facing the same direction, and I've put a poll on this topic about this.
Title: Re: NES Lemmings Improvement Hack [v1.2 Soon, Bug Fix]
Post by: The Tomato Watcher on June 26, 2023, 05:43:01 PM
V1.2 is out now! In addition to the changes mentioned above, I managed to implement a way to skip the intro cutscene without having to wait for the screen to stop scrolling to the right.

https://www.romhacking.net/hacks/7748/ (https://www.romhacking.net/hacks/7748/)
Title: Re: NES Lemmings Improvement Hack [V1.2 Out Now!]
Post by: The Tomato Watcher on August 24, 2023, 07:59:43 PM
Hi, I'm working on a v1.3 for this hack as of now. :) The biggest addition is improved cursor movement.

The original NES version would stiffly move the cursor at a constant 2px/frame, which would feel twitchy in some situations and really slow in others. In contrast, almost every other version of the game that lacks mouse control has the cursor accelerate the longer the player holds a direction until reaching a top speed. I managed to find some more free space in the ROM and was able to implement a close approximation of the SNES version's d-pad control (the gold standard IMO), just very slightly jerkier and lacking the "run" button, so to speak. The game feels so much better to play now.

Aside from that, I'm just adding some polish. I've edited the cursor graphics so that they can't blend into the terrain or other lemmings. Do let me know what you think of these new sprites. :)
(https://i.imgur.com/Fc11rEO.png) (https://i.imgur.com/ry7S635.png)

The game also now initializes all of system RAM at power-on. Yes, the original NES version didn't do that. More or less, things just happen to work out perfectly in the code that this doesn't matter, but it's still bad practice and has already caused me several problems!

Finally, I plan on adjusting the audio mixing and fixing a very slight bug in the sound driver.

Title: Re: NES Lemmings Improvement Hack [V1.3 Out Now!]
Post by: The Tomato Watcher on August 28, 2023, 04:14:56 AM
V1.3 has been approved on RHDN! https://www.romhacking.net/hacks/7748/ (https://www.romhacking.net/hacks/7748/)

Included in the .ZIP file is a PAL-targeted patch for those who wish to play at the slower physics rate (probably most of you) without the music being significantly affected!
Title: Re: NES Lemmings Improvement Hack [V1.4 Out Now!]
Post by: The Tomato Watcher on March 08, 2024, 01:10:30 AM
V1.4 has been approved on RHDN! https://www.romhacking.net/hacks/7748/ (https://www.romhacking.net/hacks/7748/)

This version includes the classic "Let's go!" speech sample that we all know and love, without requiring any increase in the size of the ROM! I'm really proud of that, honestly; it took a clever trick to make work. There's some slight bug fixes and QoL improvements as well! The PAL-optimized patch has been updated appropriately as well and is still included in the .ZIP file.