Page 1 of 1

SDK and build changes

Posted: Sun Feb 16, 2014 7:49 pm
by satoon101
We have noticed that there is a loose repository size limit on GitHub, so we have decided to remove the SDKs from being directly included in the repository. We also removed the batch and shell files that were already included in the src/ directory and replaced them with dynamic batch/shell files to download a specific SDK and build against a specific SDK.

To download a specific SDK, use the SDK.bat/sh which uses the ../src/makefiles/sdk/ directory to list out which SDKs the plugin supports. To create build files for a specific SDK, use the Build.bat/sh which uses the ../src/sdks/ directory to list out which SDKs you have downloaded. If on Linux, we already include "make clean" and "make" to build the files. Obviously, on Windows, you will still need to navigate to the ../src/Builds directory to build using the solution (.sln file).

We still currently only support the OrangeBox and CSGO engines, so nothing has changed there as of yet.

Posted: Sun Jun 22, 2014 11:22 pm
by satoon101
Another update on this. AlliedMods moved their repositories from https://hg.alliedmods.net/hl2sdks to https://github.com/alliedmodders/hl2sdk and now use branches instead of having each SDK being its own repo. Due to this, we have made changes to the Build.bat/sh files and have removed the SDK.bat/sh files. The Build files now take care of both functionalities, as they get the latest version of the selected SDK and create the build files, and on Linux build the binaries.

You might notice that there is no ob-valve branch anymore. AlliedMods did not create that branch within the new repo, so we are now using css, dods, hl2dm, and tf2. All 4 of those are the same, currently, and set the sp_engine_ver value to "orangebox". You can build with any of the 4, and it will work on all 4 games along with the other Valve OrangeBox games (HL2, Ep1, Ep2, and Portal).

Every once in a while, Valve will update one or more of the 4 games and cause issues between branches. It is at this time that we will create a new branch, ourselves, to handle these differences until all 4 have been updated.

Posted: Wed Aug 27, 2014 12:56 am
by BackRaw
Hi satoon,

can you please provide a list of the packages needed to compile it on linux - ubuntu ones at least? thanks :)

Posted: Fri Aug 29, 2014 11:55 am
by Ayuto
You need the following things to compile on Linux:
  • git (sudo apt-get install git)
  • cmake (sudo apt-get install cmake)
  • g++ (sudo apt-get install g++)
If you have installed them, clone the repository using git or download the master and run ../Source.Python/src/Build.sh.
In the next two steps the script will ask you for a game you would like to compile for and a build type (choose "Release").

After that it might take some minutes to compile. The build files are written to ../Source.Python/src/Builds/<game>.

That's all :)

Posted: Fri Aug 29, 2014 11:56 pm
by BackRaw
gotcha, thanks :)