News:

11 March 2016 - Forum Rules

Main Menu

Help with smb1 hack

Started by DANGER X, May 11, 2013, 07:03:06 PM

Previous topic - Next topic

DANGER X

I've already maked the incredibly hard "extreme danger bros." hack .Now i need help to make an even harder game.Is someone there who knows how to put spikes in the game (i mean blocks that kills you)?
Join my nes forum http://nesfe.forumgratuit.ro/

Jeville

idk about adding spikes but this video should give you some ideas:

http://www.youtube.com/watch?v=dqog-br6nhY

DANGER X

#2
This is the hardest smb1 hack i've ever saw,it really gives my some ideas.
Join my nes forum http://nesfe.forumgratuit.ro/

Pikachumanson

Maybe you can use the data from those rotating fireball obstacle in bowsers castle. Find a way to shorten it to one fireball then change the graphics to spikes or a deathblock.

LostTemplar

Quote from: DANGER X on May 12, 2013, 06:24:07 AM
Could you give my more information about this 'idk',where do i find it how do i use it...

"idk" is the abbreviation of "I don't know", it's not the name of anything.

DANGER X

Thats a god idea 'Pikachumanson' but i don't know any program for hacking this game except insectduel util,I tried mario improvement but it didn't worked.Is there someone who knows more programs.
Join my nes forum http://nesfe.forumgratuit.ro/

Pikachumanson

No level editing program I know of will do what I described. You'd have to find the data in a hex editor and work your magic from there. Have you tried looking at the rom map in data crystal?


DANGER X

#7
Wow i didn't' saw this section before,is quite useful.Thanks.
But i didn't find any spike code there.Is there someone who knows more?
Join my nes forum http://nesfe.forumgratuit.ro/

snarfblam

Quote from: DANGER X on May 14, 2013, 01:13:43 PM
But i didn't find any spike code there.Is there someone who knows more?
It would need to be written from scratch for this specific game. There are complete SMB disassembles out there, which is hugely useful, but you would still need to know assembly to make use of the disassembly and write new code.

altoiddealer

Quote from: DANGER X on May 11, 2013, 07:03:06 PM
I've already maked the incredibly hard "extreme danger bros." hack 8).Now i need help to make an even harder game.Is someone there who knows how to put spikes in the game (i mean blocks that kills you)?

Just putting it out there; I know Extra Mario Bros hack uses spike blocks (Quite a lot of them in Area 3, Area 4 and "Boss levels")

w7n

Solution is pretty simple.
If you look at the code at ROM Address $5FB1 (CPU $DFA1):

$DFA1: CMP #$C2
$DFA3: BEQ $DFAB
$DFA5: CMP #$C3
$DFA7: BEQ $DFAB
$DFA9: CLC
$DFAA: RTS

This is a 'check for coin block' routine. What you have to do is to insert the spike block judgement code into this routine.
So this is what you have to do:

1: Jump to some free space. Remain the coin block judgement unchanged. That is, if you jumped from $DFA7 you need to write the rest of the coin block judgement code there.
2: If the block isn't a coin block, do not write CLC RTS immediately. Instead write your own spike code.

Example:
;Coin judgement fails
CMP #$69       ;Which is the spike block in one of my hacks, in personal projects
BNE CLCRTSCode
LDX #$00
JSR $D958      ;Instant death if one touches it. Of course you can make changes here.
PLA
PLA
RTS            ;Immediately jump out of the previous routine. After all, as the player's dead, there's no point of continuing the block judgement routine. Probably PLA-PLA-LDX-JMP is also okay, but that doesn't matter much.
CLCRTSCode:
CLC
RTS

DANGER X

What program do i have to use?...more information...



Join my nes forum http://nesfe.forumgratuit.ro/

Pikachumanson

#12
You can use FCEUX debugger to look at the code
Well, you find an nes assembler and turn the code W7n gave to hex or you learn your opcodes and do it that way. I like ASM6 as an assembler.