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

[MIRROR] Fixing issues with modular computer and circuits. #1703

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#619
Original PR: tgstation/tgstation#81076

About The Pull Request

It turns out the messenger circuit wasn't working as intended, because list components tend to convert datum keys into weakrefs, creating incoherence between composite datum/atom and simple datum/atom datatypes, which at least just spares us from the headache of clearing the refs on del from lists too.

So, taking the shortest path, I decided to adapt the messenger to the weak ref usage.

Another thing, instead of refusing altogether to send message that trigger the pda filter regexes, the messenger circuit will instead replace the matches with grawlix, since we have no way to inform whoever's responsible for said message about the filters in an orthodox way.

Beside that, I've noticed several of the circuits from my PR were lacking trigger outputs or similar when needed, pretty making them only as half as functional, at least to a noob like me.

And another small issue with missing ports from the status display circuit.

One more suggestion from moocow is to add a cooldown to the ringtone trigger for the messenger circuit, because he said it's pretty spammy and some admins are fickle.

Why It's Good For The Game

Bugfixing and improvements.

Changelog

🆑 Ghommie
fix: Fixed the messenger circuit not sending messages.
fix: Added several ports to modpc circuits that were missing or needing them.
fix: Fixes ever-expanding ports whenever circuits are re-inserted in a modular computer.
/:cl:

…619)

* [NO GBP] Fixing issues with modular computer and circuits. (#81076)

## About The Pull Request
It turns out the messenger circuit wasn't working as intended, because
list components tend to convert datum keys into weakrefs, creating
incoherence between composite datum/atom and simple datum/atom
datatypes, which at least just spares us from the headache of clearing
the refs on del from lists too.

So, taking the shortest path, I decided to adapt the messenger to the
weak ref usage.

Another thing, instead of refusing altogether to send message that
trigger the pda filter regexes, the messenger circuit will instead
replace the matches with grawlix, since we have no way to inform
whoever's responsible for said message about the filters in an orthodox
way.

Beside that, I've noticed several of the circuits from my PR were
lacking trigger outputs or similar when needed, pretty making them only
as half as functional, at least to a noob like me.

And another small issue with missing ports from the status display
circuit.

One more suggestion from moocow is to add a cooldown to the ringtone
trigger for the messenger circuit, because he said it's pretty spammy
and some admins are fickle.

## Why It's Good For The Game
Bugfixing and improvements.

## Changelog

:cl:
fix: Fixed the messenger circuit not sending messages.
fix: Added several ports to modpc circuits that were missing or needing
them.
fix: Fixes ever-expanding ports whenever circuits are re-inserted in a
modular computer.
/:cl:

* [NO GBP] Fixing issues with modular computer and circuits.

---------

Co-authored-by: Ghom <[email protected]>
@Iajret Iajret merged commit f445026 into master Jan 26, 2024
23 checks passed
@Iajret Iajret deleted the upstream-mirror-619 branch January 26, 2024 15:30
Iajret pushed a commit that referenced this pull request Mar 29, 2024
* fixes them dying

* also different fix

* It needs air. No AT's at roundstart
ReezeBL pushed a commit that referenced this pull request Mar 30, 2024
* fixes them dying

* also different fix

* It needs air. No AT's at roundstart

Co-authored-by: Zenitheevee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants