sheilan102 / C2M

Tool to export maps from COD Games
GNU General Public License v3.0
46 stars 9 forks source link

BO4: Unhandled exception when loading zm maps #20

Closed Kenshin9977 closed 2 years ago

Kenshin9977 commented 3 years ago

I get an error when loading some zombie maps from Black Ops 4. I get the same error with:

Found supported game: Call of Duty: Black Ops 4
Parsing CASC Storage...
Parsing map data...

Parsing surface data...
Parsed surfaces in 14.72 seconds.
Parsing model data...
An unhandled exception has occured:
System.IO.EndOfStreamException: Impossible de lire au-delà de la fin du flux.
   à System.IO.__Error.EndOfFile()
   à System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   à System.IO.BinaryReader.ReadSingle()
   à C2M.BlackOps4.ReadXModel(ProcessReader reader, BO4XModel model, CoDMap codmap, Action`1 printCallback) dans C:\work __ dev\C2M_v2\C2M\Games\BlackOps4.cs:ligne 484
   à C2M.BlackOps4.ReadStaticModels(ProcessReader reader, Int64 address, Int32 count, CoDMap codmap) dans C:\work __ dev\C2M_v2\C2M\Games\BlackOps4.cs:ligne 422
   à C2M.BlackOps4.ExportBSPData(Process process, GameInfo gameInfo, Action`1 printCallback) dans C:\work __ dev\C2M_v2\C2M\Games\BlackOps4.cs:ligne 244
   à C2M.HuskyUtil.LoadGame(Action`1 printCallback) dans C:\work __ dev\C2M_v2\C2M\HuskyUtil.cs:ligne 194
sheilan102 commented 2 years ago

Fixed in this version https://www.knannou.com/c2m