Simple tool to launch Jedi Knight Plus Mod dedicated server.
This is an additional tool (not required) i made a lot of years ago to learn some C++. The purpose was to improve the way to load commands before server launch (like the bash method). This was made to work on Windows only (but it can be easily ported to Linux) and works together with JK2 Binaries (jk2mp.exe or jk2ded.exe) or any server executables and mods.
Due i reduced some code and changed few functions, to generate the main file jkplus_launcher.exe
you should use Visual Studio C++ 11 or higher. To build it just follow the next steps:
-
Create a
Win32 Console Application
Project calledjkplus_launcher
-
Previous to finish setup, choose
Console Application
and in additional options checkEmpty Project
only -
Now you need to
Add Existing Item
to project folders:- Add
jkplus_launcher.cpp
toSource Files
- Add
jkplus_launcher.h
toHeaders Files
- Add
jkplus_launcher.rc
toResource Files
- Add
-
Next you need to statically link the runtime to the project by setting the /MT flag. To do this go to
Project > Configuration Properties > C/C++ > Code Generation > Runtime Library
and make sure to set it for theRelease
configuration -
Finally to make this compatible with Windows XP go to
Project > Configuration Properties > General
and chooseVisual Studio <Version> - Windows XP
inPlatform Toolset
-
That's it! Now you can build
jkplus_launcher.exe
to launch Jedi Knight Plus Mod -
Note: This executable creates a file called
jkplus_launcher.cfg
to store the launch options