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

Cannot load older maps #41

Open
missing233 opened this issue Feb 18, 2019 · 4 comments
Open

Cannot load older maps #41

missing233 opened this issue Feb 18, 2019 · 4 comments
Labels
needsinfo Requires additional information

Comments

@missing233
Copy link

missing233 commented Feb 18, 2019

CSO2 has updated its engine.

When I load an old map(UC_MUSEUM.bsp eg.) game crashed.
Console:
Host_Error: Mod_LoadCubemapSamples: funny lump size in maps/UC_MUSEUM.bsp
Crash message dialog:
MapEntity_ParseAllEntities: found LZMAG when expecting {

So how to fix these old maps?

@L-Leite L-Leite added filesystem needsinfo Requires additional information labels Feb 18, 2019
@L-Leite
Copy link
Owner

L-Leite commented Feb 25, 2019

They updated engine and didn't update the old maps (aim_dust, duel_diner) to be compatible with it. In TW client those maps were actually removed from files, but in KR version they are still there as a rudiment. We can't do anything without software that can recompile those maps. And there are not that many broken maps to fix, so I don't think anyone will create software like this.

The dcubemapsample_t structure between old and new maps is different. The size of it in the old maps is 160, and in the new maps it's 164.

I think if you add 4 null bytes in the end of an old map's dcubemapsample_t the game will be able to load it

@L-Leite L-Leite changed the title Fix old map Cannot load older maps Feb 25, 2019
@missing233
Copy link
Author

@Ochii
Additionally,how to add custom maps?
Such as gm_flatgrass from Garry's Mod.

@L-Leite
Copy link
Owner

L-Leite commented Feb 26, 2019

@Ochii
Additionally,how to add custom maps?
Such as gm_flatgrass from Garry's Mod.

You can't at the moment, the map headers are different

@L-Leite
Copy link
Owner

L-Leite commented Feb 26, 2019

For each dcubemapsample_t, add 4 bytes at the end of the lump

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

No branches or pull requests

2 participants