kwsch/FlatCrawler

c# version issues

Closed this issue · 3 comments

2wong commented

I was trying to reverse the flatbuffers, and I saw your project, it was so helpful to me that it makes it possible to use it without the source protocol files. Similar to proto-raw_data. But there is one point that the net6 version is too high for me to use. Can you give me a lower version to use, thank you

kwsch commented

You can always try downgrading the net6.0 references in the csproj and try recompiling. Not sure what version you're trying to target.

Visual Studio 2022 Community supports net6.0, but I suppose changing to net5.0 will still compile.

2wong commented

You can always try downgrading the net6.0 references in the csproj and try recompiling. Not sure what version you're trying to target.

Visual Studio 2022 Community supports net6.0, but I suppose changing to net5.0 will still compile.

Thanks for your reply, I solved the above problem. But when I try to parse the binary, I have some problems. I want to parse it into human readable json , which function should I call please?

kwsch commented

Thanks for your reply, I solved the above problem. But when I try to parse the binary, I have some problems. I want to parse it into human readable json , which function should I call please?

This program does not automatically guess the types of each field, or the amount of fields for each object. The program just lets you manually crawl the data so you can document the data structure yourself, without having to juggle the raw data.

Once you've documented the schema sufficiently, there are other tools. The flatc.exe has command line arguments to accept a binary, a schema, and will write a json for you. I've also used FlatSharp to read and write documented FlatBuffers in other projects like pkNX.