harfang3d / dogfight-sandbox-hg2

Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.
GNU General Public License v3.0
161 stars 47 forks source link

some reset errors/bugs when aircrafts are crashed #83

Open cjmdd opened 10 months ago

cjmdd commented 10 months ago

When aircraftd are shot down or crashed, they cannot be reintiailezed in the reset function that uses reset_machine(), reset_machine_matrix() and rearm_machine(). After, there are some errors are as follows: plane_states =get_planes_state() in get_observation() i.e., return 'Nonetype' has no attribute 'decoder'

muratozbek23 commented 9 months ago

Yes, there is such a bug. If you take the altitude information of the plane and reset it when it is 50 meters above sea level, the problem will be solved.