(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-24-24 02:56 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - Enemy Sprite Counter (from LU)
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Deleted User
Posts: 1/-7750
i'm gay
Smallhacker
Posts: 6/832
I looked into the code, but I couldn't understand enough about it.
Kailieann
Posts: 3/808
Originally posted by kailieann
I need a way to keep track of how many enemies are left in a level (I want a few levels where you have to defeat all the enemies in order to win).
Are there any known RAM addresses that keep track of sprites, either individually or as a group? Or am I going to have to put a new subroutine in for LevelASM to use?

And if the latter, does anyone have any suggestions on how to accomplish it?

Originally posted by smallhacker
I suggest making a block programmed to set a byte im RAM containing the amount of enemies in the level (the amount is in the block code, not read from the level) and adding an instruction to the enemy killing routine (may not work with all enemies, though) which decreases the sprite amount byte by 1.

Originally posted by kailieann
Hmmm...
Sounds like a plan.

Might help if I knew where the kill routine was in the rom. It's not on the list, and I know absolutely nothing about ASM tracing..

Originally posted by smallhacker
It can probably be found by adding a breakpoint to one of the (standard death routine) sprites' death settings byte (which you can find in MWR). I'll look for it if I get enough time left.

Originally posted by kailieann
Which leads us to the next problem...

What MWR says when I try to open it:
System Error &H8007007e (-2147024770). The specified module could not be found.

It's a conspiracy, I tell you. The universe does not want me hacking roms.


Anyone else have anything to add?
Acmlm's Board - I3 Archive - ROM Hacking - Enemy Sprite Counter (from LU)


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.003 seconds; used 350.15 kB (max 381.81 kB)