View Issue Details

IDCategoryLast Update
0001398Bug Report2018-12-15 15:14
Reporterstrayerror 
SeveritycrashReproducibilityrandom
Status resolvedResolutionfixed
Summary0001398: Seasonal code contains exception producting bug
DescriptionOn December 15th, seasonal code will activate to give a 5% chance of seeing Santa's sleigh on the Map. This code contains a single character typo that triggers an exception which leads users to the stacktrace screen.

Each time the game tries to display Santa's sleigh (day or night) the exception will trigger. This means that roughly one in twenty map views will trigger this for all players until December 31st.

To expose the bug ahead of the 15th the following code can be placed in a .rpy file in the `game` directory. It mocks both the date, and the random chance to force the bug to occur consistently.

```
init 10000 python:
    class testdate(datetime.date):
        @staticmethod
        def today():
            return datetime.date(2018, 12, 15) # dec 15

    random.random = lambda: 0.95 # force random chance
    datetime.date = testdate # mock today's date
```
Platform/OSWindows
Version0.17.1

Activities

strayerror

strayerror

2018-12-12 14:28

developer  

seasonal-exception.png (86,328 bytes)
seasonal-exception.png (86,328 bytes)
strayerror

strayerror

2018-12-12 14:37

developer   ~0001748

Turns out I can't read and the chances are actually 10% and 1 in 10 map views respectively.

Issue History

Date Modified Username Field Change
2018-12-12 14:28 strayerror New Issue
2018-12-12 14:28 strayerror File Added: seasonal-exception.png
2018-12-12 14:37 strayerror Note Added: 0001748
2018-12-12 17:48 dogeek Status new => resolved
2018-12-12 17:48 dogeek Resolution open => fixed