Jump to content

Welcome to JKHub

This community is dedicated to the games Star Wars: Jedi Outcast (2002) and Jedi Academy (2003). We host over 3,000 mods created by passionate fans around the world, and thousands of threads of people showcasing their works in progress and asking for assistance. From mods to art to troubleshooting help, we probably have it. If we don't, request or contribute!

Get started

The Duel Map Mod Contest has concluded and winners were announced! Congrats to 🥇1st Place Winner Reepray with Rishi Station 2, 🥈2nd Place Winner chloe with Oasis Mesa, and 🥉3rd Place Winner Artemis with TFFA Brutal! Amazing submissions by everyone!

Read more

If you're new or returning from a long hiatus, here are the basics of getting started with Star Wars Jedi Knight Jedi Academy.

Watch video

Basic auto-restart scripts for a Linux JKA Dedicated Server


Sgt Pepper
Basic auto-restart scripts for Linux JKA Dedicated.
 
These go into a Linux server's GameData folder, and it also logs all server activity into screen.log in the same folder.
 
The scripts depend on packages 'screen' and 'watch', use "apt install screen watch" or "yum install screen watch" if needed.
 
jka_autorestart.sh
screen -dmS jka_restarter watch -n 5 /absolute/path/to/jka_restarter.sh

jka_restarter.sh

if ! screen -list | grep -q "jka_server1"; then
    screen -dmLS jka_server1 ./jka_start.sh
fi
jka_start.sh - uncomment the appropriate command line depending on mod and whether using openjk
#./linuxjampded +set net_port 29070 +set dedicated 2 +set fs_game base +exec server.cfg
#./linuxjampded +set net_port 29070 +set dedicated 2 +set fs_game japlus +exec server.cfg
#./openjkded.i386 +set net_port 29070 +set dedicated 2 +set fs_game base +exec server.cfg
#./openjkded.i386 +set net_port 29070 +set dedicated 2 +set fs_game japlus +exec server.cfg

 

Hope someone finds that helpful. Have a nice day.


User Feedback

Recommended Comments

There are no comments to display.



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...