Example #1
0
def run():
    config = get_global_config()
    config.settings.SkipInstall = True

    arkman = ArkSteamManager(config=config)
    arkman.ensureSteamCmd()
    arkman.ensureGameUpdated()
    arkman.ensureModsUpdated(config.mods)

    initialise_hierarchy(arkman, config)

    for result in find_matches():
        output_result(result)
Example #2
0
def collect_asset(assetname: str) -> UAsset:
    config = get_global_config()
    config.settings.SkipInstall = True
    arkman = ArkSteamManager(config=config)

    if args.ovi:
        # Hierarchy is needed for proxies in the Oviraptor target.
        arkman.ensureSteamCmd()
        arkman.ensureGameUpdated()
        arkman.ensureModsUpdated(config.mods)
        initialise_hierarchy(arkman)

    loader = arkman.getLoader()
    # config = get_global_config()

    assetname = find_asset(args.assetname, loader)
    if not assetname:
        print("Asset not found")
        sys.exit(1)

    return loader[assetname]
Example #3
0
from ue.asset import ExportTableItem, ImportTableItem, UAsset
from ue.gathering import gather_properties
from ue.hierarchy import inherits_from
from ue.loader import AssetLoader, AssetNotFound

basicConfig(level=INFO)

logger = getLogger(__name__)
logger.addHandler(NullHandler())

config = get_global_config()
config.settings.SkipInstall = True
# config.mods = tuple('111111111,895711211,839162288'.split(','))

arkman = ArkSteamManager(config=config)
arkman.ensureSteamCmd()
arkman.ensureGameUpdated()
arkman.ensureModsUpdated(config.mods)
loader = arkman.getLoader()

print()
print('Interactive session ready:')
print('  arkman   : ArkSteamManager initialised in dry-run mode')
print('  loader   : Asset loader')
print('  config   : A safe default config')
print()
print('Restrict managed mods for this session:')
print('>>> config.mods = tuple(\'111111111\',\'895711211\',\'839162288\')')
print()
print('To get access to the fully cached asset hierarchy:')
print('>>> initialise_hierarchy(arkman)')