davewx7 / citadel

A turn based strategy game based on the Anura engine
Other
97 stars 25 forks source link

Errors in standard output #202

Open Szunti opened 6 years ago

Szunti commented 6 years ago

These are the errors I got while starting the game:

Shaders related:

I have an intel GPU that is only capable of OpenGL 2.1.

ERROR: ShadersOGL.cpp:894 : Error compiling shader(card_shadow_fs): 0:21(16): error: no matching function for call to `max(int, float)'; candidates are:
0:21(16): error:    float max(float, float)
0:21(16): error:    vec2 max(vec2, float)
0:21(16): error:    vec3 max(vec3, float)
0:21(16): error:    vec4 max(vec4, float)
0:21(16): error:    vec2 max(vec2, vec2)
0:21(16): error:    vec3 max(vec3, vec3)
0:21(16): error:    vec4 max(vec4, vec4)
0:21(16): error:    int max(int, int)
0:21(16): error:    ivec2 max(ivec2, int)
0:21(16): error:    ivec3 max(ivec3, int)
0:21(16): error:    ivec4 max(ivec4, int)
0:21(16): error:    ivec2 max(ivec2, ivec2)
0:21(16): error:    ivec3 max(ivec3, ivec3)
0:21(16): error:    ivec4 max(ivec4, ivec4)
0:22(36): warning: `ratio' used uninitialized
0:24(16): error: no matching function for call to `max(int, float)'; candidates are:
0:24(16): error:    float max(float, float)
0:24(16): error:    vec2 max(vec2, float)
0:24(16): error:    vec3 max(vec3, float)
0:24(16): error:    vec4 max(vec4, float)
0:24(16): error:    vec2 max(vec2, vec2)
0:24(16): error:    vec3 max(vec3, vec3)
0:24(16): error:    vec4 max(vec4, vec4)
0:24(16): error:    int max(int, int)
0:24(16): error:    ivec2 max(ivec2, int)
0:24(16): error:    ivec3 max(ivec3, int)
0:24(16): error:    ivec4 max(ivec4, int)
0:24(16): error:    ivec2 max(ivec2, ivec2)
0:24(16): error:    ivec3 max(ivec3, ivec3)
0:24(16): error:    ivec4 max(ivec4, ivec4)
0:25(36): warning: `ratio' used uninitialized

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of card_shadow_fs shader to make it work.

ERROR: ShadersOGL.cpp:894 : Error compiling shader(card_halo_fs): 0:17(16): error: no matching function for call to `max(int, float)'; candidates are:
0:17(16): error:    float max(float, float)
0:17(16): error:    vec2 max(vec2, float)
0:17(16): error:    vec3 max(vec3, float)
0:17(16): error:    vec4 max(vec4, float)
0:17(16): error:    vec2 max(vec2, vec2)
0:17(16): error:    vec3 max(vec3, vec3)
0:17(16): error:    vec4 max(vec4, vec4)
0:17(16): error:    int max(int, int)
0:17(16): error:    ivec2 max(ivec2, int)
0:17(16): error:    ivec3 max(ivec3, int)
0:17(16): error:    ivec4 max(ivec4, int)
0:17(16): error:    ivec2 max(ivec2, ivec2)
0:17(16): error:    ivec3 max(ivec3, ivec3)
0:17(16): error:    ivec4 max(ivec4, ivec4)
0:18(36): warning: `ratio' used uninitialized
0:20(16): error: no matching function for call to `max(int, float)'; candidates are:
0:20(16): error:    float max(float, float)
0:20(16): error:    vec2 max(vec2, float)
0:20(16): error:    vec3 max(vec3, float)
0:20(16): error:    vec4 max(vec4, float)
0:20(16): error:    vec2 max(vec2, vec2)
0:20(16): error:    vec3 max(vec3, vec3)
0:20(16): error:    vec4 max(vec4, vec4)
0:20(16): error:    int max(int, int)
0:20(16): error:    ivec2 max(ivec2, int)
0:20(16): error:    ivec3 max(ivec3, int)
0:20(16): error:    ivec4 max(ivec4, int)
0:20(16): error:    ivec2 max(ivec2, ivec2)
0:20(16): error:    ivec3 max(ivec3, ivec3)
0:20(16): error:    ivec4 max(ivec4, ivec4)
0:21(36): warning: `ratio' used uninitialized

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of card_halo_fs shader to make it work.

ERROR: ShadersOGL.cpp:894 : Error compiling shader(32da79f67d5849be82ad7081937b87ef_vs): 0:41(46): error: could not implicitly convert operands to arithmetic operator
0:41(37): error: operands to arithmetic operators must be numeric
0:41(11): error: no matching function for call to `scale_along_angle(vec2, error, float)'; candidates are:
0:41(11): error:    vec2 scale_along_angle(vec2, float, float)

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of 32da79f67d5849be82ad7081937b87ef_vs shader to make it work.

ERROR: ShadersOGL.cpp:894 : Error compiling shader(a6e08d4deb5747b793c61d311c114f82_fs): 0:18(18): error: no matching function for call to `max(int, float)'; candidates are:

ERROR: ShadersOGL.cpp:894 : Error compiling shader(563242d3732041f7ac7026e8f154c9d0_fs): 0:38(2): error: initializer of type int cannot be assigned to variable of type float

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of 563242d3732041f7ac7026e8f154c9d0_fs shader to make it work.
0:18(18): error:    float max(float, float)
0:18(18): error:    vec2 max(vec2, float)
0:18(18): error:    vec3 max(vec3, float)
0:18(18): error:    vec4 max(vec4, float)
0:18(18): error:    vec2 max(vec2, vec2)
0:18(18): error:    vec3 max(vec3, vec3)
0:18(18): error:    vec4 max(vec4, vec4)
0:18(18): error:    int max(int, int)
0:18(18): error:    ivec2 max(ivec2, int)
0:18(18): error:    ivec3 max(ivec3, int)
0:18(18): error:    ivec4 max(ivec4, int)
0:18(18): error:    ivec2 max(ivec2, ivec2)
0:18(18): error:    ivec3 max(ivec3, ivec3)
0:18(18): error:    ivec4 max(ivec4, ivec4)
0:18(10): error: operands to arithmetic operators must be numeric

WARN: ShadersOGL.cpp:859 : Auto-added '#version 120' to the top of a6e08d4deb5747b793c61d311c114f82_fs shader to make it work.

Others:

ERROR: SurfaceSDL.cpp:733 : Failed to load image file: 'splash.jpg' : Couldn't open images/splash.jpg

ERROR: formula.cpp:4586 : mismatching brackets or parentheses inside [ ]: '.citadel.school_info[int(school_info[7:])]'
0:40(2): error: value of type float cannot be assigned to variable of type int
0:42(2): error: value of type float cannot be assigned to variable of type int
0:45(2): error: could not implicitly convert operands to arithmetic operator
0:45(2): error: could not implicitly convert error to int
0:54(5): error: could not implicitly convert operands to relational operator
0:54(5): error: if-statement condition must be scalar boolean

ERROR: theme_imgui.cpp:308 : Failed to read file: /home/szunti/.citadel/data/imgui.cfg : PARSE ERROR: /home/szunti/.citadel/data/imgui.cfg: Could not find file /home/szunti/.citadel/data/imgui.cfg
ghost commented 6 years ago

My computer running macOS shows the shader related errors with different output and the others with the same exact output.

ghost commented 6 years ago

After those changes only the shaders related messages remain to be tackled.