(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-16-24 05:05 AM
0 users currently in SMW Hacking.
Acmlm's Board - I3 Archive - SMW Hacking - A few ASM questions regarding Custom Blocks New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
pikaguy900

Sparky


 





Since: 08-10-06

Last post: 6340 days
Last view: 6327 days
Posted on 10-20-06 06:25 PM Link | Quote
I'm ready to try my hand at using ASM to make my own custom blocks, so I've been reading the help file in LM to see what it has to offer me in terms of how to do it. I have a few questions, though:

1: The whole "only 3 JSLs per offset" thing confuses me. Doesn't that mean you can only have 3 Blocks use the action that each offset handles and no more?
2: Does the subroutine for the Custom Blocks have a limit to how long they can be?
3: If those offsets tell the subroutine what to do when something happens (I.e., when Mario hits a block, when a Koopa Shell hits a block, etc.), how does the subroutine tell the block exactly what to do when that thing happens (I.e., the SMB3 Breakable Bricks are destroyed when hit from below or with a Koopa Shell, and when they are destroyed, they use the sound effects of Mario Spin-Jumping/Tornado-Jumping on a Turn Block, and use the GFX of them being destroyed)? That would help me.
4: Are there any other tips you guys can give me before I try, besides "Don't give up if you don't get it the first time"?

Thanks for the help!


(edited by pikaguy900 on 10-20-06 05:25 PM)
Kailieann



 





Since: 11-18-05

Last post: 6327 days
Last view: 6327 days
Posted on 10-20-06 08:08 PM Link | Quote
for 3, you write the code for each action in the block code, and then fill in the offsets in blocktool.

For example, if the code for the fireball action is at offset 17 in the code, you would put '17' in the fireball offset field in blocktool.
Note that blocktool uses decimal offsets instead of hexadecimal, which is.. stupid.

Also, if you put -1 as the offset, the block will act like whatever you set its behavior to in Lunar Magic.

for 2, blocktool uses JSRs to get to the code, so you're limited to the free space in the bank that blocktool's code uses (heck if I know which bank that is, though..)

for 1.. no idea.
pikaguy900

Sparky


 





Since: 08-10-06

Last post: 6340 days
Last view: 6327 days
Posted on 10-20-06 08:14 PM Link | Quote
Uhh... I said "using ASM". If I can learn how to make custom blocks with ASM, I'm giving up BlockTool completely. I don't want to use it anymore. Still, that helps me a bit. I'm sure the way BlockTool does things with Custom Blocks isn't too different from making your own with ASM. By that, I mean, instead of having to insert them using BlockTool, you insert them directly into the hack.
Kailieann



 





Since: 11-18-05

Last post: 6327 days
Last view: 6327 days
Posted on 10-20-06 08:16 PM Link | Quote
Actually, you said you tried "making your own blocks with ASM", not "inserting them with ASM instead of Blocktool".

There is a difference.
pikaguy900

Sparky


 





Since: 08-10-06

Last post: 6340 days
Last view: 6327 days
Posted on 10-20-06 08:19 PM Link | Quote
Originally posted by Kailieann
Actually, you said you tried "making your own blocks with ASM", not "inserting them with ASM instead of Blocktool".

There is a difference.

Oh, sorry. Anyways, I want to do both. I'm sure the inserting part won't be hard (All you have to do is just make the code and set it up right and that's it, right?). It's the "making the subroutine" part I'm worried about. But you know? Thanks to you, I now know everything I need to know about those mysterious offsets BlockTool uses. I never knew it had to do with the addresses in the hack. Oh well.
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6328 days
Last view: 6327 days
Posted on 10-20-06 08:23 PM Link | Quote
Use one of the JSL's to jump to code that finds out which bnlock you're using, then jumps to that block's code. After that, it's a matter of returning.
pikaguy900

Sparky


 





Since: 08-10-06

Last post: 6340 days
Last view: 6327 days
Posted on 10-20-06 08:26 PM Link | Quote
Okay. Thanks! I guess now I should go back and read that ASM guide again... To refresh my memory, of course.
spel werdz rite









Since: 11-19-05

Last post: 6328 days
Last view: 6327 days
Posted on 10-25-06 01:23 AM Link | Quote
Soon as you learn from your little ASM manual, give me a PM and I'll show you how to add blocks through raw hex which is ... yes, a MAJOR space saver! (And makes stuff easier to find)
pikaguy900

Sparky


 





Since: 08-10-06

Last post: 6340 days
Last view: 6327 days
Posted on 10-25-06 06:17 PM Link | Quote
Will do. Before I do that, though, I must try it myself. The reason is simple: To see if I truly understand it. If I can make a simple block (like one that's already in BlockTool) work by inserting it with ASM, then I know I can do other ASM... It makes sense to me...
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - SMW Hacking - A few ASM questions regarding Custom Blocks |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.015 seconds; used 386.79 kB (max 469.27 kB)