ata4 / bspsrc

A Source engine map decompiler
Other
700 stars 87 forks source link

Military Conflict are not decompiled by prop_static #187

Open MARK2580 opened 6 months ago

MARK2580 commented 6 months ago

At the moment, decompilation of all Military Conflict - Vietnam maps is not happening correctly. The map is completely missing all prop_static. Here's the log. bsp - https://drive.google.com/file/d/1JHfjexQuowdpPHrBlxujwIXi59SBOe8-/view?usp=sharing

23:22:11.989 WARN  Couldn't find static prop struct for appId 730, version 12, size 0
23:22:11.991 WARN  Falling back to static prop v4
23:22:11.991 WARN  An error occurred while trying to read lump sprp
java.lang.IllegalArgumentException: Illegal Capacity: -65536
    at java.util.ArrayList.<init>(Unknown Source) ~[?:?]
    at info.ata4.bspsrc.lib.io.DataReaderUtil.readChunks(DataReaderUtil.java:31) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.lib.io.lumpreader.StaticPropLumpReader.readStaticProps(StaticPropLumpReader.java:140) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.lib.io.lumpreader.StaticPropLumpReader.read(StaticPropLumpReader.java:59) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.lib.io.lumpreader.StaticPropLumpReader.read(StaticPropLumpReader.java:24) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.lib.BspFileReader.readAbstractLump(BspFileReader.java:766) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.lib.BspFileReader.readGameLump(BspFileReader.java:743) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.lib.BspFileReader.loadStaticProps(BspFileReader.java:258) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.lib.BspFileReader.loadAll(BspFileReader.java:81) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.decompiler.BspSource.decompile(BspSource.java:179) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.decompiler.BspSource.decompile(BspSource.java:128) ~[bspsrc.jar:?]
    at info.ata4.bspsrc.decompiler.BspSource.lambda$run$0(BspSource.java:94) ~[bspsrc.jar:?]
    at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source) [?:?]
    at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:?]
    at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) [?:?]
    at java.util.concurrent.ForkJoinPool.scan(Unknown Source) [?:?]
    at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:?]
    at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:?]
23:22:12.005 WARN  Lump LUMP_CLIPPORTALVERTS is empty