skawo |
Posted on 06-13-16, 08:55 pm (rev. 2 by ImageBot on 11-21-16, 03:21 am)
|
Karma: 19807 Posts: 370/1100 Since: 04-02-13 |
Ultraboy |
Posted on 06-13-16, 08:57 pm
|
Panser
Karma: 577 Posts: 49/332 Since: 04-09-16 |
but in the editor how to distinguish the fly guy from splumpkin?
|
skawo |
Posted on 06-13-16, 08:57 pm
|
Karma: 19807 Posts: 371/1100 Since: 04-02-13 |
Check their nybble 8. :}
|
Ultraboy |
Posted on 06-13-16, 08:59 pm
|
Panser
Karma: 577 Posts: 50/332 Since: 04-09-16 |
skawo you are a great
|
skawo |
Posted on 06-13-16, 09:03 pm
|
Karma: 19807 Posts: 372/1100 Since: 04-02-13 |
Should thank mero for the latest development more.
|
Ultraboy |
Posted on 06-13-16, 09:15 pm
|
Panser
Karma: 577 Posts: 51/332 Since: 04-09-16 |
skawo thanks for this ASM code
|
Thierry |
Posted on 06-13-16, 10:00 pm
|
この記号は… 解読できないよ…
Karma: 6330 Posts: 1906/2786 Since: 01-17-13 |
Lol. Anyway, nice job on this, you were quick.
|
skawo |
Posted on 06-13-16, 10:31 pm
|
Karma: 19807 Posts: 373/1100 Since: 04-02-13 |
Bit too quick, as it crashed on actual console.
Fixed now. |
Ultraboy |
Posted on 06-14-16, 12:32 pm
|
Panser
Karma: 577 Posts: 53/332 Since: 04-09-16 |
I did not understand how it fits into the code hack (I'm still a beginner with asm hack)
|
skawo |
Posted on 06-14-16, 12:37 pm
|
Karma: 19807 Posts: 374/1100 Since: 04-02-13 |
Rename it to ShyGuy.s and place in the /source folder. Then build like any other.
|
KingYoshi |
Posted on 06-14-16, 01:16 pm
|
Fire Snake
Eugene Karma: 3810 Posts: 818/1156 Since: 11-29-11 |
How do you use this code for other sprites? Or ain't it that simple?
|
skawo |
Posted on 06-14-16, 01:24 pm (rev. 1 by skawo on 06-14-16, 01:24 pm)
|
Karma: 19807 Posts: 375/1100 Since: 04-02-13 |
You find where they load their models and write appropriate code.
|
Hiccup |
Posted on 06-14-16, 01:35 pm
|
Birdo
Karma: 2789 Posts: 1628/2091 Since: 06-26-11 |
Would it be easy to add size-increasing code to this, so many enemies could have a nybble/value that makes their model/sprite and collision bigger?
|
skawo |
Posted on 06-14-16, 02:02 pm
|
Karma: 19807 Posts: 376/1100 Since: 04-02-13 |
Perhaps.
|
KingYoshi |
Posted on 06-14-16, 02:05 pm
|
Fire Snake
Eugene Karma: 3810 Posts: 819/1156 Since: 11-29-11 |
Posted by skawo You find where they load their models and write appropriate code. Er.. Could you tell me/us how? |
skawo |
Posted on 06-14-16, 02:08 pm
|
Karma: 19807 Posts: 377/1100 Since: 04-02-13 |
You do realize this will be different for every enemy? Not exactly explainable in a tutorial
|
KingYoshi |
Posted on 06-14-16, 02:12 pm (rev. 1 by KingYoshi on 06-14-16, 02:12 pm)
|
Fire Snake
Eugene Karma: 3810 Posts: 820/1156 Since: 11-29-11 |
Posted by skawo You do realize this will be different for every enemy? Not exactly explainable in a tutorial I wouldn't know. I've no experience with this. But I assume the method how to find where they load their models is the same for each enemy. So you could make a tutorial how to find that and how to write the appropriate code |
skawo |
Posted on 06-14-16, 02:17 pm (rev. 2 by skawo on 06-14-16, 02:19 pm)
|
Karma: 19807 Posts: 378/1100 Since: 04-02-13 |
Sure. Here it is;
1. Open up IDA. 2. Find where enemy's code is (a lot is documented) 3. Investigate the functions there. Locate the one that uses the loadFileByExtId_3dModel function. See what File Id is loaded into register 0. Compare with editor. If the address is within the main or overlay 10, copy the address of that line of code in IDA, if not, find out that line of code's address in the game via No$GBA. 4. repl hook to that address and write appropriate code; check spritedata, write different file ID if spritedata is set, if not, write the standard one. Return to LR. |
KingYoshi |
Posted on 06-14-16, 02:21 pm
|
Fire Snake
Eugene Karma: 3810 Posts: 821/1156 Since: 11-29-11 |
Posted by skawo 1. Open up IDA. 2. Find where enemy's code is (a lot is documented) 3. Investigate the functions there. Locate the one that uses the loadFileByExtId_3dModel function. See what File Id is loaded into register 0. Compare with editor. If the address is within the main or overlay 10, copy the address of that line of code in IDA, if not, find out that line of code's address in the game via No$GBA. 4. repl hook to that address and write appropriate code; check spritedata, write different file ID if spritedata is set, if not, write the standard one. Return to LR. Thanks, I'll try heh heh |
Ultraboy |
Posted on 06-14-16, 02:56 pm
|
Panser
Karma: 577 Posts: 54/332 Since: 04-09-16 |
I entered the code in my hack, but I do not know what to do to put the fly guy in a level
|