Skip to content

Asset path type is incorrectly used #1562

@zoli111

Description

@zoli111

When I try to launch the game with ./run game --modpacks base_hd I get this python error:

INFO [py] launching openage v0.4.1-1510-g7fe57bd71
INFO [py] compiled by GNU 13.2.1
Traceback (most recent call last):
  File "run.py", line 20, in init run
    main()
  File "/usr/lib/python3.11/site-packages/openage/__main__.py", line 171, in main
    return args.entrypoint(args, cli.error)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/openage/game/main.py", line 74, in main
    if api_export_required(asset_path):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/openage/convert/service/init/api_export_required.py", line 31, in api_export_required
    modpack_info = get_modpack_info(modpack_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/openage/convert/service/init/modpack_search.py", line 59, in get_modpack_info
    info("Modpack directory %s not found", modpack_dir.root.name)
                                           ^^^^^^^^^^^^^^^^
AttributeError: 'UnionPath' object has no attribute 'root'

I tested with II. Definitive Edition and the same thing happens.

When converting files, I get the same error as in #1557, but it seems converted files appear in their respective directories, maybe not all of them? I'm not sure if these two issues are connected, but I think it worth mentioning.

OS: Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: assetsInvolved with assets (images, sounds, ...)bugBehaving differently as it should behavelang: pythonDone in Python code

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions