Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make GrandStar also be able to change colors #87

Closed
5 tasks done
SuperHackio opened this issue Jul 29, 2023 · 4 comments
Closed
5 tasks done

Make GrandStar also be able to change colors #87

SuperHackio opened this issue Jul 29, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@SuperHackio
Copy link
Owner

SuperHackio commented Jul 29, 2023

Currently in GLE, Grand Stars do NOT follow the same colouring code that normal PowerStars do. It would be good if they did, however due to the fact that Bronze Grand Stars caused the model to be made differently, it might be hard to actually implement this and still have it look good.

  • Investigate the original Grand Star Model to learn how it would need to be converted
  • Compare the Gold and Bronze materials to see exactly what's different about it (if anything at all)
  • Make attempts to make the switch to Bronze something simple like a texture swap
  • Test adding the rest of the built-in GLE Colours (Green and Red)
  • Make Grand Stars be affected by a Color changing BRK animation

If this gets added, a new GrandStar file will be posted here.

Not adding this to the milestone until I verify that it's something possible and reasonable to do. This feature might end up cancelled.

@SuperHackio SuperHackio added the enhancement New feature or request label Jul 29, 2023
@SuperHackio SuperHackio self-assigned this Jul 29, 2023
@SuperHackio
Copy link
Owner Author

From testing, it seems that all we'd need is a color register animation (BRK) instead of a texture swap animation (BTP).

Though it's a lot harder to make accurate Grand Star colours that way (accurate in the sense that it matches the normal Power Star) but also easier to actually make new colours (even though you'd need to also add it to normal PowerStar before using it)

Also currently the game crashes if you try to use a PowerStarColor with a Grand Star sooooo if this doesn't get implemented that should at least get fixed.

@SuperHackio SuperHackio changed the title GrandStar Colours? Make GrandStar also be able to change colors Aug 19, 2023
@SuperHackio
Copy link
Owner Author

Grand Stars and their Power Star Variant together in a test level

GrandStar Colours are (finally) here!

These work similarly to normal PowerStars, with one major difference: The colour comes from the TEV Registers and not a texture. There's 2 new animations: PowerStarColor.brk and PowerStarColor.bpk. The stock GLE-V3 file will contain both of these that are setup with the 4 default GLE colours, Gold (ID: 0), Bronze (ID: 1), Green (ID: 2), and Red (ID: 3), and of course, should you decide to, you can add more. I would recommend keeping the colours synced between PowerStar and GrandStar, though this will not be possible if you have a multi-coloured PowerStar colour.

That is the only limitation of GrandStar Colours: You may only have one colour at a time. This is because of how GrandStar works differently than the normal PowerStar. The colour doesn't come from a texture in a GrandStar, so all you have to work with is a single TEV Register (and the Mat0 register, which is what the BPK is for).

Now, this was done because I did not want to change the model file. However, if you want to try changing the material (FooMat in this case) to use a texture instead of a register, by all means, go for it. You can add a PowerStarColor.btp file to the GrandStar archive and GLE will use it alongside the BRK and BPK. (which, by the way, don't need to exist either.)

One final thing to note, is that the Bronze star colour is still the vanilla colour, and also the vanilla material. There have been no changes made to how the bronze colouring works, so the frame with an ID of 1 cannot be used.

The stock GLE files for the grand star can be downloaded here.

Included is the GrandStar.arc file and the UsEnglish Font.arc file. The only file inside this arc that has changed is PictureFont.brfnt, as the Green and Red Grand Star Colours were added. There is no need to change GameSettings.bcsv

@mariokirby1703
Copy link

What do I have to do now? I recolored the Grand Star to be Black with White Eyes. How can I keep that when updating?

@SuperHackio
Copy link
Owner Author

Well, the eyes can remain unchanged from what you have, since the animations do not affect the eye material.

As for the blackness, you have two options:

  1. Remove the animation files and don't have the option to change the Grand Star Color
  2. Edit the PowerStarColor.brk and PowerStarColor.bpk's first frame RGB values to make them all read Zero. (#000000FF RGBA)

If you need an animation editor, there is one listed on Luma's Workshop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants