-
Notifications
You must be signed in to change notification settings - Fork 12
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
Attempt to repair the station each time the primary formspec is opened #54
Conversation
Use
Should be run when network is broken.
If wanted this can be redone to use formspec error messages. |
That's not the original behaviour, I thought you wanted me to re-implement the original behaviour exactly?
There is a condition that checks if it's broken, but that's not the point. What if you want to leave it (temporarily) broken so you can go and fix the network elsewhere? Doing it automatically for the player could cause confusion in the event of data loss. Fixing it automatically on interaction will not make it look like networks aren't broken, if more than one station is lost then when you interact with a particular station it will look like the other stations are simply gone without knowing why - "THIS station looks fine (because it repaired itself), so why are the others missing?" If instead we informed the player and got them to manually fix the problem, they would know they have to go and fix it for other stations too.
No, it can't. As I mentioned on the other issue this could cause some travelnets to become inoperable
|
I guess I'll have to do implementation to explain what my proposal is, I can try to find time for that. Probably easier to understand than trying to explain what behavior I'm thinking. Carefully reading comments on #52 should however give basic idea. |
bump! is this relevant? with the move to modstorage as backend i don't think this is needed 🤔 |
If everything for server side network lookup and box lookup is in the db then this shouldn't be needed, it was anyway more about temporary workaround to make things seem fine and hopefully restore after certain problems with data storages. This also isn't really a good way for client side stuff / restoring from crippled / partial backup. For that I'm pretty sure either configurable LBM or asking for actual DB would probably be best options. Both can be completely isolated and allow complete db reconstruction in special cases where it is needed. I guess there's already solution for tn-box removal that skips normal callbacks and db writes or was it added back after refactoring things? If it wasn't yet restored then that part could be actually useful now. |
i don't think we have such a thing yet 🤔 |
Closing since this is outdated and marked as invalid. |
This PR runs the repair action each time the form is opened, except when it has not yet been configured.
I also fixed the repair logic and added in a condition to stop the max network count being exceeded, or a duplicate network being added. Any error when re-attaching the station will be reported via chat, and the primary formspec shown anyway so the player can remove the station if needed.
In my opinion #52 (adding a repair button) is much preferred because:
All these things improve the user experience of re-attaching the network