Comments (4)
more stacktrace:
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\views\create_character_view\choose_character_stats_view.py", line 58, in keypress
self.on_confirm(self.stats)
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\event_handler.py", line 10, in call
callback(*args, **kwargs)
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses_init.py", line 146, in
player_name, race, class_, stats
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses_init_.py", line 189, in _create_character
self.switch_to_game_view(player)
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses_init.py", line 175, in _switch_to_game_view
self.switch_view(view)
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses_init.py", line 180, in _switch_view
self.view.start()
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\views\game_view_init.py", line 162, in start
x=0,
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\views\game_view\character_sheet_window.py", line 32, in init
self.sync()
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\views\game_view\character_sheet_window.py", line 43, in sync
self._sync_exp()
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\views\game_view\character_sheet_window.py", line 66, in _sync_exp
self._render_progress_bar()
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\views\game_view\progress_bar_window.py", line 75, in _render_progress_bar
self._progress_bar.set_position(self._cur_pos, self._max_pos)
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\widgets\progress_bar.py", line 44, in set_position
if self.time_left and self._show_time:
File "C:\Users\pegas\AppData\Roaming\Python\Python37\site-packages\pqcli\ui\curses\widgets\progress_bar.py", line 28, in time_left
speed = (pos_now - pos_then) / (time_now - time_then).total_seconds()
ZeroDivisionError: float division by zero
from pq-cli.
Fixed on master.
from pq-cli.
I see, I prepared exactly the same PR just now :))
from pq-cli.
thank you, @rr-
from pq-cli.
Related Issues (17)
- Division By Zero HOT 3
- I installed Python 3.8 and it won't work HOT 4
- This error occurs immediately after finalizing character creation, before anything pops up...: HOT 5
- Cannot edit names HOT 3
- Feature request: Command-line parameters to specify which character to run HOT 13
- Log and toggle view HOT 1
- Minimum Screen Size HOT 1
- Not starting on a machine with python 3.10 HOT 2
- Feature request: Parties HOT 4
- Game Mechanic Update HOT 5
- getting "addnwstr() returned ERR" when the 'game' starts HOT 7
- random seed issue HOT 1
- XDG Dependency Renaming HOT 1
- Feature request: Separation of data from code to allow customization HOT 2
- Run failed on missing _curses (Win10) HOT 7
- pqcli on Windows crashes on second save HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pq-cli.