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

Cannot Examine #6612

Closed
cm13-issue-bot opened this issue Jul 4, 2024 · 2 comments · Fixed by #6613
Closed

Cannot Examine #6612

cm13-issue-bot opened this issue Jul 4, 2024 · 2 comments · Fixed by #6613
Labels
Bug Admin events aren't bugs

Comments

@cm13-issue-bot
Copy link

Testmerges

#6334: 'Xenomorph Endgame' by Git-Nivrak at commit 18cfcab3cd
#6400: 'Adds Sunsets to Roundstart, adds Sunrises to Marine Victories, and Survs can hear Evo Announcement Screeches now' by GrrrKitten at commit 2927345720
#6308: 'Hostile Survivor Rework' by Steelpoint at commit bf51f9e551
#6039: 'Project ARES TM Holder (v5)' by realforest2001 at commit 62d1be1e65
#6248: 'New Map: LV-759 Hybrisa Prospera' by Zenith00000 at commit 86a7391c13
#6594: 'Ports "Adds a Chat Reliability Layer"' by Git-Nivrak at commit 7bd9347698
#6568: 'Chemical simulator TGUI' by kiVts at commit 97fc829599

Round ID

22917

Description of the bug

Due to recent test merges the ability to examine things on the action bar is disabled. However shift clicking still works.

What's the difference with what should have happened?

The command to examine pops up in the bottom right, however the actual examine function is not executed.

How do we reproduce this bug?

  1. Right click any item
  2. Click Examine

Attached logs

State: OPEN     Refresh

Opened at: 01:43:40 (Approx 3 minutes and 50.4 seconds ago)


Log:

01:51:57: DonOmet/(Austin Roe): Is examining glitched for you as well? When I attempt to the command to examin pops up in the bottom right but doesn't actually examine the item.
01:52:08: Ticket marked!
01:52:18: PM From Backsea: that was happening to me last round aswell, try shift clicking instead 
01:52:34: Reply PM from-DonOmet: Thanks! Is this a recentish bug?
01:53:18: PM From Backsea: seems so, report it please, new system makes it easy, ill approve it since this seems like a recouring issue
01:54:08: Reply PM from-DonOmet: Where's the report option in game? or would I have to do it in the forums?
01:54:24: PM From Backsea: top right on the screen, right next to discord and forum

Additional details

  • Author: DonOmet
  • Admin: Backsea
  • Note: None
@cm13-issue-bot cm13-issue-bot added the Bug Admin events aren't bugs label Jul 4, 2024
@Releasethesea
Copy link
Contributor

after further testing it appears to only apply to items youre holding

@Doubleumc
Copy link
Contributor

The issue is due to this recent change:
https://github.com/cmss13-devs/cmss13/pull/6591/files#diff-574e8bc8332bd8c31272b0986d27302f529a6414a8011ae367b178a46284dc57L487-R487

Before, with view() (effectively view(usr)):
Examine verb only visible on objects in-world & visible to the usr's mob, within default view range. Examine works on all these objects. The option to Examine interface items did not exist. If client's view range is longer than the default, Examine does not appear as an option on objects beyond that range.

After, with view(client) (effectively view(src.client)):
Examine verb visible on any object the client can see out to the client's view range, including nullspace objects like interface buttons. Examine only works on in-world objects, and produces weird content in the command bar for nullspace objects and inventory items.

The way a verb's in view(...) works is super bespoke. I can't find a way for it to work with a user's dynamic view range and exclude interface items. Closest I can come is:

  • in view(28, usr) : works as in Before, but will work out to a range of 28
  • in world : works on all objects anywhere, even interface buttons (which have descriptions like "That's Minimap.")

github-merge-queue bot pushed a commit that referenced this issue Jul 6, 2024
# About the pull request

Fixes #6612 . More
accurately, not being able to examine interface buttons is normal, its
that the right-click Examine option appeared in the first place was the
issue.

A recent change adjusted what objects right-click Examine appears for:

https://github.com/cmss13-devs/cmss13/pull/6591/files#diff-574e8bc8332bd8c31272b0986d27302f529a6414a8011ae367b178a46284dc57L487-R487

Before, with `view()` (effectively `view(usr)`):
Examine verb only visible on objects in-world & visible to the usr's
mob, within default view range. Examine works on all these objects. The
option to Examine interface items did not exist. If client's view range
is longer than the default, Examine does not appear as an option on
objects beyond that range.

After, with `view(client)` (effectively `view(src.client)`):
Examine verb visible on any object the client can see out to the
client's view range, including nullspace objects like interface buttons.
Examine only works on in-world objects, and produces weird content in
the command bar for nullspace objects and inventory items.

The way a verb's `in view(...)` works is super bespoke. I can't find a
way for it to work with a user's dynamic view range and exclude
interface items. Closest I can come is:
- `in view(28, usr)` : works as in Before, but will work out to a range
of 28 (highest view range in the codebase)
- `in world` : works on all objects anywhere, even interface buttons
(which aren't really meant to be examined and have descriptions like
"That's Minimap.")

I went with `view(28, usr)` in order to more closely match the previous
functionality.

<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game

The right-click Examine option should not appear for objects that were
never intended to be examined.
# Testing Photographs and Procedure
Right-click Examine exists and works on world objects and inventory
items, out to a ghost's maximum zoom out (view range 28). Does not exist
for interface buttons.


# Changelog
:cl:
fix: right-click Examine no longer appears for interface buttons
/:cl:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Admin events aren't bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants