Open MisterE123 opened 4 years ago
However, when players leave with an /epic_abort, their inventory is not replaced.
This sounds like a race-condition somewhere in an on_callback api
what do you mean? If there is any way for me to fix this in-game, by designing the epic differently, I would like to do it.
what do you mean? If there is any way for me to fix this in-game, by designing the epic differently, I would like to do it.
Not that i know of, no. This is a bug by either the mod or some calls to the minetest api, i see if i can debug that in the next few days...
Thx, It is a problem on my server. I would also like to have the possibility to return the items AFTER the player dies, if thats possible.
Thx, It is a problem on my server
Are you sure, i thought i encountered that once in the early stages of the mod, maybe it just resurfaced again?
I would also like to have the possibility to return the items AFTER the player dies, if thats possible.
That might need an on_die
block or callback :thinking: I'm not quite sure how to set that up yet...
I circumvented that with some enderwifi-chests where the player can store his belongings before the mission, but thats just a workaround.
Im pretty sure. Join my server @ or before 6 pm EST today and ill show you the setup MisterE's SurvivalX server
Im pretty sure. Join my server @ or before 6 pm EST today and ill show you the setup
Eh, i'm not that flexible right now :yum:
this may be fixed with https://github.com/damocles-minetest/epic/commit/4695df5cd4b29996f45d726da284fc060a6a6a21
when an unstash inventory is called from an abort callback, the inventory is not replaced. It is replaced if it is called from a @sympbol block. In my case, users can type "/spawn" to leave the arena, as well as type "epic_abort" During the main game, if the leave the area (with /spawn), it is detected by an inverse waypoint, and the cleanup function is called. That method restores teh cashed inventory. However, when players leave with an /epic_abort, their inventory is not replaced.
I am also trying to implement clearing the inventory of game items before returning the player's cashed inventory. That doesnt seem to work eaither (I was using a command block with /clearinv @player