Banner
Views: 236,227,181
Time: 2013-05-22 12:06:20 AM
15 users online: o BZM, EvilGuy0613, o FPzero, o Hadron, henrybros, jellybean, LostDoman, phenolatukas, Randomiser, RedRose64, Rextep, tylersuperwiigamer, o Undy, Usetheforce, Yoshi88 - Guests: 18 - Bots: 15Users: 22,858 (1,278 active)
Latest: FUNKY kong ending
Tip: If it's possible to carry a tileset-specific sprite (such as a Buzzy Beetle or Bob-omb) through a pipe, make sure it has the correct graphics and sprite palette on the other side!
HDMA Help me!!!
Forum Index - SMW Hacking - General SMW Hacking Help - HDMA Help me!!!
Pages: « 1 »
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 :D
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:
Code
levelinit105: RTS


Now, you should paste the free space you set in the HDMA effect patch (between levelinitxxx and the RTS). Something like this:

Code
levelinit105: JSL $FreeSpaceYouSetInTheHDMAEffect+8 RTS


You should add 8 to the free space. For example, I set $148000 as free space:

Code
levelinit105 JSL $148000 RTS


Then you add 8:

Code
levelinit105: 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):

Code
level105: JSL $218000 RTS


And add 8:

Code
level105: 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.
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.
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.
Er.... the level keeps corrupting.. :(
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?
Well actually when I enter the level, the screen freezes and turn black but I can still hear the background music
Did you try to not activate one of the HDMAs you have?
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.
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?
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
I give up, this is too confusing,. Thanks for helping anyways
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - HDMA Help me!!!

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 29

Menu