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

Fixing issue #5550 where empty accessory files makes manual handling erratic #5558

Merged
merged 2 commits into from Mar 3, 2023

Conversation

zonkmachine
Copy link
Member

Fixes #5550

Here is a fix for #5550.
The Character faces now have an accessory generated about one time in four. Player character, bbs faces or random button in the face app in the 'Personal Information' window all works. When you step the accessories in the face app they will show up all about the 1st step which is an empty file that was kept so you can intentionally select 'no accessory'.

@zonkmachine zonkmachine changed the title Fixing Fixing issue #5550 where empty accessory files makes manual handling erratic Feb 21, 2023
@@ -36,7 +36,7 @@ local function rerollFaceDesc(oldDesc)
FEATURE_NOSE = Engine.rand:Integer() % 2^31,
FEATURE_MOUTH = Engine.rand:Integer() % 2^31,
FEATURE_HAIRSTYLE = Engine.rand:Integer() % 2^31,
FEATURE_ACCESSORIES = Engine.rand:Integer() % 2^31,
FEATURE_ACCESSORIES = Engine.rand:Integer() % 4 == 0 and Engine.rand:Integer() % 2^31 or 0, -- accessory on one out of four faces
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess the and branch can also generate an empty accessory?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct. With the current number of accessories every eighth png will be invisible.

@impaktor
Copy link
Member

Did we used to have santa hat for our faces, when computer clock is Christmas, or was it Frontier, or did I dream that?
Either way, would be fun easter egg, when playing during Christmas break.

@zonkmachine
Copy link
Member Author

Did we used to have santa hat for our faces, when computer clock is Christmas, or was it Frontier, or did I dream that?

I just experimented with a santa hat and also a hijab to test the layers of facegen. Are any of those actually in this PR?! I can't find them in here.

@Web-eWorks
Copy link
Member

Looks good, thanks @zonkmachine!

@Web-eWorks Web-eWorks merged commit c434410 into pioneerspacesim:master Mar 3, 2023
@zonkmachine zonkmachine deleted the faceissue branch March 3, 2023 08:46
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.

Multiple empty face accessory items
4 participants