"Immune to weapon" Monster crashes game when attacked [SOLVED]

pickaxemack

New member
Hello again. So I'm following The Adventure Module "wedNESday" Tutorial and I ran into a bug, The "Immune to weapon" option (shown) crashes the game test, when the player attacks it, consistently.
now obviously its a script error right? but I haven't modified anything without the guide. Any help would be appreciated!2018-09-29.png
EDIT: Figured it out, it was a sound/script issue the script (handle monster hurt) tried to: "PlaySound #SFX_MISS". I changed it to: "PlaySound #sfx_miss" now it works!

what I'm talking about is all the way at the top of the handle monster hurt script it looks like this:
;;; what should we do with the monster?
;;; monster is loaded in x
LDA Object_vulnerability,x
AND #%00000100 ;; is it weapon immune?
BEQ notWeaponImmune
PlaySound #sfx_miss
JMP skipHurtingMonsterAndSound
notWeaponImmune:

Leaving this up in case people have this issue.
 

the_8bit_gamer

New member
Thanks for posting this. My game wasn't crashing like yours, but instead of playing the correct sound effect it would start playing a random song and disable some of my other sounds. This fixed all those problems.
 

dale_coop

Moderator
Staff member
If your’re working on the 4.0.x version, don’t forget to fix the sounds problem:
http://nesmakers.com/viewtopic.php?p=7638#p7638
 
Top Bottom