So, Lets Go!Tr!Force wrote:Note 1: English is not my main language, so i will try to do my best :lol:
Note 2: If you want know what things can you do with the Source-Code, i will answer: you can change the entire game.
1. Getting all resources:
- Download the OpenJK Project here (the "Download ZIP" button)
- Download CMake from here (this is to generate the project files)
- Download Visual Studio here (2013 version in my case)
- Install CMAKE with Admin Rights (right click -> execute as Admin)
- Dont forget to check the option "add CMAKE to system PATH (for you or all users)"
- Install VIsual Studio (2013 version in my case)
- Go to your OpenJK-master folder
- Open CMakeLists.txt with an editor (like Notepad++, Vim, etc...)
- Look for the BuildJK2SPxxx strings, and change all OFF with ON at the end:
Code: Select all
option(BuildJK2SPEngine "Whether to create projects for the jk2 SP engine (openjo_sp.exe)" OFF) option(BuildJK2SPGame "Whether to create projects for the jk2 sp gamecode mod (jk2gamex86.dll)" OFF) option(BuildJK2SPRdVanilla "Whether to create projects for the jk2 sp renderer (rdjosp-vanilla_x86.dll)" OFF)
- Save the file and now open the file CreateVisualStudio2013Projects.bat or CreateVisualStudio2015Projects.bat (in the same folder)
- OK, now ure ready to work with the project files in with Visual Studio
- Open the project file OpenJK.sln (in the "build" folder)
- Now feel free to edity whatever you want. The whole project has the Jedi Academy SP / MP and the Jedi Outcast SP codes
- The main game features for JK2 SP are in: JK2 SP Game Library Project (in "game" folder, look at the right sidebar)
- For example, if you want edit the weapon damages i written an easy example here:
- Finally when you have everything done, and you are ready, save the project and change Debug with Release at the top of the window:
- Now you need to generate the 3 main JK2 SP Binaries, so right click on project files (Look at the right sidebar) and press "Build" in:
- JK2 SP Client
- JK2 SP Game Library
- JK2 SP Vanilla renderer
- After that you will get a "final" message from every build at the bottom, like:
Code: Select all
========== Build All: 3 succeeded, 0 failed, 0 skipped ==========
- If theres 0 failed it means everything is fine.
- Now go to the Release folder and copy the 3 main JK2 SP files:
- openjo_sp.x86.exe
- rdjosp-vanilla_x86.dll
- jospgamex86.dll
- Paste these files in GameData folder in your JK2 game folder
- Now you are ready to play with your own JK2 SP Version! (remember to open the main executable openjo_sp.x86.exe)
- Note 1: if says SDL2.dll not found, just get from OpenJK Source folder in: OpenJK-master\lib\SDL2\bin
- Note 2: Remember to click on ReBuild in the project if you want do more tests and compile again, and again...
Regards