I’m trying to do this:
https://developer.valvesoftware.com/wiki/Env_projectedtexture/fixes
I’ve put in the code, following the directions to the best of my knowledge. But I’m getting some rather entertaining errors:
[code]1>c:\program files (x86)\steam\steamapps\sourcemods\five codebase\src\game\client\c_env_projectedtexture.cpp(170) : error C2181: illegal else without matching if
1>c:\program files (x86)\steam\steamapps\sourcemods\five codebase\src\game\client\c_env_projectedtexture.cpp(228) : error C2601: ‘C_EnvProjectedTexture::Simulate’ : local function definitions are illegal
1> c:\program files (x86)\steam\steamapps\sourcemods\five codebase\src\game\client\c_env_projectedtexture.cpp(126): this line contains a ‘{’ which has not yet been matched
1>c:\program files (x86)\steam\steamapps\sourcemods\five codebase\src\game\client\c_env_projectedtexture.cpp(234) : fatal error C1075: end of file found before the left brace ‘{’ at ‘c:\program files (x86)\steam\steamapps\sourcemods\five codebase\src\game\client\c_env_projectedtexture.cpp(126)’ was matched
1>c:\program files (x86)\steam\steamapps\sourcemods\five codebase\src\game\client\spritemodel.cpp(442) : error C3861: ‘IsBIK’: identifier not found[/code]
Most of these seem to be in the env_projectedtexture.cpp, since I was modifying it to run the tutorial’s code.
I’m a bit of a novice at this coding thing -_-;;
Anyone want to give this a punt, or see what I’m doing wrong?