| HDMA Help me!!! |
|
Forum Index - SMW Hacking - General SMW Hacking Help - HDMA Help me!!! |
|
Pages: 1  |
|
|
|
| Posted on 2011-10-19 10:04:36 PM |
Link | Quote |
|
I'm using the HDMA Effects 1.0 and Ersanio's LevelASM 1.4 patch.
I followed every step of the readme in HDMA Effects but the only problem is that, I don't know what code to put in levelcode.asm or levelinitcode.asm and when I put in a code, the stage crashes.
The two asm coding I am trying to use is:
HDMA Brightness Gradient Bottom.asm
HDMA Multiple Background Scroll.asm
If you guys can tell me what codes do I copy and paste or if you give me to code to it, that will be very helpful. Thanks
|
|
| Posted on 2011-10-20 02:40:33 PM |
Link | Quote |
|
First off, did you set the free space in every patch (HDMA Effects and LevelASM)?. In the HDMA effects, you should set free space in the effect you want to put. Now, copy the free space you put there.
If you are going to use gradients, then open "Levelinitcode.asm" and go to the level you wan to put the HDMA.
Example:
Now, you should paste the free space you set in the HDMA effect patch (between levelinitxxx and the RTS). Something like this:
Codelevelinit105:
JSL $FreeSpaceYouSetInTheHDMAEffect+8
RTS
You should add 8 to the free space. For example, I set $148000 as free space:
Codelevelinit105
JSL $148000
RTS
Then you add 8:
Codelevelinit105:
JSL $148008
RTS
If you are going to use "motion" effects, then do the same (set free space and insert it to your ROM, copy the free space (you can't use the same free space)). But now, you should go to levelcode.asm, and go to the level you want to put the HDMA and do the same as before (paste your address and add 8 to it):
Codelevel105:
JSL $218000
RTS
And add 8:
Codelevel105:
JSL $218008
RTS
And insert LevelASM.
Note: If you make changes to LevelASM (like adding a new code or something) reinsert it to your ROM, otherwise it won't work.
Please, tell me if you didn't unserstand something, maybe I was so simple at explaining that.
|
| Last edited on 2011-10-20 02:41:45 PM by New Hacker. |
|
| Posted on 2011-10-20 05:22:58 PM |
Link | Quote |
|
Well I have these questions...
1. When I open up my rom text where it shows the freespace, what code do I copy? Size, LoROM, or PC. Once I've found out, can I copy ANY of the codes? Does it only have to be the first one to copy?
2. If I can copy any code from the "LoROM", "PC", or "Size" section, then do I put different codes for every HDMA text/asm?
Thanks if you can help me.
|
|
| Posted on 2011-10-20 05:29:49 PM |
Link | Quote |
|
You just put the LoROM value (and delete that "0x" at the start of it), and make sure it has enough size, like 0x8000.
And yeah, when you use free space, you should not use it in any other patch.
|
| Last edited on 2011-10-20 05:32:44 PM by New Hacker. |
|
| Posted on 2011-10-20 05:41:06 PM |
Link | Quote |
|
Er.... the level keeps corrupting..
|
|
| Posted on 2011-10-20 05:45:31 PM |
Link | Quote |
|
|
Hmm... Do you have another code in levelcode.asm/levelinitcode.asm, in the level you're using the HDMA? Could you show us that part of the code?
|
|
| Posted on 2011-10-20 05:49:44 PM |
Link | Quote |
|
|
Well actually when I enter the level, the screen freezes and turn black but I can still hear the background music
|
|
| Posted on 2011-10-20 05:51:26 PM |
Link | Quote |
|
|
Did you try to not activate one of the HDMAs you have?
|
|
| Posted on 2011-10-20 05:59:52 PM |
Link | Quote |
|
|
Yeah, when I remove the code and put in RTS, it went back to normal. I think it has something to do with the FreeSpace.
|
|
| Posted on 2011-10-20 06:07:46 PM |
Link | Quote |
|
I have some questions:
1.- Did you add 8 to the address you JSL'd?
2.- Did you put an RTS after the JSL?
3.- Did you modify the HDMA effect?
|
|
| Posted on 2011-10-20 06:12:28 PM |
Link | Quote |
|
|
hmm then your problem are the effects patches... well, you don't really need them because it's just for easy access to the effects, open the asm and look for the code and put directly in the level(init)code.asm, if you don't know where is exactly the code just look for this line "%RATS_start(0)" and copy all the code below it
|
|
| Posted on 2011-10-20 06:29:34 PM |
Link | Quote |
|
|
I give up, this is too confusing,. Thanks for helping anyways
|
|
|
Pages: 1  |
|
|
|
|
Forum Index - SMW Hacking - General SMW Hacking Help - HDMA Help me!!! |