I am making a game that saves leaderboard data to a text file so that it is saved when the game is closed.
I am using io.open() and the first parameter i am using is “/home/josh/DeadHorde/data/data.txt”.
This path is personalised for my computer, when i build it and run it on a different computer it wont work. How do i find the path to the file that is in my project file (DeadHorde)?
gemini told me to use sys.get_resource_path() but it doesnt like that and the ai insists im trying to build for html5 so i gave up.