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

[Modding] Vanilla hallways still generate in modded outposts #13547

Closed
2 tasks done
ubertpendragon opened this issue Mar 13, 2024 · 3 comments
Closed
2 tasks done

[Modding] Vanilla hallways still generate in modded outposts #13547

ubertpendragon opened this issue Mar 13, 2024 · 3 comments
Assignees
Labels
Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods

Comments

@ubertpendragon
Copy link

ubertpendragon commented Mar 13, 2024

Disclaimers

  • I have searched the issue tracker to check if the issue has already been reported.
  • My issue happened while using mods.

What happened?

Vanilla hallways will force themselves on modded outposts, no matter if you specify allowed location types.

image

Here the hallway has allowedlocationtypes defined to the intended locations:
image

I assume this is the relevant part of the code that says modules configured with locations/flags should take priority:

//try to search for modules made specifically for this location type first

Identifier moduleFlag = (isHorizontal ? "hallwayhorizontal" : "hallwayvertical").ToIdentifier();

We had a LENGTHY discussion on the modding discord about the workarounds to prevent this (reference to #7281) and it's either bugged or unintuitive

image

Possible Solutions:

Set all vanilla hallways to 0 commonness (currently 10). In theory they should still generate if there are no other options, but this should prevent them from generating at custom locations if custom hallways are set up.

I've tested this by modifying vanilla files and got no error. Rolled a bunch of vanilla and modded outposts, no issues there so it should be the simplest solution

Version

Unstable

@ubertpendragon
Copy link
Author

The mod:

#DELocalHuskModIntegrated.zip

1 Go to leveleditor
2 Generate coldcavernsoutpost + miningoutpost a bunch of times
3 Increase hallway length if needed
image

@Regalis11 Regalis11 added Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods labels Mar 14, 2024
@Regalis11 Regalis11 self-assigned this Apr 15, 2024
@Regalis11
Copy link
Collaborator

@Jasontti
Copy link
Collaborator

Tested in: https://github.com/FakeFishGames/Barotrauma-development/pull/4996/commits/27da37ba7a2caec51865da8e854147f590aafb2f

Tested in vanilla and with DE
Vanilla hallways did not generate on lair outposts anymore

No issues found
Closing ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods
Projects
None yet
Development

No branches or pull requests

3 participants