Skip to content

Subnautica: Handle empty filler item weights with specific error - #6361

Open
Rooby-Roo wants to merge 1 commit into
ArchipelagoMW:mainfrom
Rooby-Roo:subnaut_optionfix
Open

Subnautica: Handle empty filler item weights with specific error#6361
Rooby-Roo wants to merge 1 commit into
ArchipelagoMW:mainfrom
Rooby-Roo:subnaut_optionfix

Conversation

@Rooby-Roo

Copy link
Copy Markdown
Collaborator

Fixes #6360.

A YAML that has an empty filler items distribution value now raises the error that previously existed to also catch negative values:

Options.OptionError: Filler Items Distribution needs at least one positive weight.

I also turned it into an OptionError instead of a general Exception, since I was in there.

Tested on source as of time of PR. Generates successfully with the default value of this option, and fails with the above error when the example YAML in the above issue is used.

I don't play Subnautica, so I haven't tested anything of the sort with a Subnautica client. Not that this should even touch that.

@Rooby-Roo
Rooby-Roo requested a review from Berserker66 as a code owner July 29, 2026 19:47
@github-actions github-actions Bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Jul 29, 2026
@Rooby-Roo Rooby-Roo 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 Jul 29, 2026
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.

Bug: Subnautica fails ungracefully when given an empty dict for filler_items_distribution

1 participant