How can I fix an error at importing project from C2?

0 favourites
  • 8 posts
From the Asset Store
A cool way for kids to write and practice English Alphabets
  • Don't any side addons are installed

    Error report information

    Type: unhandled rejection

    Reason: Syntax error: '-' can't go here - are you missing something before it?

    Construct 3 version: r251.2

    URL: editor.construct.net

    Date: Sun Jul 18 2021 20:16:55 GMT+0700 (GMT+07:00)

    Uptime: 32.2 s

    Platform information

    Browser: Chrome

    Browser version: 91.0.4472.124

    Browser engine: Chromium

    Context: webapp

    Operating system: Windows

    Operating system version: 10

    Device type: desktop

    Device pixel ratio: 1

    Logical CPU cores: 4

    Approx. device memory: 8 GB

    User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

    C3 release: r251.2 (stable)

    Language setting: en-US

    WebGL information

    Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium)

    Numeric version: 2

    Supports NPOT textures: yes

    Supports GPU profiling: yes

    Supports highp precision: yes

    Vendor: Google Inc. (Intel)

    Renderer: ANGLE (Intel, Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0, D3D11-10.18.10.4358)

    Major performance caveat: no

    Maximum texture size: 16384

    Point size range: 1 to 1024

    Extensions: EXT_color_buffer_float, EXT_color_buffer_half_float, EXT_disjoint_timer_query_webgl2, EXT_float_blend, EXT_texture_compression_bptc, EXT_texture_compression_rgtc, EXT_texture_filter_anisotropic, EXT_texture_norm16, KHR_parallel_shader_compile, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, WEBGL_multi_draw, OVR_multiview2

    Tagged:

  • Can you open this project in C2?

    Try opening the project in old releases of Construct 3 - r171, r98 or maybe even older. If you manage to open it, change to runtime 3, save, and then try to open with the latest release.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes, it's working with C2. Where can i download versions you term? Thank you :)

    And one more question:

    C3 project crashes on export with this error:

    /str/c3runtime.js:2733:349: ERROR - [JSC_UNDEFINED_VARIABLE] variable GetBaseAnimationFrame is undeclared

    2733| tempQuad.getTrx())/2);tempQuad.setTly((tempQuad.getTly()+tempQuad.getTry())/2)}renderer.Quad3D2(tlx,tly,tlz,trx,try_,trz,brx,bry,brz,blx,bly,blz,tempQuad)}else renderer.Quad3D(tlx,tly,tlz,trx,try_,trz,brx,bry,brz,blx,bly,blz,rcTex)}GetImagePointCount(){return this.GetBaseAnimationFrame().GetImagePointCount()}GetImagePoint(nameOrIndex){const frame=GetBaseAnimationFrame();const wi=this.GetWorldInfo();let ip=null;if(typeof nameOrIndex==="string")ip=frame.GetImagePointByName(nameOrIndex);else if(typeof nameOrIndex===

    ^^^^^^^^^^^^^^^^^^^^^

    1 error(s), 0 warning(s)

  • Where can i download versions you term?

    You can open any previous version in browser, for example:

    https://editor.construct.net/r100/

  • V171 gives same error:

    Error report information

    Type: unhandled rejection

    Reason: Syntax error: '-' can't go here - are you missing something before it?

    Construct 3 version: r171

    URL: editor.construct.net/r171

    Date: Mon Jul 19 2021 19:12:17 GMT+0700 (GMT+07:00)

    Uptime: 45.7 s

    Platform information

    Browser: Chrome

    Browser version: 91.0.4472.124

    Browser engine: Chromium

    Browser architecture: 64-bit

    Context: browser

    Operating system: Windows

    Operating system version: 10

    Operating system architecture: 64-bit

    Device type: desktop

    Device pixel ratio: 1

    Logical CPU cores: 4

    Approx. device memory: 8 GB

    User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

    C3 release: r171 (stable)

    Language setting: en-US

    WebGL information

    Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium)

    Numeric version: 2

    Supports NPOT textures: yes

    Supports GPU profiling: yes

    Supports highp precision: yes

    Vendor: Google Inc. (Intel)

    Renderer: ANGLE (Intel, Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0, D3D11-10.18.10.4358)

    Major performance caveat: no

    Maximum texture size: 16384

    Point size range: 1 to 1024

    Extensions: EXT_color_buffer_float, EXT_color_buffer_half_float, EXT_disjoint_timer_query_webgl2, EXT_float_blend, EXT_texture_compression_bptc, EXT_texture_compression_rgtc, EXT_texture_filter_anisotropic, EXT_texture_norm16, KHR_parallel_shader_compile, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, WEBGL_multi_draw, OVR_multiview2

    v90 and 100 are not working now :(

  • The error message is due to an invalid expression ("Syntax error: '-' can't go here - are you missing something before it?").

    Construct 2 had some bugs where it incorrectly allowed invalid expressions. Construct 3 is more robust and verifies expressions more correctly. However it means if your C2 project relies on a C2 bug that allows an invalid expression, it won't import in to C3. You'll need to open it in C2, find an invalid expression using '-', fix it, save and then it should import to C3.

  • Old versions where listed gives error like that on start:

    Error report information

    Type: unhandled rejection

    Reason: Error: invalid parameter type 'boolean' Error: invalid parameter type 'boolean' at new window.ǃhOg (https://editor.construct.net/r100/main.js:63:324783) at Function.ǃg.ǃr (https://editor.construct.net/r100/main.js:2:140322) at window.ǃhGf.ǃhOK (https://editor.construct.net/r100/main.js:63:328884) at new window.ǃhO_ (https://editor.construct.net/r100/main.js:63:328474) at new window.ǃhGH (https://editor.construct.net/r100/main.js:63:330234) at new window.ǃhGf (https://editor.construct.net/r100/main.js:63:335110) at Function.ǃg.ǃr (https://editor.construct.net/r100/main.js:2:140322) at window.ǃhEn.ǃhEo (https://editor.construct.net/r100/main.js:63:336769) at window.ǃhPz.ǃhrp (https://editor.construct.net/r100/main.js:63:508039) at g.ǃFm (https://editor.construct.net/r100/main.js:74:28511)

    Stack: Error: invalid parameter type 'boolean' at new window.ǃhOg (https://editor.construct.net/r100/main.js:63:324783) at Function.ǃg.ǃr (https://editor.construct.net/r100/main.js:2:140322) at window.ǃhGf.ǃhOK (https://editor.construct.net/r100/main.js:63:328884) at new window.ǃhO_ (https://editor.construct.net/r100/main.js:63:328474) at new window.ǃhGH (https://editor.construct.net/r100/main.js:63:330234) at new window.ǃhGf (https://editor.construct.net/r100/main.js:63:335110) at Function.ǃg.ǃr (https://editor.construct.net/r100/main.js:2:140322) at window.ǃhEn.ǃhEo (https://editor.construct.net/r100/main.js:63:336769) at window.ǃhPz.ǃhrp (https://editor.construct.net/r100/main.js:63:508039) at g.ǃFm (https://editor.construct.net/r100/main.js:74:28511)

    Construct 3 version: r100

    URL: editor.construct.net/r100

    Date: Mon Jul 19 2021 23:43:13 GMT+0700 (GMT+07:00)

    Uptime: 4.8 s

    Platform information

    Browser: Chrome

    Browser version: 91.0.4472.164

    Browser engine: Blink

    Browser architecture: 64-bit

    Context: browser

    Operating system: Windows

    Operating system version: 10

    Operating system architecture: 64-bit

    Device type: desktop

    Device pixel ratio: 1

    Logical CPU cores: 4

    Approx. device memory: 8 GB

    User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36

    C3 release: r100 (beta)

    Language setting: en-US

    WebGL information

    Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium)

    Numeric version: 2

    Supports NPOT textures: yes

    Supports GPU profiling: yes

    Vendor: Google Inc. (Intel)

    Renderer: ANGLE (Intel, Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0, D3D11-10.18.10.4358)

    Major performance caveat: no

    Maximum texture size: 16384

    Point size range: 1 to 1024

    Extensions: EXT_color_buffer_float, EXT_color_buffer_half_float, EXT_disjoint_timer_query_webgl2, EXT_float_blend, EXT_texture_compression_bptc, EXT_texture_compression_rgtc, EXT_texture_filter_anisotropic, EXT_texture_norm16, KHR_parallel_shader_compile, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, WEBGL_multi_draw, OVR_multiview2

  • The error message is due to an invalid expression ("Syntax error: '-' can't go here - are you missing something before it?").

    Construct 2 had some bugs where it incorrectly allowed invalid expressions. Construct 3 is more robust and verifies expressions more correctly. However it means if your C2 project relies on a C2 bug that allows an invalid expression, it won't import in to C3. You'll need to open it in C2, find an invalid expression using '-', fix it, save and then it should import to C3.

    it's clear, but how? :D

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)