20 lines
595 B
Python
20 lines
595 B
Python
from osuRepy.frame import ReplayFrame # ReplayFrame
|
|
from osuRepy.replay import Replay # Replay instance
|
|
|
|
from osuRepy.helpers import osuButtons, osuMods # Enum helpers
|
|
|
|
replay = Replay() # Create replay instance
|
|
|
|
replay.write( ReplayFrame(2, 256, 192, osuButtons.M1) ) # Add replay frame (time, x, y, buttons)
|
|
|
|
replay.set_score(score = 29284624,
|
|
s300 = 416,
|
|
s50 = 2,
|
|
miss = 1,
|
|
combo = 358) # Set score info
|
|
|
|
replay.set_mods(osuMods.HIDDEN | osuMods.DOUBLETIME) # Enable HDDT mods
|
|
replay.set_timestamp(1552466941) # Set unix timestamp
|
|
|
|
replay.save("myReplay.osr") # Export replay to file
|