Skip to content

entity hull boolean conflict fix + separate tab - #1476

Merged
pingu7867 merged 11 commits into
CapsAdmin:developfrom
lionstrykes10911:develop
Oct 11, 2026
Merged

pingu7867 merged 11 commits into
CapsAdmin:developfrom
lionstrykes10911:develop

Conversation

@lionstrykes10911

@lionstrykes10911 lionstrykes10911 commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

better checks for entity view and step height mutator and convar bool usage so they don't override net.writeboolean() and cause entity to reset hull sizes when it shouldn't

better checks for entity view and step height mutator and convar bool usage so they don't override net.writebool()
@lionstrykes10911

Copy link
Copy Markdown
Contributor Author

what happens if this isn't done btw:

2026-10-04_05-34-00.mov

@lionstrykes10911

Copy link
Copy Markdown
Contributor Author

changed it a bit so they are now on their own tab, and have their separate checkboxes so the two different convars have a proper purpose.

image

forgot you were still there, get out.
@lionstrykes10911 lionstrykes10911 changed the title entity hull boolean conflict fix entity hull boolean conflict fix + separate tab Oct 5, 2026
bring these back in and fix standing hull being checked twice (what?)
nvm, those checks ALSO messes up the boolean for resetting hole
@lionstrykes10911

lionstrykes10911 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor Author

gladly make any changes, just try not to cause hull scales to stop working again.

@lionstrykes10911

Copy link
Copy Markdown
Contributor Author
2026-10-05_18-52-31.1.mov

removing the OverrideStepAndView property would undo any saved user choice

that is because it won't get converted to the new split properties of step and view which are false by default

@lionstrykes10911 lionstrykes10911 left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

you should probably make the legacy bool check turn itself off after the fact just in case it causes issues with infinitely turning on the other bools on accident when applying that.

lionstrykes10911 and others added 2 commits October 10, 2026 17:31
reduce calls of ApplyMatrix

don't use the setter inside itself even if it's mostly an empty function in the false case. the bool is already false by being pre-loaded from the class's DefaultVars when the part is created, before further initialization

but we got a bigger problem. the split won't be absolutely backward compatible after all. after deliberating some alternatives to preserve proxy read/write functionality, I found no immediate solution that avoids overwriting the successor properties on initialize
@pingu7867

Copy link
Copy Markdown
Collaborator

No need. There was no recursion. The worst that happened is a double call of ApplyMatrix from calling the step and the view setters, and maybe not having checked whether proxies on OverrideStepAndView should still work or not. That's on me though.

But never call functions recursively unless specifically absolutely necessary and you make sure to add recursion guards. That's a rule. Never mind that, though. Calling the setter had no effect there since we overwrote the default setter function with the goal of erasing the old property after transcribing it to its successors.

We still kind of got a conflict though, so the backward compatibility won't be absolute due to the contradiction between proxies having access to the setter, and initialize changes needing to be neutered to prevent a hidden property from overwriting our changes to the successors. It's sensitive when we're removing or hiding a property. Migration is fine for one time though.

As for what happens to that property with regards to proxies, there's a conflict. I'm making the decision.

@lionstrykes10911

Copy link
Copy Markdown
Contributor Author

Ighty'o then, your call if there is anything else that you think should be changed.

@pingu7867
pingu7867 merged commit e7ef592 into CapsAdmin:develop Oct 11, 2026
1 check failed
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.

2 participants