
Warps unavailable after any sub-world removal
Ghostlyr opened this issue ยท 4 comments
After any sub-world removal creating new warps and warp listing makes unavailable - mywarp provides "world 'worldid' is not present on the server" error. Use of old warps is possible but new created warps are removes after some time. Even after removal of all previously created warps issue still exists.
No errors on server log.
Using last MyWarp dev-build.
Server version: 1.7.10 (Thermos b54 https://github.com/TCPR/Thermos/releases)
This is somewhat intentional, although I admit the solution is not ideal.
The problem is that there is way to properly track if a world is deleted when the server is not running; additionally existing worlds can be unloaded and non-existing worlds can be loaded at any time while the server is running. Therefore MyWarp currently simply fails if the warp's world is not available but remain loaded.
This not only renders the warp in question unusable, but also affects whole commands like warp list
or warp create
(because limits check each warp's world).
I guess I could try to implement a per-world loading that dynamically unloads warps if their world is unloaded and reloads them if their world is loaded.
This is however a quit major change, do not expect anything until in mid-May (to much stress witch other stuff at the moment).
To solve your problem, can you remove all warps on the deleted worlds from the database (you might need to work with the database directly)?
Okay. I'll wait for fix.
//edt: all fine. have successful migration to mysql db and remove all nonexistent worlds warps.
For future reference: H2 contains a pretty nice GUI editor that can be used to edit any H2 database.