Issue Adding a Custom Theme ("missing addon.json")

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • Link to my .c3addon file

    macOS Sequoia 15.2. I'm trying to install a modified version of the default theme using the Add-on Manager. This includes zipping the following files into a .c3addon:

    • lang > en-US.json
    • addon.json
    • icon.svg
    • theme.css

    which is a structure I took from other themes I have gotten to install.

    However, the installation fails, with the console giving the following error:

    main.js:803 Error installing addon: Error: missing addon.json at CCG.Tna (main.js:648:184) at async Sm (main.js:803:98)

    I'm stumped as to what to do—I've tried laundering my code in through themes I've gotten to successfully install, but something about the process results in the same failure state.

    Is this something anyone can help with?

    Tagged:

  • You need to start a local web server

    If you have Python installed, you can try the following steps:

    1. Open the addon folder path in the terminal

    2. Install http-server module.

    npm install http-server -g
    

    3. run the server with CORS headers

    npx http-server -p 50000 --cors 
    

    3. Now you can access this path

    http://localhost:50000/
    
    http://localhost:50000/addon.json
    

    ----

    Intimate Tips:

    If you shut down the local server, re-open Construct may crash because "missing addon.json", At this time you can:

    - Plan A: Restart the local server.

    - Plan B: use Safe Mode: editor.construct.net/?safe-mode

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your .c3addon file is not set up correctly: Construct expects to find addon.json in the root of the zip file, but it looks like everything is within a subfolder inside the zip. So as the error message says Construct is not finding addon.json.

  • Your .c3addon file is not set up correctly: Construct expects to find addon.json in the root of the zip file, but it looks like everything is within a subfolder inside the zip. So as the error message says Construct is not finding addon.json.

    I wrote a week ago probably. And I still haven't received an answer, I don't understand, it's not in spam either, I didn't block messages from hellopix@construct.net. But there's no answer. I wrote there because no one on the forum answers topics. But there's no answer from support either

  • lightning_ - your post appears completely unrelated to this thread - in future such posts may be deleted - please refer to the Forum & Community guidelines.

  • Thank you for this! Unfortunately, it seems like I still don't know enough of what I'm doing because I get lost trying to configure things during the troubleshooting process.

    You need to start a local web server

    If you have Python installed, you can try the following steps:

    1. Open the addon folder path in the terminal

    2. Typing

    > python -m http.server 50000
    

    3. Now you can access this path

    > http://localhost:50000/
    
    > http://localhost:50000/addon.json
    

    ----

    Intimate Tips:

    If you shut down the local server, re-open Construct may crash because "missing addon.json", At this time you can:

    - Plan A: Restart the local server.

    - Plan B: use Safe Mode: editor.construct.net/?safe-mode

    - Plan C:

  • If it's as simple as reconfiguring my file structure, I'll feel silly but lucky. That said, I *think* I do have it set up that way, having copied it from other themes. I've attached the structure I'm using as a screenshot. Does it look wrong to you?

    Your .c3addon file is not set up correctly: Construct expects to find addon.json in the root of the zip file, but it looks like everything is within a subfolder inside the zip. So as the error message says Construct is not finding addon.json.

  • I can't tell from that screenshot - if you zipped the containing folder, it's probably wrong, but if you zipped the files shown, then it should be right. Maybe using a third-party zip tool will help if macOS doesn't show zipped folders clearly.

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