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

Halloween holiday feature #269

Draft
wants to merge 12 commits into
base: fabric-1.21.4
Choose a base branch
from

Conversation

PinguinLars
Copy link
Contributor

Some please make a good halloween mask or something

Copy link
Contributor

@celestialfault celestialfault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few TODO-ish notes

src/main/java/com/wildfire/main/WildfireHelper.java Outdated Show resolved Hide resolved
src/main/java/com/wildfire/render/GenderLayer.java Outdated Show resolved Hide resolved
src/main/java/com/wildfire/render/GenderLayer.java Outdated Show resolved Hide resolved
@celestialfault
Copy link
Contributor

PlayerConfig#holidayThemes should also probably be changed to default to false if this is added, since I feel like this is already a bit much with just the santa hat to apply to every player with only a manual opt-out (including NPC players)

@PinguinLars
Copy link
Contributor Author

I will look what i can do with my limited coding knowledge. (You should have access to contribute in this pr)

@celestialfault
Copy link
Contributor

I will look what i can do with my limited coding knowledge.

You don't have to make any of these changes, they're more just // TODO comments I wanted to point out

(You should have access to contribute in this pr)

That checkbox only applies to collaborators with push access to the upstream repository

@PinguinLars
Copy link
Contributor Author

That checkbox only applies to collaborators with push access to the upstream repository

I know that is why i did it by the fork.

@WildfireRomeo
Copy link
Owner

I might have a texture for a mask I can use from the old Advanced Skin Customization mod.

@WildfireRomeo
Copy link
Owner

PlayerConfig#holidayThemes should also probably be changed to default to false if this is added, since I feel like this is already a bit much with just the santa hat to apply to every player with only a manual opt-out (including NPC players)

If I'm honest, I kinda disagree. I feel like no one would notice it or even try to use it if it's disabled by default. It's easy for people to go into the mod and disable it if they don't want it enabled, and it's only for 3 days of the entire year (currently).

I've said before I have different plans for this feature eventually (i.e. able to select certain basic cosmetics to equip in a separate menu), but as of right now I'm leaving it as is.

If there's a way to disable it for NPC players by default, I might do that.

@celestialfault
Copy link
Contributor

celestialfault commented Dec 19, 2024

I feel like no one would notice it or even try to use it if it's disabled by default.

Note that I only explicitly mentioned PlayerConfig - meaning that it'd still be set to the config default of true through Configuration whenever that's loaded, and would simply mean that it wouldn't affect players that don't have a configuration.

I'd also be open to simply making this default value a separate (enabled by default) global config option though, but I'm generally just not a fan of having these apply to all player entities currently, with no way to remove them on NPCs.

If there's a way to disable it for NPC players by default, I might do that.

While there isn't a universal method to determine if a player entity is an NPC, you could generally get a pretty good idea by checking UUID#version() - most large servers tend to use other UUID versions for their NPCs, while actual players always have a UUID version of 4.

# Conflicts:
#	src/main/java/com/wildfire/main/WildfireHelper.java
#	src/main/java/com/wildfire/render/GenderLayer.java
@PinguinLars PinguinLars reopened this Dec 24, 2024
@PinguinLars
Copy link
Contributor Author

Works again now


halloweenMask.render(matrixStack, vertexConsumer, light, overlay);
} catch(Exception e) {
WildfireGender.LOGGER.error("Failed to render breast layer", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should probably have different messages, although if vanilla rendering code throws an error we probably have bigger issues

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These probably just shouldn't be wrapped in try/catch blocks entirely, tbh.

Thx celeste
@PinguinLars
Copy link
Contributor Author

What would be better the current time span or only the thirty first?

@WildfireRomeo
Copy link
Owner

Wrong button, didn't mean to request a review oops...

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

Successfully merging this pull request may close these issues.

4 participants