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 ApplicationProject calledjkplus_launcher -
Previous to finish setup, choose
Console Applicationand in additional options checkEmpty Projectonly -
Now you need to
Add Existing Itemto project folders:- Add
jkplus_launcher.cpptoSource Files - Add
jkplus_launcher.htoHeaders Files - Add
jkplus_launcher.rctoResource 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 Libraryand make sure to set it for theReleaseconfiguration -
Finally to make this compatible with Windows XP go to
Project > Configuration Properties > Generaland chooseVisual Studio <Version> - Windows XPinPlatform Toolset -
That's it! Now you can build
jkplus_launcher.exeto launch Jedi Knight Plus Mod -
Note: This executable creates a file called
jkplus_launcher.cfgto store the launch options
