Skip to content

Make plans faction-based#670

Merged
notfood merged 1 commit intorwmt:devfrom
SokyranTheDragon:faction-based-plans
Sep 6, 2025
Merged

Make plans faction-based#670
notfood merged 1 commit intorwmt:devfrom
SokyranTheDragon:faction-based-plans

Conversation

@SokyranTheDragon
Copy link
Copy Markdown
Member

Added PlanManager to FactionMapData, initialized it, and exposed. It'll also be applied from SetFaction call.

I'll be honest, I expected this to need much more work than it actually was? Everything seems to be handled due to the faction being set properly where it needs to be set. Everything seems to work fine on my end.

Unrelated to this PR, but we may need to double-check the plan renaming feature since it seems to cause a double write/read.

@SokyranTheDragon SokyranTheDragon added enhancement New feature or request. multifaction Bugs or issues only in multifaction mode. 1.6 Fixes or bugs relating to 1.6 (Not Odyssey). labels Sep 6, 2025
@SokyranTheDragon
Copy link
Copy Markdown
Member Author

So to sum this up, if you make a plan then only your faction will be able to see it and no other faction. So it'll work the same as zones, designators, areas, etc.

@notfood notfood moved this to In review in 1.6 and Odyssey Sep 6, 2025
@notfood notfood merged commit 788d121 into rwmt:dev Sep 6, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in 1.6 and Odyssey Sep 6, 2025
SokyranTheDragon added a commit to SokyranTheDragon/Multiplayer that referenced this pull request Sep 8, 2025
rwmt#670 was causing errors due to the `planManager` field being null when exposing data, so to fix it I've made sure it's created if null.

However, I've decided to initialize all relevant map/world faction fields if null for all factions in case of any weird errors or issues.
notfood pushed a commit that referenced this pull request Sep 8, 2025
#670 was causing errors due to the `planManager` field being null when exposing data, so to fix it I've made sure it's created if null.

However, I've decided to initialize all relevant map/world faction fields if null for all factions in case of any weird errors or issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6 Fixes or bugs relating to 1.6 (Not Odyssey). enhancement New feature or request. multifaction Bugs or issues only in multifaction mode.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants