Jump to content

[LINUX] Mod Installation Script


Recommended Posts

I was tired of using Ubuntu's archive manager to install mods, so I made this simple script to do it for me!

download

Instructions:

1. download the script and place it in ~/bin (If it doesn't exist make it)

2. remove the .sh extension from the script. (its there so the more scrutinous among you can see that it's not evil without downloading)

3. cd into ~/bin in your terminal and enter "chmod +x ksp_mod_install" (without quotes)

4. to use it type "ksp_mod_install /path/to/mod.zip" (e.g. ksp_mod_install Downloads/FAR.zip)

5. it will automatically install if it finds a GameData folder in the top level of the zip.

6. If it does not find a GameData folder it will ask you if you want to copy everything from the top level into GameData. (Only do this if your certain it will install correctly)

7. Profit

This will probably work on mac too, I'm just not sure how one would do it

88x31.png

Edited by peachoftree
Link to comment
Share on other sites

Yep, the script should work as-is on Mac, though people will have to change the directory.

You might want to replace "${HOME}/KSP_linux/GameData" with a variable name which is set at the top. Like:

export KSP_DIR=${HOME}/KSP_linux/GameData

and then:

rsync -av GameData/* "$KSP_DIR"

FYI, CKAN is a point-and-click way to download and install mods (works on Linux/Mac/Windows)

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...