SplitScreen-Me / splitscreenme-nucleus

Nucleus Co-op is an application that starts multiple instances of a game for split-screen multiplayer gaming!
https://www.splitscreen.me/docs/what-is-splitscreen-me
GNU General Public License v3.0
856 stars 50 forks source link

✨ Targeted Symbolic Links for files and folders #53

Closed hermaherp closed 1 year ago

hermaherp commented 1 year ago

I have searched through the issues and didn't find my problem.

Problem

Creating targeted symbolic links for files or folders using paths to said files or folders. Current way using Game.SymlinkFoldersTo either doesn't seem to work or is difficult to understand

Example of a useful application of the feature: when a game's executable resides within a folder inside of the game installation but requires a folder or file that's outside of the game exe's folder

Possible Solution

Creating a call or function that allows handler creators to make symbolic links on demand using paths. An example of such a feature could be in the form of

which then could be fed using variables such as Context.RootInstallFolder and Context.RootFolder to say a few examples

Additional information

I've come to make this request since I'm working on a Warcraft 3 handler as the current option is for an outdated patch and accounts for a game file format that's no longer used. I've managed to make the game work (although with a runtime injection error from ProtoInput) by manually creating the symbolic link of the folder and files necessary to run the game

File structure in Nucleus folder once clients are running image

Batch script image

Mikou27 commented 1 year ago

Hi, this is already implemented. You can take a look a the readme.txt provided with the app, if you still don't understand how to do what you need, you can ask for help in the #developers channel of our Discord.