Compare commits
16
Commits
8302541d1a
...
0fb4deb382
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fb4deb382 | ||
|
|
52f087c7a1 | ||
|
|
f8fb642252 | ||
|
|
50468d45d0 | ||
|
|
a21df75c54 | ||
|
|
134ab268ff | ||
|
|
1be4554063 | ||
|
|
3d93c4b112 | ||
|
|
2004e0ba39 | ||
|
|
e0cfb65964 | ||
|
|
d8ecc9333c | ||
|
|
30a1456e6f | ||
|
|
dd23699fb8 | ||
|
|
5a33357416 | ||
|
|
ad6f9facbf | ||
|
|
0d3e39e87b |
+2
-1
@@ -6,8 +6,9 @@
|
||||
# Ignore all the offsets.json files but the one in the folder offsets for the auto updater
|
||||
offsets.json
|
||||
config.json
|
||||
!offsets/offsets.json
|
||||
typos
|
||||
!offsets/offsets.json
|
||||
.vscode
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"build_number": 14121,
|
||||
"dwBuildNumber": 6226916,
|
||||
"dwEntityList": 30473192,
|
||||
"dwLocalPlayer": 29273784,
|
||||
"dwPlantedC4": 31667600,
|
||||
"dwViewMatrix": 31645936,
|
||||
"build_number": 14128,
|
||||
"dwBuildNumber": 6231012,
|
||||
"dwEntityList": 30489832,
|
||||
"dwLocalPlayer": 29290280,
|
||||
"dwPlantedC4": 31681512,
|
||||
"dwViewMatrix": 31663056,
|
||||
"m_ArmorValue": 10060,
|
||||
"m_bIsDefusing": 10010,
|
||||
"m_flC4Blow": 4496,
|
||||
@@ -22,7 +22,7 @@
|
||||
"m_szName": 1824,
|
||||
"m_vOldOrigin": 5536,
|
||||
"m_vecAbsOrigin": 208,
|
||||
"dwLocalPlayerController": 31562448,
|
||||
"dwLocalPlayerController": 31579160,
|
||||
"m_hController": 5560,
|
||||
"m_iszPlayerName": 1768
|
||||
}
|
||||
@@ -1,25 +1,20 @@
|
||||
import sys
|
||||
import requests
|
||||
import json
|
||||
import re
|
||||
import os
|
||||
import json
|
||||
import requests
|
||||
|
||||
urls = {
|
||||
"commits": "https://api.github.com/repos/a2x/cs2-dumper/commits",
|
||||
"offsets": "https://raw.githubusercontent.com/a2x/cs2-dumper/main/output/offsets.json",
|
||||
"info": "https://github.com/a2x/cs2-dumper/raw/refs/heads/main/output/info.json",
|
||||
"offsets": "https://github.com/a2x/cs2-dumper/raw/refs/heads/main/output/offsets.json",
|
||||
"client_dll": "https://github.com/a2x/cs2-dumper/raw/refs/heads/main/output/client_dll.json",
|
||||
}
|
||||
|
||||
def get_build_number():
|
||||
response = requests.get(urls["commits"])
|
||||
response = requests.get(urls["info"])
|
||||
if response.status_code == 200:
|
||||
commit_data = response.json()
|
||||
if commit_data:
|
||||
for commit in commit_data:
|
||||
commit_message = commit['commit']['message']
|
||||
build_match = re.search(r'\bGame [Uu]pdate \((\d+)(?: \(\d+\))?\b', commit_message)
|
||||
if build_match:
|
||||
return int(build_match.group(1))
|
||||
game_info = response.json()
|
||||
if game_info:
|
||||
version = game_info['build_number']
|
||||
return int(version)
|
||||
return 0
|
||||
|
||||
def get_raw_file(url):
|
||||
|
||||
+1
Submodule src/external/AsyncLogger added at 25b5ed31b3
+1
Submodule src/external/curl added at 217f0e4d59
+1
Submodule src/external/imgui added at 1d942eb6c9
+1
Submodule src/external/json added at af524ab666
Reference in New Issue
Block a user