max fang's Forum Posts

  • 8 posts
  • You are right, thank you.

    I use apache for local service and add the following code in .conf:

     <IfModule mod_headers.c>
     Header set Cache-Control "no-store, no-cache, must-revalidate"
     Header set Pragma "no-cache"
     Header set Expires "0"
     </IfModule>
    

    That's it

  • I can only use the following process to develop and solve the cache problem.

    1. Open the browser's "developer tool" (F12)

    2. Disable cache

    3. Modify the addon file

    4. "ctrl+r" reflash construct editor

  • Solved! It was because there was a problem with the addon I developed, but the prompt of Construct was a bit strange.

  • I set up a local server and used the following URL as the addon URL

    localhost/skydrive/contruct3_addon/grid_behavior/addon/behavior/addon.json

    It is completely different from what the documentation(https://www.construct.net/en/make-games/manuals/addon-sdk/guide/using-developer-mode) says.

    There is no way to read the latest addon data. You can only clear the cache.

    What's worse is that when previewing, you must uninstall the addon, re-add the URL, restart, and clear the cache before you can use it.

    With such a bad development process, it is impossible to develop addons.

  • error message:

    [C3 runtime] Failed to load all engine scripts in worker: TypeError: Failed to fetch dynamically imported module: preview.construct.net/scripts/c3main.js

  • I made a simple mistake. After uploading the new Construct Arcade package, I noticed during debugging that the webpage was using the cached main.js file, which caused the address changes I made not to take effect. After clearing the cache, everything worked fine. The script used is as follows:

    globalThis.messagePort = await runtime.createWorker("./scripts/project/request_worker.js");
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Some additional information:

    I am using the following in the program:

    await runtime.createWorker("./request_worker.js");
    

    Exporting the Construct Arcade platform. doesn’t work.

    After unzipping the file and testing locally, I found during debugging that "request_worker.js" is missing.

    By copying "request_worker.js" to the root directory, it runs perfectly.

    When debugging the Construct Arcade webpage, I found that the directory is "/72797/0/scripts/project/request_worker.js".

    I changed the link to "https://construct-arcade.com/72797/0/scripts/project/request_worker.js"(The link test can be accessed normally).

    await runtime.createWorker("https://construct-arcade.com/72797/0/scripts/project/request_worker.js");
    

    Export and upload, still doesn’t work.

  • When publishing to the Construct Arcade platform, the runtime.createWorker() function cannot be used. Is anyone else experiencing the same issue? Please help me with a solution.

    Tagged:

  • 8 posts