SDK and build changes

Official Announcements about Source.Python.
User avatar
satoon101
Project Leader
Posts: 2698
Joined: Sat Jul 07, 2012 1:59 am

SDK and build changes

Postby satoon101 » Sun Feb 16, 2014 7:49 pm

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.
User avatar
satoon101
Project Leader
Posts: 2698
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sun Jun 22, 2014 11:22 pm

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.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Wed Aug 27, 2014 12:56 am

Hi satoon,

can you please provide a list of the packages needed to compile it on linux - ubuntu ones at least? thanks :)
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Fri Aug 29, 2014 11:55 am

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 :)
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Fri Aug 29, 2014 11:56 pm

gotcha, thanks :)

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 7 guests