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
#!/usr/bin/env python | |
# TO DO: | |
# - Manage multiple sites in TCInfo (low priority) | |
# cspell: ignore CACHEFILE NODEMAP teslapy powerwall WHTOKWH QUARTERHOUR mcbirse | |
import json | |
import sys | |
from enum import Enum |
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
# utilities for extracting Steam parameters from the windows registry. | |
# Replaced in rsrtools with vdf processing routines. | |
# Not used. Delete in later version. | |
def steam_registry_users() -> List[str]: | |
"""Return list[str] of Steam account ids found in the registry.""" | |
ret_val = list() | |
try: | |
with winreg.OpenKey( |
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
""" This is a quick and dirty tool to merge two Rocksmith Profiles. | |
It is very hacky and not terribly safe. Use with care. | |
Merging is done by choosing the arrangement with the highest "Learn a song" play count. | |
For a given arrangement and play count: | |
If both files have the same play count, nothing changes. | |
If the master file has a higher play count than the merge file, nothing changes. | |
If the merge file has a higher play count, the learn a song data, the arrangement | |
stats, and the score attack data are copied to the master file. |
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
#! /usr/bin/env python | |
"""Quick and dirty arrangement finder for Rocksmith profile. | |
Read only function, non-desctructive. | |
- Loads json file specified in json file. | |
- Finds arrangment ids in the four locations specfied in the items list. | |
- Deletes the items list objects. | |
- Walks the dictionary looking for other places arrangement ids occur. |