BuckarooBanzay / epic

epic -- Enhanced Programmer for Ingame Control
Other
6 stars 2 forks source link

On_abort + unstash inv bug #24

Open MisterE123 opened 4 years ago

MisterE123 commented 4 years ago

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

BuckarooBanzay commented 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

MisterE123 commented 4 years ago

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.

BuckarooBanzay commented 4 years ago

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...

MisterE123 commented 4 years ago

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.

BuckarooBanzay commented 4 years ago

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.

MisterE123 commented 4 years ago

Im pretty sure. Join my server @ or before 6 pm EST today and ill show you the setup MisterE's SurvivalX server

BuckarooBanzay commented 4 years ago

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:

BuckarooBanzay commented 3 years ago

this may be fixed with https://github.com/damocles-minetest/epic/commit/4695df5cd4b29996f45d726da284fc060a6a6a21