repkg icon indicating copy to clipboard operation
repkg copied to clipboard

Is there a way to read a larger file, say 30MB?

Open Heluojiang opened this issue 6 months ago • 1 comments

PS D:\Tools\Windows\RePKG_1> .\RePKG.exe extract D:\scene.pkg -o ./output

Extracting package: D:\scene.pkg

未经处理的异常: System.Exception: Size cannot be negative 在 RePKG.Application.Extensions.ReadStringI32Size(BinaryReader reader, Int32 maxLength) 在 RePKG.Application.Package.PackageReader.ReadEntries(List1 list, BinaryReader reader) 在 RePKG.Application.Package.PackageReader.ReadFrom(BinaryReader reader) 在 RePKG.Command.Extract.ExtractPkg(FileInfo file, Boolean appendFolderName, String defaultProjectName) 在 RePKG.Command.Extract.Action(ExtractOptions options) 在 CommandLine.ParserResultExtensions.WithParsed[T](ParserResult1 result, Action`1 action) 在 RePKG.Program.Main(String[] args) PS D:\Tools\Windows\RePKG_1>

scene.zip

Heluojiang avatar Jun 22 '25 11:06 Heluojiang

Oh I also met the maximum size problem but in an extract of a .tex file. Hope to read larger file in future days.

Reading: D:\Download\repkg\A\tex\001.tex Failed to read texture RePKG.Application.Exceptions.UnsafeTexException: Unsafe TEX detected, reason: Mipmap byte count exceeds maximum size: 540698552/250000000 在 RePKG.Application.Texture.TexImageReader.ReadBytes(BinaryReader reader) 在 RePKG.Application.Texture.TexImageReader.ReadMipmapV2And3(BinaryReader reader) 在 RePKG.Application.Texture.TexImageReader.ReadFrom(BinaryReader reader, ITexImageContainer container, TexFormat texFormat) 在 RePKG.Application.Texture.TexImageContainerReader.ReadFrom(BinaryReader reader, TexFormat texFormat) 在 RePKG.Application.Texture.TexReader.ReadFrom(BinaryReader reader) 在 RePKG.Command.Extract.LoadTex(Byte[] bytes, String name) Done

Lofterm avatar Dec 01 '25 17:12 Lofterm