View Issue Details

IDCategoryLast Update
0002058Bug Report2019-09-23 04:45
ReporterSysosmaster 
SeverityminorReproducibilityhave not tried
Status newResolutionopen
Summary0002058: renpy.get_refresh_rate() yields 0.0 causing a ZeroDevisionError.
DescriptionWhenever I try to load the “pizza game” I get a ZeroDevisionError.
Caused by line game/scripts/minigame/pizza_mijigame/screens.rpy#128

On this line ACCELERATION is being calculated with a float devision on
config.framerate / renpy.get_refresh_rate()

In my system this last renpy call yields the value 0.0 which obviously triggers the error.
A fix would be to either capture the error state or to validate its more than zero
Like ‘if (renpy.get_refresh_rate < 0): ACCELERATION = ...
 else: ACCELERATION=0’
This would allow the next if to pick up the lower than 1.0 acceleration and set it to 1.0.
Platform/OSLinux
Version0.18.6

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-09-23 04:45 Sysosmaster New Issue