Pages: 1
RicBent |
Posted on 06-05-13, 09:53 pm
|
Mariomaster
Karma: 8528 Posts: 268/1681 Since: 06-09-12 |
Dirbaio |
Posted on 06-05-13, 09:55 pm
|
Super Mario
( ͡° ͜ʖ ͡°) Karma: 10010 Posts: 3376/4457 Since: 06-08-11 |
It's very possible.
There are some functions that get called when IDs are activated or desactivated. I remember finding them some time ago, they're probably in the IDA Pro database. These would be the place to hook this. |
RicBent |
Posted on 06-05-13, 09:58 pm
|
Mariomaster
Karma: 8528 Posts: 269/1681 Since: 06-09-12 |
Dirbaio |
Posted on 06-05-13, 10:22 pm
|
Super Mario
( ͡° ͜ʖ ͡°) Karma: 10010 Posts: 3377/4457 Since: 06-08-11 |
Oh well, turns out it was NOT at the IDB. I found it again and now it IS in the IDB
0208AF3C -> activatorIdBitmask It is a 64bit bitmask, bit i means that activator i+1 is activated. There are a lot of functions that use it, I don't think there's a single function that toggles activators unlike I said before. The best way to go would be to hook somewhere that's run every frame and monitor the value and do something if the activator we're going to look for changes. |
ray |
Posted on 06-06-13, 04:39 am
|
Roy Koopa
Karma: 4011 Posts: 2460/2722 Since: 06-26-11 |
Is it possible to swap Tilesets or Music ingame with this...?
See a lots of creative DS Hacking here_________________________ If you want to support me, you might check out my Patreon Page : ) |
Dirbaio |
Posted on 06-06-13, 05:20 am
|
Super Mario
( ͡° ͜ʖ ͡°) Karma: 10010 Posts: 3379/4457 Since: 06-08-11 |
Tilesets would be very hard to swap because there's a lot of stuff that has to be reloaded, and the code is made to load tilesets at the beginning of the level, not in the middle lol.
Swapping music is more doable I think. |
Arisotura |
Posted on 06-09-13, 05:29 pm (rev. 1 by Arisotura on 06-09-13, 05:29 pm)
|
☭ coffee and cream
Karma: 10415 Posts: 964/2768 Since: 06-26-11 |
There was that feature to swap tilesets and BGs between views but it's pretty much broken. The code to reload the tilesets is missing.
I also tried messing with it, and all my attempts at calling the functions that load graphics outside of their original context, have resulted in blank levels. _________________________ Kuribo64 - zrghij |
Pages: 1