1lann / lol-replay

A collection of Go (golang) packages to record and play back League of Legends games from the spectator endpoint.
MIT License
72 stars 16 forks source link

Recording cant create new file #5

Open Soundofdarkness opened 6 years ago

Soundofdarkness commented 6 years ago

Hey , after fixing the current spectator url's , i tried using your program for recording games, but im permantely recieving this error : 2018/02/04 14:33:53 failed to read recording TR1_666986296.glr: seek recordings/TR1_666986296.glr: Es wurde versucht, den Dateizeiger vor den Anfang der Datei zu bewegen. The german part of it basically translates to : "Failed moving file pointer infront of the beginning of the file" The Error happens here

Edit: OS is windows , and im aware of it not being supported , but im pretty sure thats one of the only parts creating problems for it

1lann commented 6 years ago

Yeah, Windows is not really supported. If you remove the if statements on lines 116 and 117 in recording.go such that on any error, ErrMissingData is returned, that will probably fix it.

Soundofdarkness commented 6 years ago

Okay im going to try this ^^ Thank you 😄

Soundofdarkness commented 6 years ago

Okay , seems like it can record the files correctly now. Only issue im seeing now is that its while replaying just stuck on the last minute of the of the recording , and doesnt render any champ movement, even when scrolling back. Everything is just stuck in one position. Is that maybe a never version of the spectator system ?

It opens like this and thats about it: Image