NeuralMMO / environment

Neural MMO - A Massively Multiagent Environment for Artificial Intelligence Research
https://neuralmmo.github.io
MIT License
508 stars 67 forks source link

How to respawn agents #80

Open beaol opened 9 months ago

beaol commented 9 months ago

Hi, is it possible to respawn an agent immediately after it dies in the environment? When running the environment with a certain number of agents, I experience that the environment resets after some amount of agents dies. I would like to prevent this reset and just respawn an agent right after it dies. I tried to clear the dead_this_tick and dead_agents sets and add the dead agents back to alive_agents, but it didn’t seem to work. It prevented the reset of the environment but the agents were still dead and never acted again. Is it possible to respawn agents when they die?