bspsrc icon indicating copy to clipboard operation
bspsrc copied to clipboard

map decompiling error

Open alvaius opened this issue 3 years ago • 3 comments

was trying to port a gmod map to SFM, didn't work so i tried decompiling the map on bspsource but it gave me this error:

[error] BspSource: Can't load F:\bspsrc_1.4.1\scpsl_map.bsp, caused by info.ata4.bsplib.BspException: Invalid or missing header at info.ata4.bsplib.BspFile.createBuffer(BspFile.java:223) 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)

anybody knows what's up?

alvaius avatar Jun 18 '22 14:06 alvaius

after making the file name "filename.bsp.zip", extract it from the archive and try again.

ByDexterTR avatar Aug 20 '22 18:08 ByDexterTR

Hard to say from just the error. My guess is that the file is somehow corrupted. You can test by trying to load the bsp in game and see if that works.

rihi avatar Feb 05 '23 02:02 rihi

I had the same problem. What worked for me was instead of using GMad Extractor to unpack the .gma files, I used the gmad.exe that comes with Garry's Mod to do that, then used bspsrc to decompile the bsp, and it worked.

ReformedPony avatar Oct 06 '23 07:10 ReformedPony