Views: 20,064,073 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-26-24 07:33 PM |
Guest: |
0 users reading Type 14 is Not a Mystery! (Star Cutscenes) | 1 bot |
Main - General SM64DS hacking - Type 14 is Not a Mystery! (Star Cutscenes) | Hide post layouts | New reply |
mibts |
| ||
Panser =Josh65536 (Programmer) Level: 39 Posts: 280/331 EXP: 375631 Next: 29140 Since: 08-31-13 Last post: 1949 days ago Last view: 224 days ago |
I figured out what the Type 14 object does. It controls the star camera. Let's look at the 32-bit parameter of the type 14 object in Tiny-Huge Island for example.
03033334
Each hexadecimal digit corresponds to a star and says what camera the star gets when the player collects it. They're indexed from right to left, so in this case, the cameras are
Star 0: 4 (Reminder: Star 0 is the 100 coins)
The camera types are
Star 1: 3 Star 2: 3 Star 3: 3 Star 4: 3 Star 5: 0 Star 6: 3 Star 7: 0 0: Zoom in when the player thrusts the star in the air 1: Rotate to face the view with param1=0xXX07 and zoom out 2: Freeze 3: Spin around 4: Freeze (Looks identical to 2. Maybe it's used when text shows up?) 5: Go crazy and cut multiple times (Yes, it's a valid camera def, try it out) 12: Not a valid camera def, but it doesn't freeze. From my WDW star 2 test, it cuts to a platform and spawns a rainbow. ____________________ Current hack: Excerpt from Super Mario 256 |
Gota7 |
| ||
Paragoomba Star Wolf Level: 18 Posts: 37/66 EXP: 27203 Next: 2694 Since: 04-09-17 From: Same as above. ^ Last post: 2031 days ago Last view: 1276 days ago |
Seems great this was finally figured out! I'd like to see this in the editor soon!
Join the SM64DS Hacking Discord: https://discord.gg/PhpA9Wt |
Hiccup |
|
Gota7 |
| ||
Paragoomba Star Wolf Level: 18 Posts: 41/66 EXP: 27203 Next: 2694 Since: 04-09-17 From: Same as above. ^ Last post: 2031 days ago Last view: 1276 days ago |
I tested this on bombhei map, and here were my results for values 0-15 as yoshi:
0: Zoom in.
1: Zoom out. 2: Stand Still. 3: Spin around. 4: Stand Still. Used for castle and 100 coin stars. 5: Zooms in, then spins around crazily. 6: Freeze Game. 7: Freeze Game. 8: Freeze Game. 9: Player collects star, but wipe freezes game. 10: 0, but without zooming. 11: Freezes Game. 12: Cuts to FF07 camera??? 13: Same as 10. (DUPLICATE?) 14: Same as 10. (DUPLICATE?) 15: Same as 10. (DUPLICATE?) For the values that are not so clear defined, they may behave different for star 0. I just never tested them all with star 0. Join the SM64DS Hacking Discord: https://discord.gg/PhpA9Wt |
Arisotura |
| ||
Star Mario in this room you have a pile of apple pies Level: 163 Posts: 7685/9020 EXP: 56278317 Next: 209327 Since: 07-03-12 From: in a box Last post: 1 day ago Last view: 1 day ago |
Hiccup |
| ||
Normal user Level: 58 Posts: 778/815 EXP: 1516864 Next: 60682 Since: 09-06-12 Last post: 1692 days ago Last view: 48 days ago |
nice documentation, but if you put it in other places you should copy mibts' notice that 12+ aren't real values |
Gota7 |
| ||
Paragoomba Star Wolf Level: 18 Posts: 43/66 EXP: 27203 Next: 2694 Since: 04-09-17 From: Same as above. ^ Last post: 2031 days ago Last view: 1276 days ago |
I guess. But you have an absolute maximum of 15, since F is the highest single digit.
Join the SM64DS Hacking Discord: https://discord.gg/PhpA9Wt |
Hiccup |
| ||
Normal user Level: 58 Posts: 779/815 EXP: 1516864 Next: 60682 Since: 09-06-12 Last post: 1692 days ago Last view: 48 days ago |
Yep, but I think mibts is saying that values 12 and above aren't actually programmed, so any effects they may have are just bugs. |
mibts |
| ||
Panser =Josh65536 (Programmer) Level: 39 Posts: 282/331 EXP: 375631 Next: 29140 Since: 08-31-13 Last post: 1949 days ago Last view: 224 days ago |
Actually, 6 and above are invalid. I only listed 12 because it corresponded to an actual pointer, so I wanted to see what it did. ____________________ Current hack: Excerpt from Super Mario 256 |
Gota7 |
| ||
Paragoomba Star Wolf Level: 18 Posts: 46/66 EXP: 27203 Next: 2694 Since: 04-09-17 From: Same as above. ^ Last post: 2031 days ago Last view: 1276 days ago |
For those who don't know how to get those numbers, this is the process. I'll be using the example he used to prove it works.
The parameters for TTH-H are: 52 51 3 3
Convert those numbers to hex individually, and you get: 34 33 03 03
Reverse the order of the numbers, and you get the correct order: 03 03 33 34
4 = Star 0, 3 = Star 1, etc. To convert the other way around, reverse the process or use my parameter generator tool. Join the SM64DS Hacking Discord: https://discord.gg/PhpA9Wt |
Hiccup |
| ||
Normal user Level: 58 Posts: 786/815 EXP: 1516864 Next: 60682 Since: 09-06-12 Last post: 1692 days ago Last view: 48 days ago |
I wonder if no.5 is used internally for the Big Star in the final boss ("internally" because the map doesn't have a type 14 object). The animation used for the big star uses some large camera movements, and it might just be messed up because it is being used in the wrong circumstances. |
Gota7 |
| ||
Paragoomba Star Wolf Level: 18 Posts: 47/66 EXP: 27203 Next: 2694 Since: 04-09-17 From: Same as above. ^ Last post: 2031 days ago Last view: 1276 days ago |
That can be true. I was also thinking 5 or 12 could be embedded in the character keys, despite not being used in-game. In my notes, I hypothesized that 12 especially has something to do with the FF07 view. And I find it very suspicious that every boss has a view placed with FF07. Coincidence? I think not. And mibts said that the code exists, so that makes it even more likely that 12 controls character keys... Except the big boo fight has a FF02 view, but yet also has a suspicious 0006 view. Who knows.
Join the SM64DS Hacking Discord: https://discord.gg/PhpA9Wt |
mibts |
| ||
Panser =Josh65536 (Programmer) Level: 39 Posts: 286/331 EXP: 375631 Next: 29140 Since: 08-31-13 Last post: 1949 days ago Last view: 224 days ago |
The 0006 view follows a linear path. Path 0, in this case, because the first two "digits" spell 00. ____________________ Current hack: Excerpt from Super Mario 256 |
Hiccup |
| ||
Normal user Level: 58 Posts: 790/815 EXP: 1516864 Next: 60682 Since: 09-06-12 Last post: 1692 days ago Last view: 48 days ago |
But these behaviours aren't programmed right? They are just glitches? |
mibts |
| ||
Panser =Josh65536 (Programmer) Level: 39 Posts: 287/331 EXP: 375631 Next: 29140 Since: 08-31-13 Last post: 1949 days ago Last view: 224 days ago |
5 is programmed.
12 is a coincidence because a pointer to a cutscene just happens to be close enough to the list of pointers to star cutscenes. ____________________ Current hack: Excerpt from Super Mario 256 |
Hiccup |
| ||
Normal user Level: 58 Posts: 791/815 EXP: 1516864 Next: 60682 Since: 09-06-12 Last post: 1692 days ago Last view: 48 days ago |
Okay, thanks for confirming. |
Main - General SM64DS hacking - Type 14 is Not a Mystery! (Star Cutscenes) | Hide post layouts | New reply |
Page rendered in 0.032 seconds. (2048KB of memory used) MySQL - queries: 28, rows: 224/224, time: 0.010 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |