osu-repy/test.py

13 lines
478 B
Python
Raw Normal View History

2019-03-13 05:43:26 +01:00
from osuRepy.frame import ReplayFrame
from osuRepy.replay import Replay
replay = Replay()
replay.write( ReplayFrame(2, 3, 4, 4) )
replay.score_300s = 20
replay.timestamp = 635592412124124124 # Wed Feb 11 2015 09:03:52 GMT+0100 (Central European Standard Time)
replay.timestamp = 635570498982876124 # Invalid timestamp?!
# "2|3|4|4,-12345|0|0|1337,"
# ]\0\0 \0\u0018\0\0\0\0\0\0\0\0\u0019\u001f\u0002g<32>L<EFBFBD>_<EFBFBD>F<EFBFBD><46><EFBFBD>6m<36><6D>\u0003<30>,<2C>7<EFBFBD><37>Í
replay.save("test.osr")