stachir's Recent Forum Activity

  • I know, right? Try this

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As I wrote before, You can try that:

    • go to generated/exported not-minified project folder and find c2runtime.js file
    • find function that starts like: C2AudioInstance.prototype.getDuration = function (applyPlaybackRate)
    • change

    let ret = 0;

    to

    var ret = 0;

    For me, that worked , and as You saw - yes, it's because of Audio update <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> ( as expected from update post - https://www.scirra.com/construct2/releases/r213 ... ;p trololololo )

    You can also downgrade C2 to 211.2, here all works, but you also need project with that version.

    (If you are wonder, audio duration function was rebuild from R211 to R213 and disposed from multiple "return" instructions for one instead.)

    The other two errors:

    Uncaught ReferenceError: cr_createRuntime is not defined

    Uncaught ReferenceError: cr_sizeCanvas is not defined

    are caused by the first one, so they will gone after modification that I wrote above.

  • Problem Description

    Script can't be minified, and not-minified exported projects' scripts do not open in Chrome browser

    Attach a Capx

    --

    Description of Capx

    --

    Steps to Reproduce Bug

    issue with not working minify is related to big projects that needs 64bit java

    issue with not opening exported projects in browser is related to any projects exported to website in 213 C2 version

    Observed Result

    Big projects' scripts can't be minified and popout shows up exectly like here - can-t-minify-project_t148041 . And like in that topic, I tried to change java version, but nothing worked. Then I thought about downgrading Construct 2 from 213 to 211 and it worked - I could do minify projects' script without any problems.

    In C2 v213 I found that, even exported projects with not-minified scripts could not work in Chrome. There was no such problem with C2 v211.

    After short investigation (with Chrome DevTools-console) I found something strange when I tried to run in Chrome my exported project anyway:

    Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode - c2runtime.js:17068

    Uncaught ReferenceError: cr_createRuntime is not defined - index.html:99

    Uncaught ReferenceError: cr_sizeCanvas is not defined - index.html:92

    ok, so I looked at c2runtime.js and I found what was at 17068 line and I compered that to similar code from earlier C2 version. Problem was caused with:

    C2AudioInstance.prototype.getDuration = function (applyPlaybackRate)

    now there is let ret = 0; and it should be var ret = 0; <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> it looks like Chrome still can't work with ES6 / ES2015 ? (I checked same exported project in Internet Explorer 11 and it worked.)

    Next I found :

    Uncaught (in promise) DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV). - index.html:118

    it's talking about this line:

    navigator.serviceWorker.register("sw.js", { scope: "./" });

    but I don't know what is really wrong here Oo

    Expected Result

    minifing scripts should work ;p

    not-minified scripts' projects should also work ;p

    Affected Browsers

    Chrome 45.0.2454.85 m

    Internet Explorer 11

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    213

  • after changing "file-folder" to "sound-folder" my project work again thanks anata for investigating

  • Ok I see and I know there is no clear boundary between mobile and not-mobile devices nowadays (as you suggest, Android for example can be installed on anything ). In my case, I just want to check if application is running on device with touch interface only... but now I see it's not really necessary

    out of curiosity - is there any way to be sure user's playing game on his phone, not pc ( let's say, for achievements assigning purpose ) ?

  • Problem Description

    When I test game on IE, construct 2 return true on "is on mobile device" condition.

    Attach a Capx

    https://www.dropbox.com/s/8q9agafqymy3h ... .capx?dl=0

    Description of Capx

    This capx does only one thing - set text object text to "mobile", if "is on mobile device" condition is true, and "not mobile" if it's false.

    Steps to Reproduce Bug

    • Create empty project
    • set default browser to Internet Explorer
    • Put text object on layout
    • make event with "is on mobile device" condition and set action to "set text to"mobile"" (related to created text object)
    • create "else" condition and set action to "set text to "not mobile"" ( related to created text object )

    Observed Result

    Text object shows "mobile" on desktop IE, and "not mobile" on every

    Expected Result

    Text object should show "not mobile" on desktop IE

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1 x64

    Construct 2 Version ID

    r182 x64

  • same situation here, plus when I tried to export to website I got :

    Error during export: Cannot open 'D:\Program Files\Construct 2\exporters\html5\behaviors\anchor\runtime-asm.js'

    ymm asm in anchor behavior, what' ?

  • Is it possible to make transformation into trapezium using that plugin ? ( something like -> subshell.com/en/subshell/blog/image-manipulation-html5-canvas102.html )

  • is that posible to make object pins to one object's position and second object's angle at the same time ?

  • From long time C2 uses 2.5 Phonegap version, instead of 2.7 ;)

  • do anyone know what's goin on with that:

    "error analysis

    packet parsing problem"

    It apprear while I'm trying to install C2 game on my android (4.2.2)

    Is it my fault, or phonegap ? ( if I understand right, C2 use 2.5 PhoneGap version, but current version is 2.7 ) ?

  • Sooo you say, I should first choose right category, and then write some stuff about my invalid problems ?

    ...

    holy mackerel ;/

    ok, sorry for inattention ;]

stachir's avatar

stachir

Member since 21 Aug, 2012

None one is following stachir yet!

Connect with stachir

Trophy Case

  • 12-Year Club
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies