Skip to content

Make base compile on linux #629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
47ad4b8
Add old steamapi dylibs to game_clean
melvyn2 May 8, 2022
ef3995b
add some stuff to gitignore
ReplayCoding Feb 19, 2023
47d56dd
add scripts to build repo
ReplayCoding Feb 19, 2023
551435d
fix vpc crashing at runtime
ReplayCoding Feb 19, 2023
940f7b2
fix case-sensitivity issues
ReplayCoding Feb 19, 2023
fddb453
use system freetype headers
ReplayCoding Feb 19, 2023
3ab9b1e
fix compile error in utlblockmemory.h
ReplayCoding Feb 19, 2023
0ec8af8
fix error when building static libs
ReplayCoding Feb 25, 2023
00d018a
make gendbg.sh & ccache executable
ReplayCoding Feb 19, 2023
251402c
fix STEAM_RUNTIME_PATH on non-chroot builds
ReplayCoding Feb 19, 2023
b489e4e
fix protobuf builds
ReplayCoding Feb 19, 2023
06053e4
fix a compile error caused by using -> on a non-pointer
ReplayCoding Feb 19, 2023
be77b96
use MIN macro in place of std::min
ReplayCoding Feb 19, 2023
9ced951
add libedit
ReplayCoding Feb 19, 2023
b6e930f
add working tcmalloc
ReplayCoding Feb 19, 2023
65f8753
add precompiled libraries
ReplayCoding Feb 19, 2023
492fd65
Clean up build process output
melvyn2 Oct 30, 2020
2a7f032
fix a vphysics crash due to it not being able to find certain functions
ReplayCoding Feb 19, 2023
c2e1225
Fix sysctl.h usage
melvyn2 Sep 21, 2020
6189091
Don't run gensym/strip on static libraries
ReplayCoding Feb 20, 2023
cf5afe5
Fix crash caused by target id panels
ReplayCoding Feb 23, 2023
3eaa540
fix VGui buttons not being clickable on newer GCC versions
ReplayCoding Feb 25, 2023
3f650ad
Add linux install instructions to README
ReplayCoding Mar 15, 2023
0aa502a
Disable null-pointer check optimization in gcc
ReplayCoding Mar 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ TC2 is mostly about the changes made _on top_ of a mid-Jungle Inferno developmen
* As a separate game, you cannot play normal TF2 matchmaking. You can *only* connect to TC2 servers.
* Information about multiplayer playtests can be found [on our Discord server](https://discord.gg/CuPb2zV).

## Basic Installation
## Basic Installation (Windows)

New users should follow this approach.

Expand All @@ -46,6 +46,16 @@ New users should follow this approach.

*Advanced installation instructions (for contributors and developers) [can be found here](https://github.com/mastercomfig/tf2-patches/wiki/Advanced-Installation-Instructions).*

## Basic Installation (Linux)

New users should follow this approach.

1. [Download](https://github.com/mastercomfig/tf2-patches/releases/latest) `game_dist_linux.zip` from the latest release.
2. Extract the downloaded ZIP to a directory on your computer.
3. Open a shell, `cd` to the directory you extracted TC2 into, and run `./link.sh`
4. In the same directory, run `./start_tf2.sh`. Note that you must have Steam running.
5. Enjoy!

## For players:

### [Things to keep in mind with TC2](https://github.com/mastercomfig/tf2-patches/wiki/Things-to-keep-in-mind-with-TC2)
Expand Down
232 changes: 201 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ ipch
*.idb
*.sln
*.recipe
*.project
pythonenv*/
/src/enc_temp_folder

*.lib
*.a
*.la
*.o
*.so
*.lo
*.Plo
*.obj
Expand All @@ -37,6 +39,7 @@ pythonenv*/
*.mak
*.mak.vpc_crc
*.xcodeproj/
src/devtools/bin/vpc_linux
obj*/
!src/devtools/*.mak
!src/utils/smdlexp/smdlexp.mak
Expand Down Expand Up @@ -96,43 +99,209 @@ Debug_*/
UpgradeLog*.htm

# third party build products
src/thirdparty/protobuf-2.6.1/src/Makefile.in
src/thirdparty/protobuf-2.6.1/protobuf.pc
src/thirdparty/protobuf-2.6.1/autom4te.cache
src/thirdparty/protobuf-2.6.1/compile
src/thirdparty/protobuf-2.6.1/stamp-h1
src/thirdparty/protobuf-2.6.1/Makefile
src/thirdparty/protobuf-2.6.1/Makefile.in
src/thirdparty/protobuf-2.6.1/libtool
src/thirdparty/protobuf-2.6.1/config.log
src/thirdparty/protobuf-2.6.1/protobuf-lite.pc
src/thirdparty/protobuf-2.6.1/aclocal.m4
src/thirdparty/protobuf-2.6.1/gtest/configure
src/thirdparty/protobuf-2.6.1/configure
src/thirdparty/protobuf-2.6.1/src/protoc
src/thirdparty/protobuf-2.6.1/src/unittest_proto_middleman
src/thirdparty/protobuf-2.6.1/**/Makefile
src/thirdparty/protobuf-2.6.1/**/Makefile.in
src/thirdparty/protobuf-2.6.1/**/libtool
src/thirdparty/protobuf-2.6.1/**/.dirstamp
src/thirdparty/protobuf-2.6.1/gtest/config.status
src/thirdparty/protobuf-2.6.1/gtest/scripts/gtest-config
src/thirdparty/protobuf-2.6.1/gtest/build-aux/config.h
src/thirdparty/protobuf-2.6.1/**/stamp-h1
src/thirdparty/protobuf-2.6.1/autom4te.cache/
src/thirdparty/protobuf-2.6.1/config.h
src/thirdparty/protobuf-2.6.1/config.h.in~
src/thirdparty/protobuf-2.6.1/config.status
src/thirdparty/protobuf-2.6.1/test-driver
src/thirdparty/protobuf-2.6.1/missing
src/thirdparty/protobuf-2.6.1/**/.deps
src/thirdparty/protobuf-2.6.1/**/.libs
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.*
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest*.pb.*
src/thirdparty/protobuf-2.6.1/gtest/Makefile
src/thirdparty/protobuf-2.6.1/gtest/autom4te.cache/
src/thirdparty/protobuf-2.6.1/gtest/build-aux/config.h
src/thirdparty/protobuf-2.6.1/gtest/build-aux/config.h.in~
src/thirdparty/protobuf-2.6.1/gtest/build-aux/stamp-h1
src/thirdparty/protobuf-2.6.1/gtest/config.status
src/thirdparty/protobuf-2.6.1/gtest/fused-src/gtest/.deps/
src/thirdparty/protobuf-2.6.1/gtest/libtool
src/thirdparty/protobuf-2.6.1/gtest/samples/.deps/
src/thirdparty/protobuf-2.6.1/gtest/scripts/gtest-config
src/thirdparty/protobuf-2.6.1/gtest/test/.deps/
src/thirdparty/protobuf-2.6.1/libtool
src/thirdparty/protobuf-2.6.1/protobuf-lite.pc
src/thirdparty/protobuf-2.6.1/protobuf.pc
src/thirdparty/protobuf-2.6.1/src/.libs/
src/thirdparty/protobuf-2.6.1/src/Makefile
src/thirdparty/protobuf-2.6.1/src/google/protobuf/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/.dirstamp
src/thirdparty/protobuf-2.6.1/src/google/protobuf/.libs/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/.dirstamp
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/cpp/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/cpp/.dirstamp
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/java/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/java/.dirstamp
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/python/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/compiler/python/.dirstamp
src/thirdparty/protobuf-2.6.1/src/google/protobuf/io/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/io/.dirstamp
src/thirdparty/protobuf-2.6.1/src/google/protobuf/stubs/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/stubs/.dirstamp
src/thirdparty/protobuf-2.6.1/src/google/protobuf/testing/.deps/
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_custom_options.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_custom_options.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_embed_optimize_for.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_embed_optimize_for.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_empty.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_empty.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import_lite.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import_lite.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import_public.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import_public.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import_public_lite.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_import_public_lite.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_lite.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_lite.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_lite_imports_nonlite.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_lite_imports_nonlite.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_mset.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_mset.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_no_generic_services.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_no_generic_services.pb.h
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_optimize_for.pb.cc
src/thirdparty/protobuf-2.6.1/src/google/protobuf/unittest_optimize_for.pb.h
src/thirdparty/protobuf-2.6.1/src/protoc
src/thirdparty/protobuf-2.6.1/src/unittest_proto_middleman
src/thirdparty/protobuf-2.6.1/stamp-h1
src/thirdparty/protobuf-2.6.1/Makefile.in
src/thirdparty/protobuf-2.6.1/aclocal.m4
src/thirdparty/protobuf-2.6.1/config.h.in
src/thirdparty/protobuf-2.6.1/configure
src/thirdparty/protobuf-2.6.1/gtest/Makefile.in
src/thirdparty/protobuf-2.6.1/gtest/aclocal.m4
src/thirdparty/protobuf-2.6.1/gtest/build-aux/config.h.in
src/thirdparty/protobuf-2.6.1/gtest/build-aux/ltmain.sh
src/thirdparty/protobuf-2.6.1/gtest/configure
src/thirdparty/protobuf-2.6.1/gtest/m4/libtool.m4
src/thirdparty/protobuf-2.6.1/gtest/m4/ltoptions.m4
src/thirdparty/protobuf-2.6.1/gtest/m4/ltversion.m4
src/thirdparty/protobuf-2.6.1/ltmain.sh
src/thirdparty/protobuf-2.6.1/m4/libtool.m4
src/thirdparty/protobuf-2.6.1/m4/ltoptions.m4
src/thirdparty/protobuf-2.6.1/m4/ltversion.m4
src/thirdparty/protobuf-2.6.1/src/Makefile.in

src/thirdparty/libpng-1.5.2/pngtest

src/thirdparty/libedit-3.1/Makefile.in
src/thirdparty/libedit-3.1/aclocal.m4
src/thirdparty/libedit-3.1/config.h.in
src/thirdparty/libedit-3.1/configure
src/thirdparty/libedit-3.1/doc/Makefile.in
src/thirdparty/libedit-3.1/examples/Makefile.in
src/thirdparty/libedit-3.1/src/Makefile.in
src/thirdparty/libedit-3.1/Makefile
src/thirdparty/libedit-3.1/autom4te.cache/
src/thirdparty/libedit-3.1/config.h
src/thirdparty/libedit-3.1/config.h.in~
src/thirdparty/libedit-3.1/config.status
src/thirdparty/libedit-3.1/doc/Makefile
src/thirdparty/libedit-3.1/doc/editline.3
src/thirdparty/libedit-3.1/doc/editline.7
src/thirdparty/libedit-3.1/doc/editrc.5
src/thirdparty/libedit-3.1/examples/.deps/
src/thirdparty/libedit-3.1/examples/.libs/
src/thirdparty/libedit-3.1/examples/Makefile
src/thirdparty/libedit-3.1/examples/fileman
src/thirdparty/libedit-3.1/examples/tc1
src/thirdparty/libedit-3.1/examples/wtc1
src/thirdparty/libedit-3.1/libedit.pc
src/thirdparty/libedit-3.1/libtool
src/thirdparty/libedit-3.1/src/.libs/
src/thirdparty/libedit-3.1/src/Makefile
src/thirdparty/libedit-3.1/src/common.h
src/thirdparty/libedit-3.1/src/emacs.h
src/thirdparty/libedit-3.1/src/fcns.h
src/thirdparty/libedit-3.1/src/func.h
src/thirdparty/libedit-3.1/src/help.h
src/thirdparty/libedit-3.1/src/vi.h
src/thirdparty/libedit-3.1/stamp-h1

src/thirdparty/gperftools-2.0/.deps/
src/thirdparty/gperftools-2.0/.libs/
src/thirdparty/gperftools-2.0/Makefile
src/thirdparty/gperftools-2.0/addressmap_unittest
src/thirdparty/gperftools-2.0/atomicops_unittest
src/thirdparty/gperftools-2.0/autom4te.cache/
src/thirdparty/gperftools-2.0/config.status
src/thirdparty/gperftools-2.0/current_allocated_bytes_test
src/thirdparty/gperftools-2.0/debugallocation_test
src/thirdparty/gperftools-2.0/debugallocation_test.sh
src/thirdparty/gperftools-2.0/frag_unittest
src/thirdparty/gperftools-2.0/getpc_test
src/thirdparty/gperftools-2.0/heap-checker-death_unittest.sh
src/thirdparty/gperftools-2.0/heap-checker_debug_unittest
src/thirdparty/gperftools-2.0/heap-checker_debug_unittest.sh
src/thirdparty/gperftools-2.0/heap-checker_unittest
src/thirdparty/gperftools-2.0/heap-checker_unittest.sh
src/thirdparty/gperftools-2.0/heap-profiler_debug_unittest
src/thirdparty/gperftools-2.0/heap-profiler_debug_unittest.sh
src/thirdparty/gperftools-2.0/heap-profiler_unittest
src/thirdparty/gperftools-2.0/heap-profiler_unittest.sh
src/thirdparty/gperftools-2.0/libprofiler.pc
src/thirdparty/gperftools-2.0/libtcmalloc.pc
src/thirdparty/gperftools-2.0/libtcmalloc_debug.pc
src/thirdparty/gperftools-2.0/libtcmalloc_minimal.pc
src/thirdparty/gperftools-2.0/libtcmalloc_minimal_debug.pc
src/thirdparty/gperftools-2.0/libtool
src/thirdparty/gperftools-2.0/low_level_alloc_unittest
src/thirdparty/gperftools-2.0/malloc_extension_debug_test
src/thirdparty/gperftools-2.0/malloc_extension_test
src/thirdparty/gperftools-2.0/malloc_hook_test
src/thirdparty/gperftools-2.0/markidle_unittest
src/thirdparty/gperftools-2.0/memalign_debug_unittest
src/thirdparty/gperftools-2.0/memalign_unittest
src/thirdparty/gperftools-2.0/packed_cache_test
src/thirdparty/gperftools-2.0/page_heap_test
src/thirdparty/gperftools-2.0/pagemap_unittest
src/thirdparty/gperftools-2.0/profile_handler_unittest
src/thirdparty/gperftools-2.0/profiledata_unittest
src/thirdparty/gperftools-2.0/profiler1_unittest
src/thirdparty/gperftools-2.0/profiler2_unittest
src/thirdparty/gperftools-2.0/profiler3_unittest
src/thirdparty/gperftools-2.0/profiler4_unittest
src/thirdparty/gperftools-2.0/profiler_unittest.sh
src/thirdparty/gperftools-2.0/raw_printer_test
src/thirdparty/gperftools-2.0/realloc_debug_unittest
src/thirdparty/gperftools-2.0/realloc_unittest
src/thirdparty/gperftools-2.0/sampler_debug_test
src/thirdparty/gperftools-2.0/sampler_test
src/thirdparty/gperftools-2.0/sampling_debug_test
src/thirdparty/gperftools-2.0/sampling_debug_test.sh
src/thirdparty/gperftools-2.0/sampling_test
src/thirdparty/gperftools-2.0/sampling_test.sh
src/thirdparty/gperftools-2.0/simple_compat_test
src/thirdparty/gperftools-2.0/src/config.h
src/thirdparty/gperftools-2.0/src/config.h.in~
src/thirdparty/gperftools-2.0/src/gperftools/tcmalloc.h
src/thirdparty/gperftools-2.0/src/stamp-h1
src/thirdparty/gperftools-2.0/src/windows/gperftools/tcmalloc.h
src/thirdparty/gperftools-2.0/stack_trace_table_test
src/thirdparty/gperftools-2.0/stacktrace_unittest
src/thirdparty/gperftools-2.0/system_alloc_unittest
src/thirdparty/gperftools-2.0/tcmalloc_and_profiler_unittest
src/thirdparty/gperftools-2.0/tcmalloc_both_unittest
src/thirdparty/gperftools-2.0/tcmalloc_debug_unittest
src/thirdparty/gperftools-2.0/tcmalloc_large_unittest
src/thirdparty/gperftools-2.0/tcmalloc_minimal_debug_unittest
src/thirdparty/gperftools-2.0/tcmalloc_minimal_large_unittest
src/thirdparty/gperftools-2.0/tcmalloc_minimal_unittest
src/thirdparty/gperftools-2.0/tcmalloc_unittest
src/thirdparty/gperftools-2.0/test-driver
src/thirdparty/gperftools-2.0/thread_dealloc_unittest
src/thirdparty/gperftools-2.0/Makefile.in
src/thirdparty/gperftools-2.0/aclocal.m4
src/thirdparty/gperftools-2.0/configure
src/thirdparty/gperftools-2.0/ltmain.sh
src/thirdparty/gperftools-2.0/m4/libtool.m4
src/thirdparty/gperftools-2.0/m4/ltoptions.m4
src/thirdparty/gperftools-2.0/m4/ltversion.m4
src/thirdparty/gperftools-2.0/m4/lt~obsolete.m4
src/thirdparty/gperftools-2.0/src/config.h.in

# ignore generated protobufs
generated_proto*/

Expand Down Expand Up @@ -239,9 +408,10 @@ src/unittests/testprocess/testprocess.exe
!src/lib/common/lgLcd.lib
!src/lib/common/libcurl.lib
!src/lib/common/libjpeg.lib
!src/lib/common/linux32/libSDL2-2.0.so.0
!src/lib/common/linux32/libSDL2_mixer.a
!src/lib/common/linux32/libcrypto.a
!src/lib/common/linux32/libcryptopp.a
!src/lib/common/ubuntu12_32/libcrypto.a
!src/lib/common/ubuntu12_32/libcryptopp.a
!src/lib/common/linux32/libcurl.a
!src/lib/common/linux32/libcurlssl.a
!src/lib/common/linux32/libjpeg.a
Expand Down
Binary file added game_clean/copy/bin/libsteam_api.so
Binary file not shown.
Binary file added game_clean/copy/bin/libsteamnetworkingsockets.so
Binary file not shown.
73 changes: 73 additions & 0 deletions game_clean/copy/hl2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#!/bin/bash

# figure out the absolute path to the script being run a bit
# non-obvious, the ${0%/*} pulls the path out of $0, cd's into the
# specified directory, then uses $PWD to figure out where that
# directory lives - and all this in a subshell, so we don't affect
# $PWD

GAMEROOT=$(cd "${0%/*}" && echo $PWD)

#determine platform
UNAME=`uname`
if [ "$UNAME" == "Darwin" ]; then
# Workaround OS X El Capitan 10.11 System Integrity Protection (SIP) which does not allow
# DYLD_INSERT_LIBRARIES to be set for system processes.
if [ "$STEAM_DYLD_INSERT_LIBRARIES" != "" ] && [ "$DYLD_INSERT_LIBRARIES" == "" ]; then
export DYLD_INSERT_LIBRARIES="$STEAM_DYLD_INSERT_LIBRARIES"
fi
# prepend our lib path to LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH="${GAMEROOT}"/bin:$DYLD_LIBRARY_PATH
elif [ "$UNAME" == "Linux" ]; then
# prepend our lib path to LD_LIBRARY_PATH
export LD_LIBRARY_PATH="${GAMEROOT}"/bin:$LD_LIBRARY_PATH
fi

if [ -z $GAMEEXE ]; then
if [ "$UNAME" == "Darwin" ]; then
GAMEEXE=hl2_osx
elif [ "$UNAME" == "Linux" ]; then
GAMEEXE=hl2_linux
fi
fi

ulimit -n 2048

# enable nVidia threaded optimizations
export __GL_THREADED_OPTIMIZATIONS=1

# and launch the game
cd "$GAMEROOT"

# Enable path match if we are running with loose files
if [ -f pathmatch.inf ]; then
export ENABLE_PATHMATCH=1
fi

# Do the following for strace:
# GAME_DEBUGGER="strace -f -o strace.log"
# Do the following for tcmalloc
# LD_PRELOAD=../src/thirdparty/gperftools-2.0/.libs/libtcmalloc_debug.so:$LD_PRELOAD

STATUS=42
while [ $STATUS -eq 42 ]; do
if [ "${GAME_DEBUGGER}" == "gdb" ] || [ "${GAME_DEBUGGER}" == "cgdb" ]; then
ARGSFILE=$(mktemp $USER.hl2.gdb.XXXX)
echo b main > "$ARGSFILE"

# Set the LD_PRELOAD varname in the debugger, and unset the global version. This makes it so that
# gameoverlayrenderer.so and the other preload objects aren't loaded in our debugger's process.
echo set env LD_PRELOAD=$LD_PRELOAD >> "$ARGSFILE"
echo show env LD_PRELOAD >> "$ARGSFILE"
unset LD_PRELOAD

echo run $@ >> "$ARGSFILE"
echo show args >> "$ARGSFILE"
${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} -x "$ARGSFILE"
rm "$ARGSFILE"
else
${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
fi
STATUS=$?
done
exit $STATUS
7 changes: 7 additions & 0 deletions game_clean/copy/start_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"

ARGS="+sv_pure 1 +maxplayers 32 +sv_lan 1"

"$(pwd)"/srcds_linux -game tf -insecure -console -nomaster ${ARGS} $@
7 changes: 7 additions & 0 deletions game_clean/copy/start_tf2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"

ARGS="-steam -game tf -insecure -novid -nojoy -nosteamcontroller -nobreakpad"

$HOME/.steam/bin32/steam-runtime/run.sh ${LAUNCH_PREFIX} "$(pwd)"/hl2.sh ${ARGS} $@
Loading