SamVanheer / HalfLifeAssetManager

Half-Life Asset Manager, a tool to view and edit Half-Life 1 models
Other
237 stars 29 forks source link

Xash support #281

Closed Nord1cWarr1or closed 1 year ago

Nord1cWarr1or commented 1 year ago

Why did you disable support for models compiled by the Xash compiler? They are fully compatible with GoldSrc.

Nord1cWarr1or commented 1 year ago

Although no, I misspoke. I'm talking about models for GoldSrc CS/HL (not for Xash exactly), but compiled using the Xash compiler.

SamVanheer commented 1 year ago

Asset Manager strictly follows the Studiomodel version 10 specification. Xash models re-purpose unused data in the specification for other things which caused the program to crash when some Xash models were loaded. Since saving a Xash model also strips anything that's not part of the specification i decided to instead have the model forwarded to Xash model viewer.

I can change it so that Xash models can load and the unused data is ignored instead of being loaded correctly but then there's a need to warn users if they're about to save a Xash model since it'll lose that extra data.

Adding support for Xash models directly isn't an option because the point of this program is to view and edit Half-Life models, not flavors used by specific mods. That's what Xash's own model viewer is for.

SamVanheer commented 1 year ago

I've reworked Xash model support to allow Xash models to load. You can choose whether to redirect to Xash model viewer and if you save a Xash model it'll warn about potential loss of data.

You can try the changes out in the latest automated build once it has completed: https://github.com/SamVanheer/HalfLifeAssetManager/actions/runs/6440725570