Problems occurred after updating to version 43x

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
This is the new version of Basketball Practice with animated Character made with C3 Version.
  • When updating to any version 430, 431, or 432, an error occurs during preview, as follows:

    action.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'bind')
    

    The project has no problems in 429.

  • I reported the issue here github.com/Scirra/Construct-bugs/issues/8513

    If you have functions in your code that run script blocks, and these functions are disabled, the project breaks.

  • Thank you for your advice.

    I solved my problem in other ways. Here are the steps:

    First, I kept deleting event sheets until I found the problematic event sheet.

    Second, I deleted a certain 'Toggle disabled' JavaScript Action in the problematic event sheet, and the program ran normally, but there was no problem with that code.

    Finally, I found that after this code block was toggle disabled, the group it belonged to was toggle disabled again.

    This is the cause of the problem.

    Just making sure all code blocks 'toggle disabled' are only done once solved my problem.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • edit

    After experimenting with a simple test project for a while, it seems that the issue I encountered was due to an exclamation point "!" in a script file name.

    It seems that if JS script files, or folders containing JS script files, have a name that includes an exclamation point "!", and the Monaco code editor is selected in Construct's settings, then the "Failed to start preview... " popup appears, and the project won't preview.

    In my original post, I suspected this issue was related to a symlink folder, but that folder happened to contain a file with an exclamation point "!". From additional testing I've done it looks like symlinks are unrelated to the problem I was experiencing.

    Ultimately I just switched to the legacy code editor in Construct's settings, and the project now previews just fine in Construct r432.

    original post

    Hey max fang, and BigBuckBunny, I just encountered something similar. I'm still investigating, but I wanted to leave my symptoms and solution, so far, in case it happens to be useful to you, or anyone else that happens by.

    Project overview

    I have a fully script based project, with no event sheets.

    C3 provides a "Scripts" folder, which is the default place for your JavaScript files.

    I have several sub-folders inside that "Scripts" folder.

    One of these folders "eggECS_4", is a symbolic link instead of a conventional folder.

    Symbolic link folders have never caused me any issues in prior versions of Construct, but it might be involved with my sudden inability to preview in Construct 3 version r432.

    Last working state

    My project ran with no problems on the "Stable r424.2" version of Construct 3.

    Problem

    Immediately after updating to the newest "Stable r432" version, my project could no longer be previewed at all.

    On r432, when attempting to preview I would get the following:

    • A popup saying: "Failed to start preview. Try reloading Construct before trying again."
    • And this console error: "Error starting preview: Error: Could not find source file: 'file:///scripts/project/eggECS_4/!Notes/!Unsorted_Notes.js'"

    Cause?

    I can't be 100% sure, but what stands out to me about that console error, is that the file it's saying it can't find is the alphabetically first file inside the "eggECS_4" folder, which is the only symbolic link folder in the project.

    Again, I've been previewing and working on this project for quite a while with no issues, in "Stable r424.2" and earlier, with the symbolic link folder behaving as expected within both Construct 3 and VSCode.

    Solution

    I was able to roll back to the r424.2 version of Construct 3, using the following link:

    editor.construct.net/r424-2

    And the project opens and previews perfectly again.

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