Hey, wanting to put together a new themed kit for a custom class but running into a problem where new surface types aren't being added to the enum/array of available surface types.
Any time I try to access my new surface type suing the CreateSurface function, it throws me this lovely error:
Surface -2 is out of range!
Category: Code
Count: 1
Timestamp: 05-10-2017 10:49:02:560
Function: eoc::GetSurfaceStateFromType
Location: EoCShared\Shared\SurfaceTypes.cpp (227)
I assume this is because there's a static array of surface types defined in the surfacetypes there, but maybe I'm just doing something wrong.
I've created a new surfacetype in the RootTemplates and defined all of the components that it seems like I should need, including using my new custom Status type for the effect of walking on the surface, but the system for surfaces is a bit opaque.
Any help would be appreciated, thanks!