Skip to content

Conversation

@Myknakryu
Copy link

Related Issue

None - ValveSoftware#715

Implementation

Include dedicated server libraries for Linux64, dedicated server buildscript

Screenshots

Checklist

  • No other PRs implement this idea.
  • This PR does not introduce any regressions.
  • I certify that this PR is my own entirely original work, or I have permission from and have attributed the relevant authors.
  • I have agreed to and signed this project's Contributor License Agreement.
  • This PR targets the tc2-mod branch.
  • This change has been filed as an issue.
  • No other PRs address this.
  • This PR is as minimal as possible.
  • This PR does not introduce any regressions.
  • This PR has been built and locally tested on at least one platform.
  • This PR has been tested on all platforms, on both a dedicated server and on a listen server.

Testing Checklist

Client Server Version
Windows
Linux V V 6.12.10-arch1-1

Caveats

To start server with access to inventory API, we need to start SteamAPI with runtime injection, packaged in zip is source code which performs injection with initialization of SteamAPI.
inject.zip
This is necessary since current version of code utilizes SteamHTTP which doesn't work unless SteamAPI is properly initialized. In the future explore potential of replacing SteamHTTP with curl.

Alternatives

Using client to host server

@CLAassistant
Copy link

CLAassistant commented Feb 23, 2025

CLA assistant check
All committers have signed the CLA.

sed -i 's|libtier0\.so|libtier0_srv.so|g' "$solution_out.ninja"
sed -i 's|libvstdlib\.so|libvstdlib_srv.so|g' "$solution_out.ninja"
sed -i 's|lvstdlib|lvstdlib_srv|g' "$solution_out.ninja"
sed -i 's|ltier0|ltier0_srv|g' "$solution_out.ninja"
Copy link

@ReplayCoding ReplayCoding Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels really hacky, is it possible to instead use the proper /dedicated option for VPC?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Darn i guess that would be easier just to copy every .a file in the /lib/common and /lib/public to have suffix _srv.a
still to run server properly, from testing now it's neccessary to have server libraries for libtier0 and libvstdlib otherwise random things start to break like ClientCommandKeyValues.

@Myknakryu
Copy link
Author

Closing in favour of #25

@Myknakryu Myknakryu closed this Feb 26, 2025
@Myknakryu Myknakryu deleted the tc2_dedicated_server branch February 27, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants