Jump to content

[Linux] Turn your GOG installers of KotOR 1 & 2 into .deb packages


Recommended Posts

Hello fellow Debianists, Ubunteros and Mint fanatics!

 

I’m here to present you a way to install KotOR1 & KotOR2 easily on any Debian-based distribution (actually, anything that can install .deb packages). It comes in the form of scripts that convert the installers sold by GOG.com into .deb packages that can be natively installed on your distributions throught tools like DPKG, and removed through APT (synaptic, apt-get, aptitude, etc.).

 

So, here are the scripts:

 

KotOR1, GOG release 2.0.0.3, French version: http://www.dotslashplay.it/scripts/fr/play-star-wars-knights-of-the-old-republic_gog-2.0.0.3.sh

KotOR1, GOG release 2.0.0.3, English version: http://www.dotslashplay.it/scripts/en/play-star-wars-knights-of-the-old-republic-2_gog-2.0.0.3.sh

 

KotOR2, GOG release 2.0.0.3, French version: http://www.dotslashplay.it/scripts/fr/play-star-wars-knights-of-the-old-republic_gog-2.0.0.3.sh

KotOR2, GOG release 2.0.0.3, English version: http://www.dotslashplay.it/scripts/en/play-star-wars-knights-of-the-old-republic-2_gog-2.0.0.3.sh

 

(updated on 2015-06-02)

 

Choose the one corresponding to your version of the game, the language is just the language used by the script, and has no effect on your game language.

 

Now, how to use it?

1. Download the script, and place it in the same directory than the game installer (.exe and .bin files);

2. Run the script via sh, here is an exemple for the KotOR1 script (you have to run it from the directory containing the script and installer):

sh ./play-star-wars-knights-of-the-old-republic_gog-2.0.0.3.sh
3. Everything beside this point is automated. Just wait a couple minutes, and the script will end by giving you the command to run as root to install the freshly built .deb package.

4. Enjoy the best RPG in the Star Wars universe on your favorite GNU/Linux distribution wink.png

 

-----

 

Feedback of all kind is welcome here, positive as well as negative, feature requests will be listened to and worked on as much as possible.

 

-----

 

Advanced options

 

Mod support

Edited by vv221
  • Like 2
Link to comment
Share on other sites

The scripts proposed here accept some options to tweak the state of the final package. I’ll describe them here, with the following format:

VARIABLE=default,alternative1,alternative2,etc.

 

First thing is not an option per se. If you renamed your installer, or don’t want to copy/move it in the same directory than the script, you can run the script by giving it the path to the installer:

sh ./play-star-wars-knights-of-the-old-republic_gog-2.0.0.3.sh "/home/dark-revan/GOG Games/KotOR1.exe"
PREFIX=/usr/local,any absolute path

You can use this option to install the game in alternative places:

PREFIX=/opt/kotor1 sh ./play-star-wars-knights-of-the-old-republic_gog-2.0.0.3.sh
COMPRESSION=none,gzip,xz

You can use this option to use dpkg-deb built-in compression methods to reduce the size of the final package, at the cost of increased building and installation times:

COMPRESSION=xz sh ./play-star-wars-knights-of-the-old-republic_gog-2.0.0.3.sh
CHECKSUM=md5sum,none

Allows you to skip the installer integrity check:

CHECKSUM=none sh ./play-star-wars-knights-of-the-old-republic_gog-2.0.0.3.sh
Of course, you can use any combination of these options. Edited by vv221
  • Like 1
Link to comment
Share on other sites

The packages built by this script allow for an easy way to install some popular mods.

All work in the same way: a command to launch after you’ve installed the .deb package. If the command is launched without argument, and the mod installer/archive can’t be found in your $HOME directory or in the game directory, the script will give you an URL from where to download it.

 

Here is the list if supported mods and the command to run to install them:

 

_KotOR 1 Restoration 0.9 (for KotOR1)

kotor_k1r_0.9 "/some/path/to/K1R_Restoration_0.9.7z"
_TSLRCM 1.8.3B (for KotOR2)

kotor2_tslrcm_1.8.3b "/some/path/to/TSLRCM 183b.exe"
_M47-8EP 1.1B (for KotOR2)

kotor2_m478ep_1.1b "/some/path/to/M478EP 11b.exe"
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Looks like I can’t edit my posts after some time, so there you should go for up-to-date scripts and instructions:

https://www.gog.com/forum/star_wars_knights_of_the_old_republic_series/linux_turn_your_exe_installers_into_deb_packages

 

By the way, I added support for KotOR 1 Restoration 1.0 to KotOR 1 script, and dropped support for KotOR 1 Restoration 0.9.

Edited by vv221
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...