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

Having trouble compiling code? Getting an unexpected error? Player not appearing on screen? Seeking answers on how to do a particular thing? This is the forum you're looking for, to ask other NESmaker users for assistance.
Post Reply
User avatar
pickaxemack
Posts: 5
Joined: Tue Sep 25, 2018 1:58 pm
Location: My mothers Basement. No really. Yes I pay rent.

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

Post by pickaxemack » Sat Sep 29, 2018 6:45 pm

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
2018-09-29.png (78.31 KiB) Viewed 304 times
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.
_________________________________________________________________
I don't always drink beer, but when I do, I get hammered.
User avatar
the_8bit_gamer
Posts: 3
Joined: Sun Dec 02, 2018 6:28 pm
Location: Lincoln NE

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

Post by the_8bit_gamer » Thu Jan 10, 2019 12:26 am

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.
User avatar
dale_coop
Posts: 2561
Joined: Fri Feb 16, 2018 7:05 am
Location: France

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

Post by dale_coop » Thu Jan 10, 2019 7:21 am

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
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE
Post Reply