Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Feature Request - Support virtual file systems #4

Open
Rikj000 opened this issue Jan 25, 2025 · 1 comment
Open

✨ Feature Request - Support virtual file systems #4

Rikj000 opened this issue Jan 25, 2025 · 1 comment

Comments

@Rikj000
Copy link

Rikj000 commented Jan 25, 2025

Issue Description

It would be nice if UE Mod Hub could support virtual file systems,
analog to how Mod Organiser 2 implements them.

Which does not place the mods directly in the game directory,
but instead symbolic links them in place.

This can bring following benefits:

  • Easy ability to launch the game in a vanilla (un-modded) or modded state,
    by applying/removing symbolic links before booting the game through the mod manager.
  • Easier to update the game, since game directory structure will remain clean / untouched.
  • Launching of various different modded game profiles (= different sets of mods for each profile)

Implementation suggestion

I've already tested this while developing a mod of my own.
Came to the conclusion that at both Lua and Pak mods work correctly when symbolic linked.
I've symbolic linked them through the Windows MKLINK CMD command:

# Print help
MKLINK /H
# Symbolic link directory example
MKLINK /D "C:\Target\Location" "C:\Source\Location"
# Symbolic link file example
MKLINK "C:\Target\Location\File" "C:\Source\Location\File"

On Linux you can do a similar thing with the ln bash command:

# Print help
ln --help
# Symbolic link directory/file example
ln -s "/source/location" "/target/location"
ln --symbolic "/source/location" "/target/location"

Keep in mind:

  • Windows: 1st Target, 2nd Source
  • Linux: 1st Source, 2nd Target
@Rikj000
Copy link
Author

Rikj000 commented Jan 25, 2025

Written a (not user friendly / developer targeted) PowerShell script,
which might prove useful / helpful with implementing this issue 🙂
(Rename .ps1.txt => .ps1, Github did not allow the upload otherwise)
Palworld-Mods-Link.ps1.txt

It requires following a directory structure as following:

Click to Expand/Collapse the "Required directory structure"

Used command: palworld-mods-link -v "v0.4.14"

Image

With it you can change the Palworld version + mods with x1 command line,
through the magic of symbolic links! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant