(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
05-25-24 02:58 PM
0 users currently in SMW Hacking.
Acmlm's Board - I3 Archive - SMW Hacking - requesting information about blocktool New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
mikeyk

Shyguy


 





Since: 02-22-06

Last post: 6469 days
Last view: 6314 days
Posted on 06-16-06 01:05 AM Link | Quote
does anybody know much about how blocktool operates. i decided it might not be too difficult to make a similar program for sprites, but i had a few questions first. i would find the answers myself, but i'm not going to be at a computer with smw for about a week. so, here they are:

1. does blocktool insert code into a static location? in other words, does the custom block routine always start at the same SNES location? the alternative would be that blocktool inserts its routine at a place where it finds free space.

2. if the code is put in a static location, what prevents blocktool from overwriting data that might already be there in a hack in progress?

3. if a block uses reloc offsets, does blocktool just insert a modified version of the .bin file? the alternative here would be that blocktool inserts the .bin file unmodified and handles the reloc offsets in its main routine.

any technical information would be appreciated, not just stuff related to the questions above. on a unrelated note, i updated my sprite page with a few more goodies.

spel werdz rite









Since: 11-19-05

Last post: 6306 days
Last view: 6305 days
Posted on 06-16-06 02:43 AM Link | Quote
1. Blocktool looks for the first area with enough empty space and inserts it there.

2. Blocktool uses the RATS tag like Lunar Magic, so no overwriting complications occur

3. Yes, it's basically all the info in the bin modified to fit the new JSRs of the relocs.
mikeyk

Shyguy


 





Since: 02-22-06

Last post: 6469 days
Last view: 6314 days
Posted on 06-16-06 03:37 PM Link | Quote
thanks... that exactly what i wanted to know. i'll be sure to pop back in if i have any more questions.
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: 6306 days
Last view: 6305 days
Posted on 06-16-06 10:33 PM Link | Quote
Also, I'm working on a replacement to blocktool that will be a bit more useable and user-friendly, not to mention incrediblyt faster.
spel werdz rite









Since: 11-19-05

Last post: 6306 days
Last view: 6305 days
Posted on 06-17-06 01:55 PM Link | Quote
What's your current progress?
mikeyk

Shyguy


 





Since: 02-22-06

Last post: 6469 days
Last view: 6314 days
Posted on 06-17-06 02:30 PM Link | Quote
i thought of another question. if you use blocktool a second time, does everything that you inserted the first time get erased from the rom? if so, any idea how it goes about this?
spel werdz rite









Since: 11-19-05

Last post: 6306 days
Last view: 6305 days
Posted on 06-17-06 02:36 PM Link | Quote
Yes it does.
You can do this, but only through hex (it's the same method I used to make sure Fu's SMB3 Pipes don't get deleted when reused).
Go to 0x37890, that's where the custom block JSLs are. If you remember Fu's Help file, he left room for 3 JSLs per offset. So just rewrite the JSL's to the next space.
cory21391

Red Cheep-cheep








Since: 04-21-06
From: North Carolina

Last post: 6363 days
Last view: 6363 days
Posted on 06-19-06 06:39 PM Link | Quote
This may be a dumbass question, I'm only asking this to clarify, but to insert downloaded custom blocks that aren't included with blocktool, don't you just put the downloaded block in the blocktool directory (with all the .bin files)?
Smallhacker

Super Koopa
I AM A Group Of Officially Frustrated Younglings, G.O.O.F.Y. MEMBER








Since: 11-17-05
From: Söderhamn, Sweden

Last post: 6307 days
Last view: 6305 days
Skype
Posted on 06-19-06 06:52 PM Link | Quote
Originally posted by cory21391
don't you just put the downloaded block in the blocktool directory (with all the .bin files)?

If you wouldn't like it to work, then yes.
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: 6306 days
Last view: 6305 days
Posted on 06-20-06 01:12 AM Link | Quote
...Progress? Well, the block data save/load is going good (By that I mean that the program saves, in an external file, the inserted block lists properly), the main UI is done, the SNES-side code and SNES-insertion (PC-sidE) code have to be done, and then I have to write a free space-detection routine, unless someone would be kind ewnough to write one that can give variable-size free space chunks, as well as let me know when there is not an available chunk of space large enough for Blocktool Omega's data tables.
Dan

Purple Leever


 





Since: 11-18-05

Last post: 6314 days
Last view: 6305 days
Posted on 06-20-06 04:33 AM Link | Quote
Lunar Compress might have some kind of free space finder. Look at Blocktool's source, because I'm pretty sure it looks for free space using Lunar Compress.
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: 6306 days
Last view: 6305 days
Posted on 06-21-06 02:14 PM Link | Quote
I goofed. Actually, the SNES-side source code is done. I just need to finish the PC-side code.

Anyways, I have a good idea on how to find free space: Look for (starting at the user ROM space) a string of 5 $00's, then if I find that, look from there for a string of $00's large enough to fit the blocktool code, then look for two more chunks of space to hold the two tables for block data. (total size of tables: 2.625 ROM banks, or two and five eighths.)
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - SMW Hacking - requesting information about blocktool |


ABII

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

Page rendered in 0.048 seconds; used 401.81 kB (max 499.79 kB)