A savefile reader/writer for the Brickadia game
Brickadia is a multiplayer brick building game
Made for version 8 savefiles (Brickadia Alpha 5)
pip3 install brs-py
import brs
save = brs.readBRS("Freebuild.brs")
print(save)
import brs
save = brs.default()
for color_index in range(len(save.colors)):
brick = brs.Brick.default()
brick.position = [color_index * 10, 0, 6]
brick.color = brs.Color(save.colors[color_index])
save.bricks.append(brick)
brs.writeBRS("colors.brs", save)