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

Fixes Cameras views on clients 515.1615 or greater #80818

Merged
merged 8 commits into from
Jan 9, 2024

Conversation

Chubbygummibear
Copy link
Contributor

@Chubbygummibear Chubbygummibear commented Jan 6, 2024

About The Pull Request

Fixes #79954

Turns out the cause of cameras breaking was something weird with how Byond determined the CENTER location for screen_locs on secondary popup maps like cameras and the spyglass. This can be remedied by manually using the LEFT,TOP position for the plane relays. However LEFT,TOP breaks the views for clients 1614 and below so I included a jank solution that should allow any client up to this point have the screen displayed correctly

515.1609 views working

dreamseeker_nolb8BLgRb

515.1623 views working

dreamseeker_I37Z4X04Hf

Why It's Good For The Game

Cameras working passed 1614 means you can update the server. At some point I suspect Lummox will fix the CENTER position on secondary maps and when that happens it will likely break the current fix.

Changelog

🆑
fix: popup screen locs will work on clients >1614. Security cameras and Spyglass will work
/:cl:

@tgstation-server tgstation-server added the Fix Rewrites a bug so it appears in different circumstances label Jan 6, 2024
@ToasterBiome
Copy link

Yogstation sends its regards

@SyncIt21
Copy link
Contributor

SyncIt21 commented Jan 6, 2024

Fixes #79954

@cowbot92
Copy link

cowbot92 commented Jan 6, 2024

good first PR

Copy link
Contributor

@SyncIt21 SyncIt21 left a comment

Choose a reason for hiding this comment

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

Some reviews and a few questions

Easy ones

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
@SyncIt21
Copy link
Contributor

SyncIt21 commented Jan 6, 2024

Fixes #79954

Make sure to add this to your PR body

@Chubbygummibear Chubbygummibear changed the title Fixes Cameras views on clients greater than version 515.1609 Fixes Cameras views on clients 515.1615 or greater Jan 7, 2024
Comment on lines 16 to 17
/// Due to a Byond bug where secondary maps have improperly offset render targets, we will need to override this to "LEFT,TOP" for clients >515.1614
var/relay_loc = "CENTER"
Copy link
Member

Choose a reason for hiding this comment

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

It's better to document what this DOES rather then why it's here, since why it's here might change given time
If it doesn't and none finds another use for this we can just rip it out when we deprecate the older client versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think i better explained

