News:

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

Main Menu

[SM] BF's HUD Hack 2.5 ASM help

Started by DarkZero016, October 26, 2019, 02:13:11 PM

Previous topic - Next topic

DarkZero016

I have been looking around for several days with no success. I have been trying to edit the ASM file for Black Falcon's HUD hack to allow beam stacking, which says to just remove some comments, and can't get it to work. Every time I apply it, I get 3 errors:

Enter patch name: HUD 2.5.asm
Enter ROM name: SM.smc
hud 2.5.asm:238: error: (E5027): Invalid number. [RTS :]
hud 2.5.asm:413: error: (E5117): Unknown command. [JSR $90F084]
hud 2.5.asm:1247: error: (E5050): Unknown operator. [DW b,b,b,b,b,b#]
Errors were detected while assembling the patch. Assembling aborted. Your ROM has not been modified.

I'm not sure on what to do at this lines, so can someone make the beam stack, as I have no knowledge of ASM hacking.

Black Falcon

Okay, so this needs a bit of an explaination:
First off, these are errors that show up because asar has a much better way of checking syntax, they do not show up if you would use xkas (which is the assembler the HUD was written in mind for). It simply will not work if using asar without heavy modification, but that is besides the point.

I generally don't recommend using this HUD as it is quite outdated and, to be frank, horribly written. It will most likely conflict with any other more complex asm because it uses free space all over the place and is just not very well documented. Most of these issues stem from me being quite bad at coding back in 2011, sorry for that :heheh:

About the beam stacking, it simply does not work, even with uncommenting the lines it tells you to. It lacks essential code, and I don't have any working backups. I'd rather write a new one from scratch, but this will not happen anytime soon.

TL;DR:
Either use the consolidated version without the beam stacking, or don't use it at all.
Sorry, but there will be no support for this one.


DarkZero016

Thanks for the time to reply and explain on this. It's a bummer because I enjoyed an earlier version where beam stacking was working, and enjoyed it.
It sucks that it won't work, but I'll get over it. X)