#105 CTD during combat

Closed
opened 1 week ago by eugeneloza · 2 comments
Traceback (most recent call last):
  File "/home/eugene/rogueboxadventures1/main.py", line 14251, in <module>
    main()
  File "/home/eugene/rogueboxadventures1/main.py", line 14235, in main
    test = player.user_input()
  File "/home/eugene/rogueboxadventures1/main.py", line 10369, in user_input
    time.tick()
  File "/home/eugene/rogueboxadventures1/main.py", line 13916, in tick
    world.maplist[player.pos[2]][player.on_map].AI_move()
  File "/home/eugene/rogueboxadventures1/main.py", line 4245, in AI_move
    los = self.check_los(x,y,player.pos[0],player.pos[1])
  File "/home/eugene/rogueboxadventures1/main.py", line 3434, in check_los
    uvector = (vector[0]/dist,vector[1]/dist)
ZeroDivisionError: float division by zero

I might presume, that Wisp spawned a shadow under the character or company pet.

``` Traceback (most recent call last): File "/home/eugene/rogueboxadventures1/main.py", line 14251, in <module> main() File "/home/eugene/rogueboxadventures1/main.py", line 14235, in main test = player.user_input() File "/home/eugene/rogueboxadventures1/main.py", line 10369, in user_input time.tick() File "/home/eugene/rogueboxadventures1/main.py", line 13916, in tick world.maplist[player.pos[2]][player.on_map].AI_move() File "/home/eugene/rogueboxadventures1/main.py", line 4245, in AI_move los = self.check_los(x,y,player.pos[0],player.pos[1]) File "/home/eugene/rogueboxadventures1/main.py", line 3434, in check_los uvector = (vector[0]/dist,vector[1]/dist) ZeroDivisionError: float division by zero ``` I might presume, that Wisp spawned a shadow under the character or company pet.
themightyglider commented 1 week ago
Owner

Looks like you'r right. I'll fix the spawning and add an expection to check_los().

Looks like you'r right. I'll fix the spawning and add an expection to check_los().
themightyglider commented 1 week ago
Owner

Fixed both!

Fixed both!
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.