This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Save file is typically located in C:\\Users\{UserName}\AppData\Local\Back4Blood\Steam\Saved\SaveGames\PlayerProfileSettings.sav | |
Example command: python3 back_4_blood_savefile_parser_for_zwat_progression.py < PlayerProfileSettings.sav > output.csv | |
""" | |
import json | |
save = json.loads(input()) | |
completed = save['onlineDataCache']['stats']['missionsCompleted_Secured']['keys'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dO3AFaqEeP5tfG2pzajiAbPcfnHvOKfbKmIQqAfjiSJurbdjvukxoi1SeeBjbjRdvuO1ufiMtQOiJIkQ9KkuYPOImPQq0MsfL0Osfv4vaf11f1UsfQy6uwwQqvDqb0Uqa1cbcRlvurZlvuIHbeDJGICmGQjIOYYeiUickpdr0gPcvttqQrQcvCnbOvQuBtqvZuqLVHOWorQghII(jvOCoGsMCcsT5ebJobv7RkOSuubZtqspf09ubNAa0(qfYRsfQYTQcQowQqPwfvaCGbs9GvOkxyfk1hwHkDIQaYlwHQ6Jcs8JvOWjru6jbf4kPII6lPIQ6MiaVjvOWDsfvAOiQAWspQkeUuvqmvaxLkqTvurP6Rca)QkiDwurv2l01QcK(wQqLo3ku07ck0FrL(xva1HvYIra5XkAYi5YQAZi0NPsJgPCAuwnQiVwGKzlYTrv7MQ(TknCv0dfOwUcpxOphuQthuqBxq57QqgpIq3cbAeCeaHleanegryqiWbHadobMmripcPqifcGq3X9ieYbYgkhhaesIogrIX3qhNmcF4dc4KmGKradpzaozcsWk0ircgAYeHK6yejgFdDCcg(qtYqtMbHmijzqgGm0Gv4bNmrIem0beHRPXc7bgmx3FqaxQhPdses7zU0m0XdpzeWagAWdF4dcibRGeAWkiKjsKGHMmry6UOqaeAR07neaH85KXqa0qdHZ0kgraegzE30JqYhy4cKCKLoAiKIrKiBMtgPiac5ZjJHaOHgchR5JaiKpNmgcGgAiK4AASRhbqiFozmean0q4zyN2k9EdbqiFozmean0qyo(CNPvmIqBKFeoUPhbqiFozmean0qdHlpJFzpcceoEx21dq65Jqks9lE20DCZNiK5zg35L)m92tH0bhHpjEU8upfcceYOqi5xjo8ghUgcpIrz0q6Gdoc9zEGbZ19hrKo4iCrrXm21VsCTbZ19hreaneg)erYFzEdHHJWCCa0q4ebq6GJaim7TbZ19hiacN5OD5riXSFASRx1zN0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
detectMobile($_SERVER['HTTP_USER_AGENT']); | |
function detectMobile($agent) | |
{ | |
if (strpos(strtolower($agent), 'mobile') !== false) { | |
if(preg_match("/(iPhone|iPod|iTunes|iPad)/i", $agent)) | |
echo 'ios'; | |
else if (stripos($agent,'android') !== false) |