Closed IAmAbszol closed 5 years ago
I am seeing this as well on the Pound data.
@vladfi1 Glad Im not the only one but trying to find documentation on file changes is like findin a needle in a haystack
Thanks for the report. The issue is caused by a change in Slippi 2.0.0. I plan to release a fix today.
@IAmAbszol this stuff is documented on the Replay File Spec wiki page. It's linked from https://github.com/project-slippi/project-slippi, but the link is easy to miss.
@hohav How likely would it be to have a live file streaming option? I see that your game.py uses ubjson which requires the file to be completely finished. I was thinking of splicing the datastream doing it myself but didnt want to intrude on anything you might be in the midst of doing. That page you provided will help a ton as well.
@IAmAbszol I'm not working on anything in that area right now— the current file format isn't great for streaming, for the reason you mentioned. I'm sure something could be hacked together, I just don't have much appetite for implementing that.
I remember chatting with Fizzi about possible alternative file formats, but AFAIK nothing came of that.
Thanks for the report. The issue is caused by a change in Slippi 2.0.0. I plan to release a fix today.
@IAmAbszol this stuff is documented on the Replay File Spec wiki page. It's linked from https://github.com/project-slippi/project-slippi, but the link is easy to miss.
Has this issue been addressed? I'm running into this issue still unfortunately (with the same symptoms as above)
Thanks! This is a great tool, I'm really excited to get started
Python Version: 3.6.8 Slippi Version: 1.2.0
How to reproduce
Error
The error resides within the event.py line 192. The method variable is of type int with value 2 which doesn't match to Methods 0 or 3 being Inconclusive or Conclusive (Respectfully).
Temporary Fix I haven't played with Python's struct pack/unpack functions too much but from what I gather, the 2 being returned has something to do with how the file was packed in the first place. Thus I further assume that the creator of the Slippi file has changed it's packing parameters?
Source(s): API and example
Therefore, changing the method variable from 2 to 3 since possibly 0 could still be used to solve the issue though I felt grimy for doing so.
Final code result within event.py Before
After