Console not getting the game's directory

  • vk8a88
    22nd Nov 2023 Member 0 Permalink

    I'm trying to load files in with the "dofile()" command in the console, but it doesn't work even if those files are in the same directory as the .exe file. It just returns this error:

    cannot open .\file.lua: No such file or directory

    It does work if I the full path of the file, but I don't want to do that every time I load a script. Is there a way to fix this?

  • jacob1
    22nd Nov 2023 Developer 0 Permalink
    The game's directory is changed to a shared folder on startup. To get there, open settings, and at the bottom there's a button "open data folder".
    Default is "%APPDATA%/The Powder Toy" on Windows, for example.