Skip to content

Latest commit

 

History

History
51 lines (47 loc) · 2.44 KB

readme.md

File metadata and controls

51 lines (47 loc) · 2.44 KB

Source4android

Caution

Please do not use this as its not complete yet, please proceed with caution. (Some leaked code will be used in future updates, but not entirely.)

Source4Android is an open-source, base mod for Half-Life 2 which allows players to port their mods to Android and Android-based systems without using any leaked code.

How to build.

Firstly, you will need to install build dependencies[1], here are the required packages.

  • If you're on Arch Linux or any pacman-based run
sudo pacman -S base-devel gcc dpkg
  • If you're on Debian or any APT-Based distro run
sudo apt-get install gcc-multilib g++-multilib # For x86_64
sudo apt-get install build-essential # For x86/i386

Download the Steam Client Runtime and copy the files from this repo to there.
Now you will need to run the buildandroid.sh file located in src/ directory.

cd source4android/src/
./buildandroid.sh

Now build the makefile

make -f [MAKEFILE].mak

Mods using Source4Android

Troubleshooting

if you get this output:

creating: source4android-main/src/thirdparty/libiconv-1.15/m4/
  inflating: source4android-main/src/thirdparty/libiconv-1.15/m4/cp.m4
  inflating: source4android-main/src/thirdparty/libiconv-1.15/m4/eilseq.m4
  inflating: source4android-main/src/thirdparty/libiconv-1.15/m4/endian.m4
  inflating: source4android-main/src/thirdparty/libiconv-1.15/m4/general.m4
  inflating: source4android-main/src/thirdparty/libiconv-1.15/m4/libtool.m4
source4android-main/src/thirdparty/libiconv-1.15/m4/libtool.m4:  write error (disk full?).  Continue? (y/n/^C)

then you do not have enough diskspace. Clear some storage Guide for Debian., Guide for other distro's

Credits

  • GuestSneezeOSDev: Created most of the stuff used in the mod such as the build scripts
  • nillerusr: The touch support was used from his repository which uses leaked code so I will not be able to link it.
  • Valve: Source SDK 2013 base code.
  • XutaxKamay: For the swept ray box fixes.
  • sortie: Linux ports of VRAD, VVIS, and VBSP.