Reply To: Jedi Outcast… almost there…

Home Forums RetroPie Project New to RetroPie? Start Here! Jedi Outcast… almost there… Reply To: Jedi Outcast… almost there…

Profile photo of meneerjansen

Managed to run it on Raspbian! My Pi runs Raspbian and I installed RetroPie on it via the script. These are my personal HowTo notes on Jedi Outcast and QJoypad:

| A. Summary |
This is a tutorial on how to play Star Wars Jedi Knight II – Jedi Outcast on the Raspberry Pi model B. It needs Rasbian and some incarnation of X (like the default LXDE desktop). In short one needs to:
– download the Pi executable
– install some packages on the Pi
– create a folder on the Pi w/ the original game files
– update to version 1.04 of the game (!)
– config the Pi for sound to work in JK2

| B. Install |
1. Create a folder called, for instance, “JK2” on the Pi in your home dir.
2. Copy the game files from the dir called “base” to it (from the CD-ROM or your Windows instalation). They are the files: assets0.pk3 and assets1.pk3.
3. Update the game to version 1.04. If you do not do this then the game will NOT run. You need to download the executable “JKIIUp104.exe” (see ref. [3]). This can only be run if you’ve got the game installed in Windows or Wine.
4. The 1.04 update will create two extra files you in the “base” dir on your hard disk (c:/program files/LucasArts/Star Wars JK II Jedi Outcast/GameDate/base/) called: assets2.pk3 and assets5.pk3. You need them!
5. Download the executable and the library for the Pi from:

Extract the library and the executable to the dir “JK2”. Overwrite or rename the Windows ececutable.

6. Create the file:


Put the following contents in it:

seta s_UseOpenAL “1”

You need this to get sound.

7. Start an X session (if you aren’t in X already) by typing on the command line:


8. Open a terminal cd to the JK2 dir and type:


9. The game should start now, with sound an all. If it doesn’t surf to ref. [1] follow all its instructions (install the openal packages and libs etc.) and pray it does work now.

| C. Use of controller |
JK2 does not support the use of a joystick or game controller in Linux (i.e. on the Pi). Use a little program called “qjoypad” to let your controller emulate the mouse and keyboard. See separate ‘Tips and Hints’ file for usage of QJoypad.

| D. References |
[1] Website of the port to Linux:

[2] For the Raspberry Pi:

[3] Update to ver. 1.04 of JK2:

[4] Forum w/ the Pi executable and some info:

And to map mouse and keyboard to your controller w/ QJoypad:

It’s old, runs in the system tray (which isn’t there anymore in modern Linux desktops), very vague to configure and isn’t maintained anymore. Especially since the documentation on its website isn’t all that great. But it does the job and is still in the standard repo’s.

|A. General |
1. Install: sudo apt-get install qjoypad

2. To run type: qjoypad. Click “add” and add a new profile for your gamepad. I called mine “Thrustmaster”. Click on “update” to save your config.

3. An icon should appear in the system tray. If it doesn’t one can run the program w/ the option “–notray”.

4. Make sure your controller is recognized by Linux by installing the package “joystick” and run on the command line:

jstest /dev/input/js0

5. Click on the sys. tray icon. It’s dialog screen should pop up.

6. A lot of ‘axis’ and ‘button’ setting buttons are shown. My Thrustmaster controller, for instance, has 6 axis. That’s because each of the three directional pads or sticks has two axis: X and Y (i.e. up/down is an axis and left/right is an axis).

| B. The mouse |
1. I want my right analog stick to act as the mouse (i.e. free look in an FPS). My right analog stick has two axis: axis 3 and 4 (i.e. up/down and left/right). Click on the button in QJoypad’s dialog called “Axis 3”. A new dialog window should pop up.

2. In this dialog click on the word “keyboard” and change it into “mouse (horizontal)”. Move the analog stick from left to right a few times and notice that the indicators react to the movement of your stick!

3. You might set some additional recommend settings. For instance: tick “gradient”, set “speed” from 100 to 10, set the gradient to “lineair” etc. Click “okay”.

4. Click “Update” to save your config.

| C. The keyboard |
1. I want the D-pad of my controller to act like strafe and walk. In my favourite FPS (Jedi Outcast) these are standard mapped to W,S,A,D. The D-pad of my Thrustmaster controller is called “xis 5 and 6” in QJoypad

2. Click on “Axis 5”. Check if the D-pad actually IS axis 5 & 6 by moving the D-pad around. The indicators on the left and right should red.

3. Click the left button that says “[no key]”. Press the letter key “A”. Now the left side of the D-pad is mapped to the letter A, which is ‘strafe to the left’ in my favorite game.

4. Do this for all buttons on your controller.

| D. Test it all |
1. Open a terminal window (or a text editor).

2. Press some buttons and axis on your game controller. The letters that you mapped to your D-pad should appear (i.e. w,s, a and d) and the mouse pointer should move when you move the right analog stick.

Is it possible for the people that do not run RetroPie to install LXDE from the command line?

Skip to toolbar