-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
2,140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[*] | ||
indent_style = tab | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: pushbuild.txt | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-2019, ubuntu-latest] | ||
include: | ||
- os: windows-2019 | ||
os_short: windows | ||
|
||
- os: ubuntu-latest | ||
os_short: linux | ||
container_image: debian:10 | ||
|
||
name: build on ${{ matrix.os_short }} | ||
runs-on: ${{ matrix.os }} | ||
container: ${{ matrix.container_image }} | ||
|
||
steps: | ||
- name: Getting GITHUB_SHA_SHORT | ||
shell: bash | ||
run: | | ||
echo "GITHUB_SHA_SHORT=${GITHUB_SHA::7}" >> $GITHUB_ENV | ||
- name: Install linux dependencies | ||
if: ${{ matrix.os_short == 'linux' }} | ||
shell: bash | ||
run: | | ||
apt update && apt install -y apt-transport-https lsb-release wget curl software-properties-common gnupg g++-multilib git make | ||
bash <(curl -fsSL https://apt.llvm.org/llvm.sh) 18 | ||
ln -s /usr/bin/clang-18 /usr/bin/clang | ||
ln -s /usr/bin/clang++-18 /usr/bin/clang++ | ||
echo "CC=clang" >> $GITHUB_ENV | ||
echo "CXX=clang++" >> $GITHUB_ENV | ||
echo "XMAKE_ROOT=y" >> $GITHUB_ENV | ||
- name: Getting xmake | ||
uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: Getting hl2sdk-l4d2 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: alliedmodders/hl2sdk | ||
ref: l4d2 | ||
path: hl2sdk-l4d2 | ||
|
||
- name: Getting own repository | ||
uses: actions/checkout@v4 | ||
with: | ||
path: src | ||
|
||
- name: Compile ${{ github.event.repository.name }} | ||
working-directory: src | ||
run: | | ||
xmake f --HL2SDKPATH=../hl2sdk-l4d2 | ||
xmake -rv l4dtoolz | ||
- name: Uploading package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }}-${{ matrix.os_short }}-${{ env.GITHUB_SHA_SHORT }} | ||
path: src/release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/.cache | ||
/.xmake | ||
/build | ||
/compile_commands.json | ||
/release | ||
hl2sdk* | ||
.vscode | ||
test.* | ||
test | ||
core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## About | ||
Valve server plugin, unlock the max players limit and tickrate limit on L4D2. Make sure you have deleted the other versions of **l4dtoolz** and **tickrate_enabler** before using. | ||
|
||
- `-tickrate`: Command Line Options, Set the game's tickrate. default value is 30. | ||
- `-maxplayers`: Command Line Options, Set the maxplayers (bot and human players), default value is 31. | ||
- `sv_maxplayers`: Console Variables, Set the max human players allowed to join the server. when the lobby is full, you still need to remove the lobby reservation and set `sv_allow_lobby_connect_only 0` | ||
- `sv_lobby_unreserve`: Console Commands, Set lobby reservation cookie to 0. | ||
|
||
## Build manually | ||
|
||
```bash | ||
## Debian as an example. | ||
apt update && apt install -y clang g++-multilib wget git make | ||
|
||
export CC=clang && export CXX=clang++ | ||
wget https://xmake.io/shget.text -O - | bash | ||
|
||
mkdir temp && cd temp | ||
git clone --depth=1 -b l4d2 --recurse-submodules https://github.com/alliedmodders/hl2sdk hl2sdk-l4d2 | ||
git clone --depth=1 https://github.com/fdxx/l4dtoolz | ||
|
||
cd l4dtoolz | ||
xmake f --HL2SDKPATH=../hl2sdk-l4d2 | ||
xmake -rv l4dtoolz | ||
|
||
## Check the l4dtoolz/release folder. | ||
``` | ||
|
||
## Related plugins (used together with this plugin) | ||
- [l4d2_tick_network_tweaks](https://github.com/fdxx/l4d2_plugins) : Tweaks server related network parameters to cooperate high tickrate. | ||
- [l4d2_lobby_match_manager](https://github.com/fdxx/l4d2_plugins) : Auto unreserve when lobby full. and other lobby reservation related modifications. | ||
|
||
## Credits | ||
- Original `l4dtoolz` plugin and other forked versions | ||
- Original `tickrate_enabler` plugin and other forked versions | ||
- [AlliedModders](https://github.com/alliedmodders) | ||
- [SourceScramble](https://github.com/nosoop/SMExt-SourceScramble) |
Oops, something went wrong.