241
Creative Projects / Re: History Generator Simulator
« on: January 01, 2016, 08:10:26 am »
I found a bug:
Code: [Select]
The Meritocracy of Zouym has triumphed with 54 remaining troops!
They have taken the city of Udmqx from The People's Oligarchy of Xa.
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1539, in __call__
return self.func(*args)
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 590, in callit
func(*args)
File "./history_generator.py", line 129, in main_loop
i.move_armies(flatten([nation.moving_armies for nation in self.nations if nation != i]))
File "/home/thomas/Downloads/Spiele/History Generator/History Generator/civil.py", line 348, in move_armies
moving_army.step(armies)
File "/home/thomas/Downloads/Spiele/History Generator/History Generator/group.py", line 25, in step
self.on_end(self)
File "./history_generator.py", line 314, in do
self.attack(attacker, attacker_city, attacking.members, defender, city)
File "./history_generator.py", line 334, in attack
if not battle.check_end_battle():
File "/home/thomas/Downloads/Spiele/History Generator/History Generator/martial.py", line 516, in check_end_battle
self.battle_over(self)
File "./history_generator.py", line 362, in end_battle
attack_city.capture(battle.a_army, a)
File "/home/thomas/Downloads/Spiele/History Generator/History Generator/civil.py", line 48, in capture
self.nation.cities.remove(self)
ValueError: list.remove(x): x not in list
can't invoke "event" command: application has been destroyed
while executing
"event generate $w <<ThemeChanged>>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
