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

Small auto-observe fixes #5788

Merged
merged 7 commits into from
Feb 24, 2024
Merged

Conversation

SabreML
Copy link
Member

@SabreML SabreML commented Feb 23, 2024

About the pull request

Fixes/tweaks a couple of auto-observe things that I noticed after #5751.
Specifically:

  • Fixes runtime error: client_screen_add overridden. Use override = TRUE to suppress this warning/runtime error: client_screen_remove overridden. Use override = TRUE to suppress this warning.
    This error was consistently thrown when a ghost who's body is being observed re-enters their body. observe_target_new_mind() tries to re-register the some signals on the body's new client, but didn't have the override argument set.

  • Stops 'hidden' actions being added to the screen of observing players. (e.g. the xeno tacmap action if the queen isn't ovied)

  • Makes any observers transfer over to the new body when a xenomorph evolves/de-evolves.
    (I also added /mob/dead/observer to the observers variable's declaration since it wasn't particularly clear what the list held.)

  • Fixes the target player's action buttons disappearing for observers if they reconnect or re-enter their body.
    (The actions were being shown to the player in Login()>show_hud()>update_action_buttons() before the observer could re-register signals in observe_target_login().)
    In order to fix this I renamed the existing COMSIG_GLOB_MOB_LOGIN, COMSIG_CLIENT_MOB_LOGIN, COMSIG_MOB_LOGIN signals, and made COMSIG_MOB_LOGIN send a bit earlier in the proc.

Explain why it's good for the game

Bugfixes :)

Testing Photographs and Procedure

Screenshots & Videos

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

🆑
fix: Fixed 'hidden' action buttons being shown to observing players.
qol: Made any observers transfer over when a Xenomorph evolves/de-evolves.
/:cl:

Fixes these runtime errors:
runtime error: client_screen_add overridden.
runtime error: client_screen_remove overridden.
@github-actions github-actions bot added Fix Fix one bug, make ten more Quality of Life Make the game harder to play labels Feb 23, 2024
Just to "move them over" so that I can put `COMSIG_MOB_LOGIN` a bit earlier.
Late-night coding never goes well so this is probably awful, but I'll look at it again in the morning.
Like I said, late-night coding...
@SabreML SabreML marked this pull request as ready for review February 23, 2024 00:48
@harryob harryob added this pull request to the merge queue Feb 24, 2024
Merged via the queue into cmss13-devs:master with commit bab9f86 Feb 24, 2024
27 checks passed
cm13-github added a commit that referenced this pull request Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more Quality of Life Make the game harder to play
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants