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

Allow skipping NPC rotation for tinymaps #47730

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

anothersimulacrum
Copy link
Member

Summary

Bugfixes "Don't move NPCs around the map when generating faction camp UI"

Purpose of change

Fixes #44978

Describe the solution

When farm_json in faction_camp.cpp calls generate(), it rotates to match the actual map it is supposed to correspond to. However, in doing this it shifts NPCs (e.g. from (62,67,0) to (9,4,0)), when it not actually having an effect on the map. This can cause NPCs to vanish when the description strings for faction camp missions are generated, as they generate the tinymap.

As a quick fix for 0.F, skip the rotation. In the future, we should be looking at replacing the insane faction camp farming thing with a zone based system.

Testing

Load the save from the linked issue, examine the bulletin board. NPCs no longer teleport around the map.

See CleverRaven#44978 for
context.

When farm_json in faction_camp.cpp calls generate(), it rotates to match
the actual map it is supposed to correspond to. However, in doing this
it shifts NPCs (e.g. from (62,67,0) to (9,4,0)), when it not actually
having an effect on the map. This can cause NPCs to vanish when the
description strings for faction camp missions are generated, as they
generate the tinymap.

As a quick fix for 0.F, skip the rotation. In the future, we should be
looking at replacing the insane faction camp farming thing with a zone
based system.
@anothersimulacrum anothersimulacrum added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Player Faction Base / Camp All about the player faction base/camp/site labels Feb 25, 2021
@ZhilkinSerg ZhilkinSerg merged commit 2458ed4 into CleverRaven:master Feb 25, 2021
@anothersimulacrum anothersimulacrum deleted the tinyrotate branch February 25, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Player Faction Base / Camp All about the player faction base/camp/site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPCs vanish when Faction Base bulletin board is selected
2 participants