An error occurred when I clicked my army.
```
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 54383, in script
call screen provincemap
File "renpy/common/000statements.rpy", line 569, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "game/screens.rpy", line 11343, in execute
screen armyinfo(army, playable):
File "game/screens.rpy", line 11343, in execute
screen armyinfo(army, playable):
File "game/screens.rpy", line 11469, in execute
draggroup:
File "game/screens.rpy", line 11471, in execute
drag:
File "game/screens.rpy", line 11476, in execute
python:
File "game/screens.rpy", line 11481, in <module>
armyAP = calculatearmyAP(army)
File "game/code.rpy", line 17301, in calculatearmyAP
speedWeight = (math.sqrt(speedWeight))*2
ValueError: math domain error
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 54383, in script
call screen provincemap
File "renpy/ast.py", line 2015, in execute
self.call("execute")
File "renpy/ast.py", line 2003, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "renpy/statements.py", line 278, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 569, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "renpy/exports.py", line 3136, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3325, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
File "renpy/display/core.py", line 3737, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/core.py", line 568, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 568, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 568, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 568, in visit_all
d.visit_all(callback, seen)
File "renpy/display/screen.py", line 436, in visit_all
callback(self)
File "renpy/display/core.py", line 3737, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/screen.py", line 447, in per_interact
self.update()
File "renpy/display/screen.py", line 637, in update
self.screen.function(**self.scope)
File "game/screens.rpy", line 11343, in execute
screen armyinfo(army, playable):
File "game/screens.rpy", line 11343, in execute
screen armyinfo(army, playable):
File "game/screens.rpy", line 11469, in execute
draggroup:
File "game/screens.rpy", line 11471, in execute
drag:
File "game/screens.rpy", line 11476, in execute
python:
File "game/screens.rpy", line 11481, in <module>
armyAP = calculatearmyAP(army)
File "game/code.rpy", line 17301, in calculatearmyAP
speedWeight = (math.sqrt(speedWeight))*2
ValueError: math domain error
Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Kingmaker Beta 0.17 0.17
Tue Jan 30 09:16:22 2024
```
Also, this when I try to disband my army to continue playing:
```
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 54145, in script
call screen provincemap
File "renpy/common/000statements.rpy", line 569, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "renpy/common/00action_other.rpy", line 537, in __call__
rv = self.callable(*self.args, **self.kwargs)
File "game/code.rpy", line 7804, in disbandCompany
nobleHouses[bannerSteward]['BannersRaised'][str(province)] -= 1
KeyError: u'21'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 54145, in script
call screen provincemap
File "renpy/ast.py", line 2015, in execute
self.call("execute")
File "renpy/ast.py", line 2003, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "renpy/statements.py", line 278, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 569, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "renpy/exports.py", line 3136, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3325, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
File "renpy/display/core.py", line 4160, in interact_core
rv = root_widget.event(ev, x, y, 0)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/transition.py", line 48, in event
return self.new_widget.event(ev, x, y, st) # E1101
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/screen.py", line 727, in event
rv = self.child.event(ev, x, y, st)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/dragdrop.py", line 860, in event
return super(DragGroup, self).event(ev, x, y, st)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/dragdrop.py", line 573, in event
return self.child.event(ev, x, y, st)
File "renpy/display/layout.py", line 1323, in event
rv = super(Window, self).event(ev, x, y, st)
File "renpy/display/layout.py", line 273, in event
rv = d.event(ev, x - xo, y - yo, st)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/layout.py", line 273, in event
rv = d.event(ev, x - xo, y - yo, st)
File "renpy/display/viewport.py", line 299, in event
rv = super(Viewport, self).event(ev, x, y, st)
File "renpy/display/layout.py", line 273, in event
rv = d.event(ev, x - xo, y - yo, st)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/dragdrop.py", line 860, in event
return super(DragGroup, self).event(ev, x, y, st)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/dragdrop.py", line 573, in event
return self.child.event(ev, x, y, st)
File "renpy/display/layout.py", line 1323, in event
rv = super(Window, self).event(ev, x, y, st)
File "renpy/display/layout.py", line 273, in event
rv = d.event(ev, x - xo, y - yo, st)
File "renpy/display/layout.py", line 1102, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "renpy/display/behavior.py", line 983, in event
return handle_click(self.clicked)
File "renpy/display/behavior.py", line 918, in handle_click
rv = run(action)
File "renpy/display/behavior.py", line 323, in run
new_rv = run(i, *args, **kwargs)
File "renpy/display/behavior.py", line 330, in run
return action(*args, **kwargs)
File "renpy/common/00action_other.rpy", line 537, in __call__
rv = self.callable(*self.args, **self.kwargs)
File "game/code.rpy", line 7804, in disbandCompany
nobleHouses[bannerSteward]['BannersRaised'][str(province)] -= 1
KeyError: u'21'
Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Kingmaker Beta 0.17 0.17
Tue Jan 30 09:36:03 2024
```