when ship contacts a planet:
File "/home/human/Downloads/stardog-master/code/spaceship.py", line 620, in update
nearest[0].floaters.add(self)
AttributeError: 'list' object has no attribute 'add'
Same for next line.
So I substituted add with append
File "/home/human/Downloads/stardog-master/code/spaceship.py", line 623, in update
self.universe.curSystem.ships.remove(self)
ValueError: list.remove(x): x not in list
Same for next line.
So I added an if x in list test
When ship contacts a part:
File "/home/human/Downloads/stardog-master/code/parts.py", line 163, in attach
self.ship.mass += self.mass
AttributeError: 'NoneType' object has no attribute 'mass'
Also, planets only appear on the radar when it's center is in the radar's range. You should subtract the planet's radius from the in-view check.
when ship contacts a planet: File "/home/human/Downloads/stardog-master/code/spaceship.py", line 620, in update nearest[0].floaters.add(self) AttributeError: 'list' object has no attribute 'add'
Same for next line.
So I substituted add with append
File "/home/human/Downloads/stardog-master/code/spaceship.py", line 623, in update self.universe.curSystem.ships.remove(self) ValueError: list.remove(x): x not in list
Same for next line.
So I added an if x in list test
When ship contacts a part: File "/home/human/Downloads/stardog-master/code/parts.py", line 163, in attach self.ship.mass += self.mass AttributeError: 'NoneType' object has no attribute 'mass'
Also, planets only appear on the radar when it's center is in the radar's range. You should subtract the planet's radius from the in-view check.