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

sgc fix #12

Open
EpicKnarvik97 opened this issue Jun 20, 2022 · 0 comments
Open

sgc fix #12

EpicKnarvik97 opened this issue Jun 20, 2022 · 0 comments
Labels
enhancement A suggested addition to this project
Milestone

Comments

@EpicKnarvik97
Copy link
Collaborator

As an alternative to Stargate validation for removing Stargates, it could make sense to be able to fix Stargates. This could be accomplished through a /sgc fix command.

This change requires gate designs to be available through the API, and is therefore postponed.

The basic idea: Use a Stargate's gate design to find which blocks should be placed where, and replace any invalid blocks.
If a material tag is used instead of a material there should be some ways to handle this:

  1. Choose some random material. This should be the fallback if other methods fail.
  2. Optionally store the used material when a new Stargate is created (in a database, or just as YML). This would make it possible to perfectly restore the Stargate, but would take some additional storage space, and might be inefficient for huge Servers.
  3. Do a pattern analysis to figure out what's been removed. This requires looking for symmetry and antisymmetry (and possibly other types of patterns) and filling out the missing blocks.

Number 3 can be seen as an additional feature and is not required.
The config should allow switching between 1, 2 and 3.

@EpicKnarvik97 EpicKnarvik97 added the enhancement A suggested addition to this project label Jun 20, 2022
@Pheotis Pheotis added this to the 1.4.0 milestone Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A suggested addition to this project
Projects
Development

No branches or pull requests

2 participants