When I try to save an objects “Position” as a .txt file I get this error:
Type Error: read-only character buffer, list
How can I work around this?
Heres the code:
import GameLogic GL = GameLogic.getCurrentController() us = GL.getOwner() position = us.getPosition() content = position file_name = "Position.txt" save_file = open(file_name, "w") save_file.write(content) save_file.close()