1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# -*- coding: utf-8 -*- ## Copyright 2019 Trevor van Hoof and Jan Pijpers. ## Licensed under the Apache License, Version 2.0 ## Downloaded from https://janpijpers.com or https://gumroad.com/janpijpers ## See the license file attached or on https://www.janpijpers.com/script-licenses/ ''' Name: exportXboxSaveDataToDisk Description: script that exports the save data from your connected xbox to disk you do have to be in xbox developer mode I think. also you need to have the xbox xdk more info about the command here https://docs.microsoft.com/en-us/gaming/xbox-live/storage-platform/connected-storage/connected-storage-xb-storage ''' ## Xbox quick save script import os import datetime import subprocess SCID = "<your personal configuration identifier>" USER_ACCOUNT = "an@example.com" def exportSaveGame( savePath ): saveBin = r'"C:\Program Files (x86)\Microsoft Durango XDK\bin\xbstorage.exe" ' command = 'export "{}" /msa:{} /f /scid:{}'.format(savePath, USER_ACCOUNT, SCID) print subprocess.check_output(saveBin + command ) ## Ask the user for a file name description = raw_input("Write a filename for the savegame:") ## construct path baseDirectory = r"C:\saveGames" fullFileName = "{}_{}_xboxSaveGame.xml".format(description, datetime.datetime.now().date()) fullPath = os.path.join(baseDirectory, fullFileName) ## export the save game exportSaveGame(fullPath) |