Code Monkey home page Code Monkey logo

Comments (4)

happyleavesaoc avatar happyleavesaoc commented on August 28, 2024

I've replicated the error. The rec appears valid since it loads in DE.

from aoc-mgz.

Skazu avatar Skazu commented on August 28, 2024

I think this issue was caused because there was an ai involved in the match.

Can you try again parsing the match and verify if the error still exists? The latest pull request should have solved it, so please make sure to install aoc-mgz from latest master.

from aoc-mgz.

denniske avatar denniske commented on August 28, 2024

I am getting the following error now for AgeIIDE_Replay_41599731.zip

ValueError: 130 is not a valid Action

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/denniskeil/Projects/aoc-mgz/mgz/summary/__init__.py", line 81, in __init__
    self._process_body()
  File "/Users/denniskeil/Projects/aoc-mgz/mgz/summary/__init__.py", line 103, in _process_body
    operation, payload = fast.operation(self._handle)
  File "/Users/denniskeil/Projects/aoc-mgz/mgz/fast.py", line 262, in operation
    return op_type, action(data)
  File "/Users/denniskeil/Projects/aoc-mgz/mgz/fast.py", line 204, in action
    action_type = Action(action_id)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/enum.py", line 309, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/enum.py", line 600, in __new__
    raise exc
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/enum.py", line 584, in __new__
    result = cls._missing_(value)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/enum.py", line 613, in _missing_
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 130 is not a valid Action

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 58, in <module>
    summary = Summary(data)
  File "/Users/denniskeil/Projects/aoc-mgz/mgz/summary/__init__.py", line 84, in __init__
    raise RuntimeError("invalid mgz file: {}".format(e))
RuntimeError: invalid mgz file: 130 is not a valid Action

from aoc-mgz.

happyleavesaoc avatar happyleavesaoc commented on August 28, 2024

Fixed in 632352c. We detect and register but don't parse these yet. If we look at the rec file maybe we'll see what these new DE actions are.

ID    Name                     Count
----  ---------------------  -------
0x82  DE_UNKNOWN_130            4885
0x6d  DE_UNKNOWN_109             353
0x25  DE_UNKNOWN_37              305
0x23  DE_UNKNOWN_35               95
0x29  DE_UNKNOWN_41               38
0x27  DE_UNKNOWN_39                3

from aoc-mgz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.