Caution
This software was created in educational purposes and it's against Valve's TOS.
Simple inventory manager for TF2SDK
- Generate the protobuf messages using the
./comp_proto.sh
script. - Generate and enter an venv using the
python -m venv .venv
andsource .venv/Scripts/activate
(Windows, Git-Bash) /source .venv/bin/activate
(Linux) commands. - Install required packages using
pip install -r requirements.txt
. - Add your SteamID and AccountID to the
scripts/player_info.json
file. You can get both of them using SteamDB. - Run a webserver using the
./run_webserver.sh
script.
- Open the tf_gc_client.cpp and tf_gc_server.cpp and add
return "http://127.0.0.1:8080/";
into beginning ofGetWebBaseUrl
functions. - Recompile client_tf and server_tf.
No, you can't. This software was written for local servers only.
No, this software is not reading/writing any of your TF2's inventory data. It's not even connected to Valve's GC.
It's very simple. See the CMsgSOCacheSubscribedSerializerTest.py
for various examples.
If you have any custom attributes and you want to get access to them using the attribute by class/name accessor you can just copy your items_game.txt to the scripts/items/
folder.
Everything else should work as intended.