Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
SteamDB-Tracker committed Aug 9, 2024
0 parents commit 241bc7b
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text eol=lf

*.gif binary
*.png binary
*.jpg binary

14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Protobufs/google/
.support/
*staged_*
*.dylib
*.dll
*.so
*.vpk
*.vpk.manifest.txt
*.swf
*.pbin
*.bsp
*.bin
exceptions.txt

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Game Tracker: Deadlock

Tracking things, so you don't have to.

[See readme in main GameTracking repository for more information on how files are tracked.](https://github.com/SteamDatabase/GameTracking#readme)

## Join our Discord

[![Join our Discord](https://discord.com/api/guilds/467730051622764565/embed.png?style=banner2)](https://steamdb.info/discord/)
36 changes: 36 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

cd "${0%/*}"
. ../common.sh

echo "Processing CS2..."

ProcessDepot ".so"
ProcessDepot ".dll"
ProcessVPK

while IFS= read -r -d '' file
do
echo " > $file"

# When updating vpk_extensions, also update "vpk:..." in GameTracking/files.json
~/ValveResourceFormat/Decompiler/bin/Release/linux-x64/publish/Decompiler \
--input "$file" \
--output "$(echo "$file" | sed -e 's/\.vpk$/\//g')" \
--vpk_cache \
--vpk_decompile \
--vpk_extensions "txt,lua,kv3,db,gameevents,vcss_c,vjs_c,vts_c,vxml_c,vsndevts_c,vsndstck_c,vpulse_c,vdata_c" \
|| echo "Decompiler failed"
done < <(find . -type f -name "pak01_dir.vpk" -print0)

while IFS= read -r -d '' file
do
sed -i '/\/\/# sourceMappingURL=/d' "$file"
done < <(find . -type f -name "*.js" -print0)

ProcessToolAssetInfo
FixUCS2

CreateCommit "$(grep "ClientVersion=" game/csgo/steam.inf | grep -o '[0-9\.]*')" "$1"

echo "Done"

0 comments on commit 241bc7b

Please sign in to comment.