You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was generating with the "num_territories" param set to 10, and the size set to 200. It crashed when merging barren territories
Making 10 territories Merging barren territories Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/__init__.py", line 240, in generate hex_grid = MapGen(params=params, debug=debug) File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/mapgen.py", line 248, in __init__ self.generate_territories() File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/mapgen.py", line 331, in generate_territories if t.avg_temp < 0 and (avg_x / self.hex_grid.size) < 0.5: File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/territory.py", line 47, in avg_temp return round(sum([h.temperature for h in self.members]) / self.size, 2) TypeError: unsupported operand type(s) for +: 'int' and 'tuple'
The text was updated successfully, but these errors were encountered:
I was generating with the "num_territories" param set to 10, and the size set to 200. It crashed when merging barren territories
Making 10 territories Merging barren territories Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/__init__.py", line 240, in generate hex_grid = MapGen(params=params, debug=debug) File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/mapgen.py", line 248, in __init__ self.generate_territories() File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/mapgen.py", line 331, in generate_territories if t.avg_temp < 0 and (avg_x / self.hex_grid.size) < 0.5: File "/home/myusername/.local/lib/python3.5/site-packages/hexgen/territory.py", line 47, in avg_temp return round(sum([h.temperature for h in self.members]) / self.size, 2) TypeError: unsupported operand type(s) for +: 'int' and 'tuple'
The text was updated successfully, but these errors were encountered: