News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Energy Tank Crashes Game?

Started by AquaSoul, October 16, 2016, 01:02:02 PM

Previous topic - Next topic

AquaSoul

This could be something really stupidly easy to fix, but upon changing a scroll PLM to an energy tank, the game freezes. The hud goes invisible, and the music keeps playing. This also happens with Chozo Ball tanks. The Chozo Ball tanks freeze on the frame the tank would appear. However, hidden tanks would be fine. Missles, Supers, Power Bombs, all beams, and all misc. (including suits) items work fine. It's only energy tanks. Again, this could be stupidly easy to fix, but any help is welcome.

Note - I use SMILE RF and this is on a Project Base rom.

TheAnonymousUser

My only guess is that the PLM data isn't set properly? Usually each plm has a text file in smile that tells you what the high and low bits for that plm does. In this case, the high bit for the e-tank is generally set to 00 (you can set it to 80 to make it reappear, but there's little reason to), while the low bit (and I doubt the crashing is because of this) acts like an identifier/flag for plms.

Scyzer

An older version of RF had a bug when changing PLM values for various pickups (such as energy, missiles, etc), which would break the code for that PLM. This was fixed in a later version, but the broken code still remained in the ROM if you had tried to change a value.

You can check if this is the case by typing "rfdebug" and hitting enter while RF is open, and an extra window will appear on the ROM Stuff page. At the bottom is a button called "Check PLM Error". This will check the ROM for errors that RF would have caused itself (it does NOT find errors that RF didn't cause with that particular bug).
If no errors are found, then it's something else. You can do a File Compare and check for any changes between 20000 and 27FFF, then try undoing any found changes there.