Aurorus Posted August 30, 2021 Share Posted August 30, 2021 Hey, I am trying to create my own dst rich presence for discord and I am using other mod for the binding of isaac as template, but I can't open this path sock = io.open('\\\\?\\pipe\\discord-ipc-0', "w+b") because game crashes and I am keep getting invalid filepath error Link to comment Share on other sites More sharing options...
penguin0616 Posted August 31, 2021 Share Posted August 31, 2021 Klei restricts where you read files from. You're hitting that restriction, so it errors. 1 1 1 1 Link to comment Share on other sites More sharing options...
CarlZalph Posted September 1, 2021 Share Posted September 1, 2021 To go around this use a symbolic link to connect a folder to your target destination. In Windows this is called a `hard link`. The restriction was put into place so that mods can't start doing funny things like overwriting/adding the binaries DST uses, or read browser cookie information. I reported this one a while ago, I think PeterA was the one who made the filepath resolver + restrictor. The default location for mods using io.open goes to ~~/Steam/steamapps/common/Don't Starve Together/data/<file> So creating a symlink inside the data folder would let you escape this sandbox. Depending on your application use case you may find creating a RAM disk with a mounting point inside the data folder to be useful as well. I find that working with files is a lot easier/quicker to do if the use case with IPC is completely isolated on the same computer. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now