Skip to content

Some difs fail to set itr.dif_props.start_time because initialPosition is invalid #14

@MBCollector672

Description

@MBCollector672

Traceback:

Python: Traceback (most recent call last):
  File "~\io_dif\__init__.py", line 289, in execute
    return import_dif.load(context, **keywords)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\io_dif\import_dif.py", line 529, in load
    itr.dif_props.start_time = int(mover.properties.h.get("initialPosition", 0))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '0 0 0'

It seems some difs have a weirdly set initialPosition value. Difs I've found that are affected by this issue are advent5.dif, theForce.dif, MM1pathfinder.dif, and SecretSkillsLevel.dif.

Mission links: Invisible Force, December 5: 9-gem puzzle with 8 pieces, Master of Pathfinding, Secret Skills

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions