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

Missing icons unit test expansion #7659

Merged
merged 35 commits into from
Nov 29, 2024

Conversation

Drulikar
Copy link
Contributor

@Drulikar Drulikar commented Nov 23, 2024

About the pull request

This PR is an experimental change to the missing icons unit test where it now instantiates all items to check their items (meaning they will do whatever they do to their icon_state in Initialize). This ended up causing several new hard deletes that I had to fix too. The create and destroy unit test shares exclusions now with missing icons. I originally started this because #7021 is likely going to need help sorting out lots of missing icons at runtime that weren't caught with the old unit test.

No actual pixel changes in sprites: Just renames, removals, or addition of blank states.
Added unlocked overlay to /obj/item/storage/backpack/satchel/lockable
image
Restored the spike overlays to /obj/item/weapon/gun/launcher/spike removed some reason in #7361
image
Tweaked transparency and edges on old alien samples:
image

Currently there are 847 warnings for missing mob icons (could be more if blanket testing slots that allow equipping the item), but these are only mentioned in the warnings section (nor annotated currently though I would like warnings to eventually be annotated once there isn't so much noise).

Explain why it's good for the game

More robust testing for hard deletes and missing icons.

Testing Photographs and Procedure

Screenshots & Videos

https://youtu.be/uB8Z4yNjfDA

Changelog

🆑 Drathek
code: Missing Icons unit test now instantiates items and generally tests more icon_states
code: Unit tests can now log warnings that appear as a separate collapsed list but do not fail checks
fix: Fixed various hardrefs and missing icons
fix: Pipes retain their dir when picked up, no longer go invisible when re-anchored, and reconnect when re-anchored.
fix: Disabled various admin only pistols from being equipped in pistol belts since they only honk their underlay
refactor: Giant lizards and parent types now use weakrefs
refactor: Removed has_gamemode_skin and renamed NO_SNOW_TYPE to NO_GAMEMODE_SKIN
refactor: Removed uses_skin_color in favor of the existing flag HAS_SKIN_COLOR
maptweak: Fixed droppod floors on trijent elevator, lifeboats, corsat, and bigred
imageadd: Added missing unlocked overlay to lockable satchel
imageadd: Restored the missing overlays to spike launcher
imageadd: Tweaked the old sample jars and samples
admin: Admin spawned predators now have random skin color
/:cl:

@cmss13-ci cmss13-ci bot added Sprites Remove the soul from the game. Mapping did you remember to save in tgm format? Code Improvement Make the code longer Fix Fix one bug, make ten more Refactor Make the code harder to read labels Nov 23, 2024
Copy link
Member

@Nanu308 Nanu308 left a comment

Choose a reason for hiding this comment

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

mapping is fine

Copy link
Member

Choose a reason for hiding this comment

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

mapping is fine

@Nanu308 Nanu308 added the Mapping Approved adds 500 new dict keys label Nov 23, 2024
@Drulikar Drulikar marked this pull request as ready for review November 24, 2024 07:35
@Blundir Blundir added the Sprites Approved confirmed no stray pixels label Nov 26, 2024
@Drulikar Drulikar marked this pull request as draft November 26, 2024 10:33
@Drulikar Drulikar removed the Sprites Approved confirmed no stray pixels label Nov 27, 2024
@cmss13-ci cmss13-ci bot added the Admin Make things harder for admins label Nov 27, 2024
@Drulikar Drulikar marked this pull request as ready for review November 27, 2024 05:41
c83ed7d: maps/map_files/BigRed/BigRed.dmm
c83ed7d: maps/map_files/USS_Almayer/USS_Almayer.dmm

Automatically commited by: tools\mapmerge2\fixup.py
@harryob harryob added this pull request to the merge queue Nov 29, 2024
Merged via the queue into cmss13-devs:master with commit 7d096e8 Nov 29, 2024
27 checks passed
cmss13-ci bot added a commit that referenced this pull request Nov 29, 2024
@Drulikar Drulikar deleted the missing_icons_expansion branch November 29, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Make things harder for admins Code Improvement Make the code longer Fix Fix one bug, make ten more Mapping Approved adds 500 new dict keys Mapping did you remember to save in tgm format? Refactor Make the code harder to read Sprites Remove the soul from the game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants