Posted on 08-10-16, 08:02 am

Micro-Goomba
Normal user


Posts: 15/15
Since: 04-14-16

Last post: 259 days
Last view: 156 days
(Note: This only applies to Super Mario Galaxy 2.)

After testing out PowerStarIDs and moving Green Stars between layers, I think I know how PowerStarIDs work...

There are four different types of Stars: Normal (used for normal Stars, comet Stars, and letter Stars), Hidden (used for secret Stars), Green (used for Green Stars in the first Normal mission (labelled as "Green1" below)) and Green (used for Green Stars in the second Normal mission (labelled as "Green2" below)). If you want to move a Green Star in Yoshi Star Galaxy, for example, from the first mission to the second mission, then you'll need to change the PowerStarIDs to match those of a level with a similar level-type layout.

Yoshi-Star Galaxy has the Power Star types: Normal, Normal, Normal, Green1, Green1, Green1. If you change the third Green Star to Green2, then you'll also need to change the PowerStarIDs to match the new Star types of Normal, Normal, Normal, Green1, Green1, Green2 (which is also used by Sky Station Galaxy).

If you change Yoshi Star's PowerStarIDs to those of Sky Station, then the third Green Star will load with the second Star mission instead of the first.

A list of all the PowerStarIDs in Super Mario Galaxy 2 can be found here:
https://docs.google.com/spreadsheets/d/1JD7Kv3dArQVkbk32_qh_kcI6fpyA4PeLK-PZnVH9khs/edit?usp=sharing

Color Legend for Linked Chart:
Orange - "Normal" Star (normal Star / comet Star / letter Star)
Purple - "Hidden" Star (secret Star)
Green - "Green" Star (Green Star that loads with Star 1)
Teal - "Green" Star (Green Star that loads with Star 2)

(You CAN put a Green Star in a galaxy's comet Star... as long as the comet Star is Star #2 of that galaxy.)


I know that my description is complicated and long, but it has to be... since no-one else really knows how PowerStarIDs work... Sorry!
_________________________
HACK PROGRESS
Super Mario Galaxy 2: The Green Stars ~ 20/49 Galaxies
Retro Super Mario Bros. Wii ~ 14/77 Levels
The Speedy Simpsons Mod ~ 10/78 Missions
Posted on 08-11-16, 03:31 am

Cheep-cheep
Co Leader of NMG - Knows a thing or two about Level Creation


Posts: 114/194
Since: 03-28-16

Last post: 142 days
Last view: 10 days
Nice! This should give us a better understanding on how to put in secret stars.
Posted on 10-15-16, 03:16 pm (rev. 1 by SunakazeKun on 10-15-16, 04:23 pm)

Lakitu
Careful with that axe, Eugene!


Posts: 484/574
Since: 10-08-14

Last post: 6 days
Last view: 14 hours
It's pretty simple, actually: The PowerStarId setting is a bit field and it represents the stars that can be found in a scenario. To make it much easier to understand, we convert it to a binary value:

BinaryDecimalDescription
000000011Star 1
000000102Star 2
000001004Star 3
000010008Star 4
0001000016Star 5
0010000032Star 6
0100000064Star 7
10000000128Star 8
000001015Star 1 + Star 3
0000101010Star 2 + Star 4
0000110113Star 1 + Star 3 + Star 4
0011100157Star 1 + Star 4 + Star 5 + Star 6
10001011139Star 1 + Star 2 + Star 4 + Star 8

_________________________
[22:47:32] Tahcryon: Sad to hear that you won’t be shitting out SMG levels, Aurum
[22:47:42] Aurum: shitting out smg levels
[22:47:47] Aurum: I really wish it would be like this
[22:47:57] Aurum: it would make things so much easier