Views: 19,992,651 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-19-24 02:22 AM |
Guest: |
0 users reading Colored Goombas | 1 bot |
Main - General SM64DS hacking - Colored Goombas | Hide post layouts | New reply |
mibts |
| ||
Panser =Josh65536 (Programmer) Level: 39 Posts: 183/331 EXP: 375259 Next: 29512 Since: 08-31-13 Last post: 1941 days ago Last view: 216 days ago |
I made another hack; this time Colored Goombas:
Red Goombas jump at the player, Green Goombas jump and spin at the player, and Yellow Goombas do 1 extra damage. They are all in I had to convert the Goomba code from assembly to C++, simplify it, and then add my hack and compile it back. This version of SM64DSe contains the source code for it in ASMPatchTemplate. Here are the steps to modifying the Goomba if you want to: 1. Make the modifications in the source code 2. Open the new SM64DSe, click Edit Code, go to Edit, and click Compile Code. 3. Select the ASMPatchTemplate folder. 4. Type in the filename for the output ASM; it will be in the ASMPatchTemplate folder. 5. For the offset, type 02129020. This is the start of overlay 84, the Goomba overlay. 6. Compile, and fix errors. Make sure the output file is no more than 12524 bytes long. 7. Extract overlay 84. 8. Open the output file in a hex editor and copy its contents to overlay 84. Overwrite the overlay's contents, and don't change its file size. 9. Replace overlay 84 in SM64DSe. 10. Open newcode.map (in ASMPatchTemplate/bin) in a text editor and scroll down until you see this: 0x0212b060 GoombaColored::spawnDataBig
11. Open the ROM in a hex editor and go to offset 0x68b0. Type in the offset for GoombaColored::spawnDataNormal, then for *Small, then for *Big. The bytes go in little endian (reverse order). Save it.
0x0212b07c GoombaColored::spawnDataSmall 0x0212b098 GoombaColored::spawnDataNormal 12. Enjoy and hope for no crashes! Notes: The last arguments of TexSeq_SetFile, MatChg_SetMaterialDef, and ModelAnim_ChangeAnim (the start frame) are not in fixed point 20.12. Sorry for not commenting that. The hack: SM64DS + Colored Goombas ____________________ Current hack: Excerpt from Super Mario 256 |
pacmainia&luigi |
| ||
Red Paratroopa Hacker Level: 29 Posts: 146/178 EXP: 132101 Next: 15784 Since: 10-29-15 From: The Grandfather Paradox Time Loop Last post: 1810 days ago Last view: 1450 days ago |
how did you make the color differ based on parameter? How can I do it with another object? ____________________ Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka......... |
mibts |
| ||
Panser =Josh65536 (Programmer) Level: 39 Posts: 189/331 EXP: 375259 Next: 29512 Since: 08-31-13 Last post: 1941 days ago Last view: 216 days ago |
I hacked the Goombas and inserted a texture sequence in their model and code. Changing the parameter changes the frame of the texture sequence. If you want to look at the code, download the version of SM64DSe that I posted. Go to ASMPatchTemplate/source and open GoombaColored.cpp. ____________________ Current hack: Excerpt from Super Mario 256 |
pacmainia&luigi |
|
Main - General SM64DS hacking - Colored Goombas | Hide post layouts | New reply |
Page rendered in 0.036 seconds. (2048KB of memory used) MySQL - queries: 28, rows: 200/200, time: 0.017 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |