Update update_offsets.py

This commit is contained in:
IMXNOOBX
2023-10-20 21:17:29 +02:00
committed by GitHub
parent 516b9f07f0
commit 667f193a2d
+5 -5
View File
@@ -28,12 +28,12 @@ if dest_data["build_number"] == int(build_number):
dest_data["build_number"] = int(build_number)
dest_data["dwBuildNumber"] = source_data["Engine2Dll"]["dwBuildNumber"]
dest_data["dwLocalPlayer"] = source_data["ClientDll"]["dwLocalPlayerPawn"]
dest_data["dwEntityList"] = source_data["ClientDll"]["dwEntityList"]
dest_data["dwViewMatrix"] = source_data["ClientDll"]["dwViewMatrix"]
dest_data["dwBuildNumber"] = source_data["Engine2Dll"]["dwBuildNumber"]["value"]
dest_data["dwLocalPlayer"] = source_data["ClientDll"]["dwLocalPlayerPawn"]["value"]
dest_data["dwEntityList"] = source_data["ClientDll"]["dwEntityList"]["value"]
dest_data["dwViewMatrix"] = source_data["ClientDll"]["dwViewMatrix"]["value"]
with open(dest_path, 'w') as dest_file:
json.dump(dest_data, dest_file, indent=4)
print("Offsets updated in the local file.") # We dont exit so we know that the game has been updated and that we have to commit the new offsets
print("Offsets updated in the local file.") # We dont exit so we know that the game has been updated and that we have to commit the new offsets