@LemonInTheDark LemonInTheDark added the Good First PR We all have to start somewhere label Jan 9, 2024
@LemonInTheDark LemonInTheDark enabled auto-merge (squash) January 9, 2024 01:37
@LemonInTheDark LemonInTheDark merged commit 7a45a51 into tgstation:master Jan 9, 2024
19 checks passed
github-actions bot added a commit that referenced this pull request Jan 9, 2024
comfyorange added a commit that referenced this pull request Jan 9, 2024
Jolly-66 pushed a commit to TaleStation/TaleStation that referenced this pull request Jan 9, 2024
…ter (#9359)

Original PR: tgstation/tgstation#80818
-----
## About The Pull Request

Fixes tgstation/tgstation#79954

Turns out the cause of cameras breaking was something weird with how
Byond determined the CENTER location for screen_locs on secondary popup
maps like cameras and the spyglass. This can be remedied by manually
using the LEFT,TOP position for the plane relays. However LEFT,TOP
breaks the views for clients 1614 and below so I included a jank
solution that should allow any client up to this point have the screen
displayed correctly

### 515.1609 views working

![dreamseeker_nolb8BLgRb](https://github.com/tgstation/tgstation/assets/46236974/e155c9c3-12c0-4eb5-a4a6-4e3f09dc456d)

### 515.1623 views working

![dreamseeker_I37Z4X04Hf](https://github.com/tgstation/tgstation/assets/46236974/e91b3bd8-ea05-40e7-ab20-6c48810f9879)
## Why It's Good For The Game

Cameras working passed 1614 means you can update the server. At some
point I suspect Lummox will fix the CENTER position on secondary maps
and when that happens it will likely break the current fix.


## Changelog
:cl:
fix: popup screen locs will work on clients >1614. Security cameras and
Spyglass will work
/:cl:

Co-authored-by: Chubbygummibear <46236974+Chubbygummibear@users.noreply.github.com>
Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Absolucy referenced this pull request in Absolucy/Monkestation Jan 18, 2024
## About The Pull Request

Fixes tgstation/tgstation#79954

Turns out the cause of cameras breaking was something weird with how
Byond determined the CENTER location for screen_locs on secondary popup
maps like cameras and the spyglass. This can be remedied by manually
using the LEFT,TOP position for the plane relays. However LEFT,TOP
breaks the views for clients 1614 and below so I included a jank
solution that should allow any client up to this point have the screen
displayed correctly

### 515.1609 views working

![dreamseeker_nolb8BLgRb](https://github.com/tgstation/tgstation/assets/46236974/e155c9c3-12c0-4eb5-a4a6-4e3f09dc456d)

### 515.1623 views working

![dreamseeker_I37Z4X04Hf](https://github.com/tgstation/tgstation/assets/46236974/e91b3bd8-ea05-40e7-ab20-6c48810f9879)
## Why It's Good For The Game

Cameras working passed 1614 means you can update the server. At some
point I suspect Lummox will fix the CENTER position on secondary maps
and when that happens it will likely break the current fix.


## Changelog
:cl:
fix: popup screen locs will work on clients >1614. Security cameras and
Spyglass will work
/:cl:

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Ghommie added a commit that referenced this pull request Feb 7, 2025
## About The Pull Request
Closes: #89330
Replaced old hacky workaround
#80818 with brand new hacky
workaround.
## Why It's Good For The Game
It is
## Changelog
:cl:
fix: fixed camera consoles, spyglasses etc. client crush on 516
/:cl:

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
nevimer pushed a commit to Bubberstation/Bubberstation that referenced this pull request Feb 7, 2025
## About The Pull Request
Closes: tgstation/tgstation#89330
Replaced old hacky workaround
tgstation/tgstation#80818 with brand new hacky
workaround.
## Why It's Good For The Game
It is
## Changelog
:cl:
fix: fixed camera consoles, spyglasses etc. client crush on 516
/:cl:

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
Absolucy pushed a commit to Absolucy/Monkestation that referenced this pull request Feb 8, 2025
## About The Pull Request
Closes: tgstation/tgstation#89330
Replaced old hacky workaround
tgstation/tgstation#80818 with brand new hacky
workaround.
## Why It's Good For The Game
It is
## Changelog
:cl:
fix: fixed camera consoles, spyglasses etc. client crush on 516
/:cl:

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
lessthnthree pushed a commit to effigy-se/effigy that referenced this pull request Feb 9, 2025
## About The Pull Request
Closes: tgstation/tgstation#89330
Replaced old hacky workaround
tgstation/tgstation#80818 with brand new hacky
workaround.
## Why It's Good For The Game
It is
## Changelog
:cl:
fix: fixed camera consoles, spyglasses etc. client crush on 516
/:cl:

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
FlufflesTheDog pushed a commit to NovaSector/NovaSector that referenced this pull request Feb 11, 2025
## About The Pull Request
Closes: tgstation/tgstation#89330
Replaced old hacky workaround
tgstation/tgstation#80818 with brand new hacky
workaround.
## Why It's Good For The Game
It is
## Changelog
:cl:
fix: fixed camera consoles, spyglasses etc. client crush on 516
/:cl:

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
Iajret pushed a commit to Fluffy-Frontier/FluffySTG that referenced this pull request Feb 19, 2025
## About The Pull Request
Closes: tgstation/tgstation#89330
Replaced old hacky workaround
tgstation/tgstation#80818 with brand new hacky
workaround.
## Why It's Good For The Game
It is
## Changelog
:cl:
fix: fixed camera consoles, spyglasses etc. client crush on 516
/:cl:

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Rewrites a bug so it appears in different circumstances Good First PR We all have to start somewhere
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Camera consoles dont work properly on 515
7 participants