Topic: CPU player doesn't work in WebGL version
Hi, everyone
I have made some changes to UFE 2d, but didn't change anything about Fuzzy AI engine.
All works well in Unity Editor and Windows Destkop mode, but when it runs in WebGL mode, it is not responding.
Player vs Player mode works in WebGL version, but not Player vs CPU and CPU vs CPU modes.
Below shows error messages
[UnityCache] 'http://localhost:63168/Build/Build.data' successfully downloaded and stored in the indexedDB cache
Build.asm.js:10 Invalid asm.js: expected doubles or floats
Build.asm.framework.js:2 Loading player data from data.unity3d
Build.asm.framework.js:2 Initialize engine version: 2021.1.13f1 (ada9ab6e7923)
Build.asm.loader.js:1 Creating WebGL 2.0 context.
Build.asm.framework.js:2 Renderer: WebKit WebGL
Build.asm.framework.js:2 Vendor: WebKit
Build.asm.framework.js:2 Version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))
Build.asm.framework.js:2 GLES: 3
Build.asm.framework.js:2 EXT_color_buffer_float GL_EXT_color_buffer_float EXT_color_buffer_half_float GL_EXT_color_buffer_half_float EXT_disjoint_timer_query_webgl2 GL_EXT_disjoint_timer_query_webgl2 EXT_float_blend GL_EXT_float_blend EXT_texture_compression_bptc GL_EXT_texture_compression_bptc EXT_texture_compression_rgtc GL_EXT_texture_compression_rgtc EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic EXT_texture_norm16 GL_EXT_texture_norm16 KHR_parallel_shader_compile GL_KHR_parallel_shader_compile OES_texture_float_linear GL_OES_texture_float_linear WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb GL_WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info GL_WEBGL_debug_renderer_info WEBGL_debug_shaders GL_WEBGL_debug_shaders WEBGL_lose_context GL_WEBGL_lose_context WEBGL_multi_draw GL_WEBGL_multi_draw OVR_multiview2 GL_OVR_multiview2
Build.asm.framework.js:2 OPENGL LOG: Creating OpenGL ES 3.0 graphics device ; Context level <OpenGL ES 3.0> ; Context handle 31371792
81
The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. <URL>
Build.asm.framework.js:2 Input Manager initialize...
Build.asm.framework.js:2 UnloadTime: 25.100000 ms
Build.asm.framework.js:2 warning: 2 FS.syncfs operations in flight at once, probably just doing extra work
Build.asm.framework.js:2 UnloadTime: 89.700001 ms
Build.asm.framework.js:2 Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
Build.asm.framework.js:2
Unloading 6 unused Assets to reduce memory usage. Loaded Objects now: 5219.
Build.asm.framework.js:2 Total: 241.600001 ms (FindLiveObjects: 11.000000 ms CreateObjectMapping: 9.699999 ms MarkObjects: 215.000000 ms DeleteObjects: 5.700001 ms)
Build.asm.framework.js:2 warning: 2 FS.syncfs operations in flight at once, probably just doing extra work
Build.asm.framework.js:2 ERROR: 0:2: 'GL_AMD_vertex_shader_layer' : extension is not supported
ERROR: 0:68: 'gl_Layer' : undeclared identifier
ERROR: 0:68: 'assign' : l-value required (can't modify a const)
ERROR: 0:68: 'assign' : cannot convert from 'highp int' to 'const highp float'
Build.asm.framework.js:2 Note: Creation of internal variant of shader 'GUI/Text Shader' failed.
Build.asm.framework.js:2 ERROR: 0:2: 'GL_AMD_vertex_shader_layer' : extension is not supported
ERROR: 0:60: 'gl_Layer' : undeclared identifier
ERROR: 0:60: 'assign' : l-value required (can't modify a const)
ERROR: 0:60: 'assign' : cannot convert from 'highp int' to 'const highp float'
Build.asm.framework.js:2 Note: Creation of internal variant of shader 'Hidden/InternalErrorShader' failed.
Build.asm.framework.js:2 Shader warmup: 18 shaders 216 combinations 2.710s
27
[.WebGL-00003E5202B10E00] GL_INVALID_OPERATION: Mismatch between texture format and sampler type (signed/unsigned/float/shadow).
Build.asm.framework.js:2 warning: 2 FS.syncfs operations in flight at once, probably just doing extra work
Build.asm.framework.js:2 Uploading Crash Report
Build.asm.framework.js:2 ArgumentException: Linguistic label NOT was not found on the variable 009_Attacking_UFE3D.HitType_Opponent.
at AForge.Fuzzy.Rule.ParseRule () [0x00000] in <00000000000000000000000000000000>:0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <00000000000000000000000000000000>:0
_JS_Log_Dump @ Build.asm.framework.js:2
Build.asm.framework.js:2 Uploading Crash Report
Build.asm.framework.js:2 NullReferenceException: Object reference not set to an instance of an object.
_JS_Log_Dump @ Build.asm.framework.js:2
Please help me, thanks for your time.