-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Exception now meows when an error occurs on the server #39734
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
base: master
Are you sure you want to change the base?
Exception now meows when an error occurs on the server #39734
Conversation
it's hilarious |
good thinking on that cooldown. The oh so common error spam causing the cat to never shut the hell up lmao |
Do you think it might be good to add this to real mouse? Getting the occasional error message while in dev feels appropriate. (It owns) |
finally, fourth wall breaks |
Yeah it sounds fun! Probably wont come up too often because most errors crash in debug but sometimes I run on tools so 🤷 |
Some error messages contain PII if I remember correctly. So are we legally allowed to show them in-game? |
Ok, that seems pretty harmless |
Throwing in a ideaguy thing: Have this interact with Cogni some how, like errorprint ability or something, rather then just confusing the controlling player that your randomly meowing. Love this PR though, very cute. We need something for Runtime. |
can you also add the ability to throw and catch exception as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe censoring should be enabled by default outside of dev environments. (PII is possible to appear outside of the stack trace in the message. I am not taking the risk.)
Also the SpeakOnException
component should be removed when the entity becomes cogni'd or otherwise controlled by a player. Especially since it could confuse an admin that the controlling player said that. (And in general be annoying if you are just playing and you suddenly scream "UNABLE TO SPAWN PROTOTYPE")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above should be required IMO
Also, this cat WILL meow a lot, there are A LOT of errors on live servers currently.... I think a cvar to disable this function as a whole will be good for downstreams that may not like it.
Also dont log the speach in chat
I just checked lizard and there are about 35 errors in the past 15 minutes as of writing. This cat will meow a lot and it will eventually become annoying.
If you don't like the meows, contribute to fixing the errors :godo: I don't think a cvar is necessary. If downstreams don't like it they can comment out the component. |
A downstream should not have to do this, it will just cause annoying conflicts down the line for them |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks peak than this
/// The next time the entity can say another error. | ||
/// </summary> | ||
[DataField] | ||
public TimeSpan? NextTimeCanSpeak; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to use TimeOffsetSerializer
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also added the auto pause fields which I think are also needed - let me know if they aren't (The documentation kina makes them sound like they should be added?)
{ | ||
if (_random.Prob(ent.Comp.ChanceSpeakNoAccent)) | ||
args.Cancel(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will apply to all speech, not just error messages, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep I think it will! Changed it due to #39734 (comment) - but apparently I did that for a reason but I got myself confused and got rid of it 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not mentioned in the PR description and I do not think this is a good feature to have.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It now works proplerly - I personally think its fun.
About the PR
Title! There are a few things to note:
1.) There is a 2-3 minute cool down (Depending on the animal).
2.) They will say a fake error message ~0.7-1% of the time without an accent (Again depending on the animal).
Why / Balance
Its a cute feature that can give some life into otherwise pretty boring cats (Besides when they out II because of that glitch 😆)!
Technical details
To test, add
Spawn("randomgibberish")
to the gun system when you shoot and run inTools
mode so it doesn't crash.Media
2025-08-18.00-55-11.mp4
Requirements
Breaking changes
The
TransformSpeechEvent
can now be canceledChangelog
🆑