Pages: 1
Posted on 02-04-17, 05:41 am
Red Goomba


Karma: 198
Posts: 9/35
Since: 09-04-16

How can I add a new texture to a sprite, relative to a nybble in the game. (0 is red, 1 is blue, obviously more complex, but just for example). I know this involves ASM hacking, but where would I get the sprite's code, and then be able to reimport it?

Nella carne io sono uno, ma nello spirito, che sono e per sempre saranno sette.

Posted on 02-04-17, 05:42 am
Mole
Normal user

Karma: 2013
Posts: 241/359
Since: 07-08-12
You'll first have to find the sprite's methods, which include onCreate, onDraw, onExecute, etc (unless NSMBDS lacks some of these but w/e). To find the methods you have to find the vtable, which requires you to find the sprite's constructor method. Once you find all that, you can probably set some nybbles in onCreate and change shit in onDraw, or just change it in onCreate.
Posted on 02-04-17, 05:53 am
Red Goomba


Karma: 198
Posts: 10/35
Since: 09-04-16

But where is all this code in the game?

Nella carne io sono uno, ma nello spirito, che sono e per sempre saranno sette.

Posted on 02-04-17, 05:53 am
Mole
Normal user

Karma: 2013
Posts: 242/359
Since: 07-08-12
in the overlays.
Posted on 02-08-17, 12:54 am
Red Goomba


Karma: 198
Posts: 12/35
Since: 09-04-16

I mean, I see the code and everything, but I don't really know what to do with anything. How do you make it readable, edit it, and then reimport the thing in the game? There are so many questions that cannot be answered through looking through the site.

Nella carne io sono uno, ma nello spirito, che sono e per sempre saranno sette.

Pages: 1