Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some lumps are overlapping (surf_gekar) #66

Open
dbampersand opened this issue Aug 3, 2024 · 0 comments
Open

Some lumps are overlapping (surf_gekar) #66

dbampersand opened this issue Aug 3, 2024 · 0 comments

Comments

@dbampersand
Copy link
Contributor

When loading surf_gekar.bsp for CS:S (https://filebin.net/i227rn0ll2y9cggh), the map fails to load, with an error of "Some lumps are overlapping."

There appears to be nothing wrong with the code to parse as lumps do overlap in this file, according to the header. The bad lump is Worldlights, overlapping by 2 bytes with Entities:

Read lump Entities (0) offset: 23414781 length: 127122 (end = 23541903)
Read lump Worldlights (15) offset: 23541901 length: 21208

However - when removing CheckOverlapping(), all the entities parse correctly, and the lighting still looks correct ingame, which leads me to believe that files with overlapping lumps might be okay to just continue (and print a warning to console) rather than stopping inside ReadHeader(), but I'm not sure if this generalises to other maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant