Fork based on CrabNet. Made to work with StolenNetwork framework, the main difference is the presence of a simplified wrapper.
This fork is not compatible with the original RakNet.
Notes:
- The Help directory contains index.html, which provides full documentation and help
- The Source directory contain all files required for the core of CrabNet and is used if you want to use the source in your program or create your own dll
- The Samples directory contains code samples and one game using an older version of RakNet. The code samples each demonstrate one feature of CrabNet. The game samples cover several features.
The instructions are based on the personal experience of the developer and may not be accurate. It would be really cool if someone could improve the assembly instructions.
This example shows how to build release x64 libraries for Windows.
Required:
- CMake >= 3.15 (Must in
PATH
environment) - Visual Studio 16 2019 with Desktop Development C++
PowerShell:
# Create build directory
mkdir build-win
cd build-win
# Setup project
# You can build 32-bit library using instead of x64 - Win32
cmake -G "Visual Studio 16 2019" -A x64 ..
# Build library
cmake --build . --config Release --clean-first
This example shows how to build release arm64-v8a libraries for Android on Windows platform. Best for building libs for Oculus Quest and Oculus Quest 2.
Required:
- Android NDK (tested on r23)
- Ninja (developer use instalation via Chocolatey)
PowerShell:
# Create build directory
mkdir build-android
cd build-android
# Download and unpack Android NDK
# You can skip these steps if you already have Android NDK
Invoke-WebRequest "https://dl.google.com/android/repository/android-ndk-r23-windows.zip" -OutFile "android-ndk.zip"
Expand-Archive -Path "android-ndk.zip" -DestinationPath .
# Setup project
# If you skipped the steps to download the Android NDK, then you need to replace the path in CMAKE_TOOLCHAIN_FILE with your own.
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE="android-ndk-r23/build/cmake/android.toolchain.cmake" -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=23 ..
# Build library
cmake --build . --config Release --clean-first
This example shows how to build release arm64-v8a libraries for Android on Linux platform.
Required:
- Android NDK (tested on r23)
- CMake >= 3.15
Terminal:
# Create build directory
mkdir build-android
cd build-android
# Download and unpack Android NDK
# You can skip these steps if you already have Android NDK
wget https://dl.google.com/android/repository/android-ndk-r23-linux.zip
unzip android-ndk-r23-linux.zip
# Setup project
# If you skipped the steps to download the Android NDK, then you need to replace the path in CMAKE_TOOLCHAIN_FILE with your own.
cmake -DCMAKE_TOOLCHAIN_FILE="android-ndk-r23/build/cmake/android.toolchain.cmake" -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=23 ..
# Build library
cmake --build . --config Release --clean-first
The developer tested this method on Arch Linux under WSL2.
Required:
- CMake >= 3.15
Terminal:
# Create build directory
mkdir build-linux
cd build-linux
# Setup project
cmake ..
# Build project
cmake --build . -config Release --clean-first
This project is under the BSD License.
Copyright (c) 2014, Oculus VR, Inc. (original RakNet)
Copyright (c) 2016-2018, TES3MP Team
Copyright (c) 2021, Sigalkin Vladimir