Comments (4)
I've replicated the error. The rec appears valid since it loads in DE.
from aoc-mgz.
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.
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.
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)
- Exception: Unpack Requires a Buffer of 24 Bytes HOT 3
- Error: unpack requires a buffer of 8 bytes HOT 5
- Unable to run any of the examples provided on the main page HOT 6
- construct.core.MappingError - Same error consistently HOT 2
- crash since v101.101.61591.0 - construct.core.MappingError: no decoding mapping for 8 HOT 2
- construct.core.MappingError: no decoding mapping for 8 HOT 1
- Parsing incorrect bytes when using summary snippet in README file HOT 4
- Unable to use JSON parser HOT 6
- collections.Hashable -> collections.abc.Hashable HOT 1
- RuntimeError: bad object parse HOT 11
- How to merge two games that share a common point? HOT 1
- Issue using parse_match() function in python 3.10 HOT 5
- how do you generate minimaps? HOT 2
- What is playback? HOT 2
- struct.error: unpack requires a buffer of 4 bytes HOT 1
- error: construct.core.PaddingError: subcon parsed more bytes than was allowed by length HOT 4
- RuntimeError: bad object parse HOT 2
- AI learning from recordings HOT 3
- Full summary isn't working HOT 5
- Consider add documentation? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aoc-mgz.