question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UtinyRipper.EndianStream.ReadByteArray() error

See original GitHub issue

Hello! I’m having several issues when trying to extract files from an game called “Crossfire” , made in unity for android. Some files works, but in example of this, i got the error:

General: Version[5.6.4p4] 'level62' General: System.Exception: Read 16593172 but expected 1056964608 em UtinyRipper.EndianStream.ReadByteArray() em UtinyRipper.Classes.Meshes.VertexData.Read(AssetStream stream) em UtinyRipper.Classes.Mesh.Read(AssetStream stream) em UtinyRipper.SerializedFiles.SerializedFile.ReadAsset(AssetStream stream, AssetInfo assetInfo, Int64 offset, Int32 size) em UtinyRipper.SerializedFiles.SerializedFile.ReadAsset(AssetStream stream, AssetEntry info, Int64 startPosition) em UtinyRipper.SerializedFiles.SerializedFile.ReadAssets(EndianStream stream, Int64 startPosition) em UtinyRipper.SerializedFiles.SerializedFile.Read(Stream baseStream, Action1 requestDependencyCallback) em UtinyRipper.SerializedFiles.SerializedFile.Load(String assetPath, Action1 requestDependencyCallback) em UtinyRipper.FileCollection.LoadSerializedFile(String filePath, String fileName) em UtinyRipper.GameStructure.Load(IEnumerable1 pathes) em UtinyRipper.Program.Load(IReadOnlyList1 args)

The file is this zip (Level.zip).

Thx for your attention 😃

level.zip

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
mafacacommented, Aug 18, 2018

Well, I checked apk you provided. It’s definitely modified version. I’m pretty sure that developers has Unity’s source code and they can modify assets format the way they want. That’s why UR can’t read file properly, because it only supports common structure. However if you really need I can send you modded version of UR that can read this format. But as I said before I’m not going to include this to main build because it’s related only for one specific game. Provide your email if you need this version.

1reaction
mafacacommented, Aug 18, 2018

First of all I need a link to the store for this game. I don’t understand what “Crossfire” do you mean. I know “CrossFire Legends” but it doesn’t contains file you provided. There was an issue in AS project and there were some files from this game. They were modified (had extra fields) by developers as I though. But after some research I found that original files don’t contains those extra fields. I checked file you provided and it’s very familiar with those I checked previously. Its structure doesn’t match to generic file structure. Maybe developers really change formats for some assets and distribute this modded version for some specific regions. I don’t know. Anyway if those files are modifies then I’m not going to support them. If you are talking about CFLegend upload akp file somewhere and give me the link, I want to check your version. If it isn’t CFLegens then give me the link to the store.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found