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

[ALttP] Don't crash generation if sprite paths don't exist #4725

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CaitSith2
Copy link
Member

Please format your title with what portion of the project this pull request is
targeting and what it's changing.

ex. "MyGame4: implement new game" or "Docs: add new guide for customizing MyGame3"

What is this fixing or adding?

Fixes a crash in generation when a player who is generating a game that has alttp, but has chosen to not install the sprites, so as a result, "data/sprites/alttpr" and/or "data/sprites/custom" are missing from the data directory.

Also made sure the base link sprite gets loaded, if it was not loaded, as a result of either the directories completely missing, or the file "data/sprite/custom/link.apsprite" is missing.

How was this tested?

Ran repeated generations with and without the directories present.

If this makes graphical changes, please attach screenshots.

@CaitSith2 CaitSith2 requested a review from Berserker66 as a code owner March 11, 2025 05:52
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Mar 11, 2025
@Exempt-Medic Exempt-Medic added waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants