How do I remove a duplicate animation error? My game project can't open

0 favourites
  • 2 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • So out of the blue when I opened my local c3p project it brought this up:

    Failed to open project. Check it is a valid Construct 3 single-file (.c3p) project.

    I then checked the console and saw this error.

    [Project] Exception opening: Error: duplicate animation name: scorch

    at d.ib (projectResources.js:793:115)

    at d.Kbc (projectResources.js:803:221)

    at d.aka (projectResources.js:786:376)

    at d.aka (projectResources.js:786:303)

    at d.eVc (projectResources.js:752:439)

    at async Promise.all (/index 20)

    at async d.Pbc (projectResources.js:757:109)

    at async d.Xbc (projectResources.js:1947:221)

    at async CCG.Mn (main.js:883:1)

    at async Opa (main.js:916:73)

    After reading many forums on the same problem, I figured I needed to remove the duplicate animation for the file to open properly. What I did after was I made a copy of the c3p file, renamed the format from c3p to zip, extracted it, located the JSON file in the objectTypes folder, opened it using notepad, found a duplicate animation on two different subfolders, deleted one of them correctly according to chatGPT, saved the changes and exited, compressed as zip file, renamed the format from zip to c3p, then it gave me this error:

    main.js:907 [Project] Exception opening: Error: missing file path 'project.c3proj'

    Does someone know why it brings up a new error? Please

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1. Backup your project: Copy the original `.c3p` file to a safe location.

    2. Extract the `.c3p` file:

    - Rename `yourproject.c3p` to `yourproject.zip`.

    - Extract `yourproject.zip`.

    3. Edit the JSON file:

    - Navigate to the `objectTypes` folder.

    - Open the JSON file with a text editor.

    - Remove the duplicate animation entry.

    4. Verify project structure:

    - Ensure `project.c3proj` is in the root of the extracted folder.

    5. Recompress the project:

    - Select all files and folders in the extracted directory (including `project.c3proj`).

    - Compress them into a ZIP file.

    6. Rename the ZIP file:

    - Rename the ZIP file to `yourproject.c3p`.

    Ensure `project.c3proj` is at the root level of the ZIP, not inside another folder.

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