ata4 / bspsrc

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

Error I received while decompiling a map called gm_litecity #104

Closed Ruskiius closed 2 years ago

Ruskiius commented 4 years ago

[error] BspSource: Can't load C:\Users\(myname)\OneDrive\Desktop\litecity\litecity_b13.bsp, caused by info.ata4.bsplib.BspException: Unknown file ident: 340808514 (BSP) at info.ata4.bsplib.BspFile.createBuffer(BspFile.java:286) at info.ata4.bsplib.BspFile.load(BspFile.java:118) at info.ata4.bsplib.BspFile.load(BspFile.java:180) at info.ata4.bspsrc.BspSource.decompile(BspSource.java:107) at info.ata4.bspsrc.BspSource.run(BspSource.java:72) at info.ata4.bspsrc.gui.BspSourceFrame$4.run(BspSourceFrame.java:359)

Ruskiius commented 4 years ago

I got this when I tried to decompile a different map too. [error] BspSource: Can't load C:\Users\(my name)\OneDrive\Desktop\locality\locality.bsp, caused by info.ata4.bsplib.BspException: Unknown file ident: 340808514 (BSP) at info.ata4.bsplib.BspFile.createBuffer(BspFile.java:286) at info.ata4.bsplib.BspFile.load(BspFile.java:118) at info.ata4.bsplib.BspFile.load(BspFile.java:180) at info.ata4.bspsrc.BspSource.decompile(BspSource.java:107) at info.ata4.bspsrc.BspSource.run(BspSource.java:72) at info.ata4.bspsrc.gui.BspSourceFrame$4.run(BspSourceFrame.java:359)

rihi commented 4 years ago

As far as I know this is an issue with third party gmad extractors. The file is missing its first byte. Either open the map in a texteditor and add a 'V' at the beginning or extract the gma again, using the gmad.exe bundled with garrysmod.

Ruskiius commented 4 years ago

Okay, thank you. I will try that.

rihi commented 2 years ago

I'm closing this issue, as it seems to have been caused by a third party rather than bspsrc. If you still have problems, feel free to comment and I'll have another look at the problem.