tfausak / rattletrap

:car: Parse and generate Rocket League replays.
https://hackage.haskell.org/package/rattletrap
MIT License
150 stars 21 forks source link

Converting .replay file to .json #error "(user error)not enough bytes" #228

Closed harshitvyas98 closed 3 years ago

harshitvyas98 commented 3 years ago

i am trying to convent a replay file to json but it showing the error of not enough bytes file is attached MyReplay.zip

harshitvyas98 commented 3 years ago

this is the error image

tfausak commented 3 years ago

This doesn't look like a Rocket League replay. Is it? Rattletrap can only handle Rocket League replays, not anything built with Unreal Engine.

harshitvyas98 commented 3 years ago

This doesn't look like a Rocket League replay. Is it? Rattletrap can only handle Rocket League replays, not anything built with Unreal Engine.

yes, it is not a rocket league replay. it is from unreal engine Do you any way to decompress a replay file from unreal engine

tfausak commented 3 years ago

I don't know if it's possible to parse an Unreal Engine replay in general because the structure depends on the game/application that created it. That being said I'm sure many of the things are the same like 32-bit integers, strings, and so on.

harshitvyas98 commented 3 years ago

yeah, by the way, I did find this kaitai web IDE: https://fortnitereplaydecompressor.readthedocs.io/en/latest/overview/#kaitai-struct and https://ide.kaitai.io/# the does parse Fortnite replays to JSON and also unreal engine replay but the problem is: for unreal replay it only parses the header and not content

well, thank you for your response and if you find a way to decode unreal replay please, tell me

tfausak commented 3 years ago

I'm glad you found something. I'm unlikely to add general Unreal Engine support to Rocket League.