Share .capx after installing plugins

0 favourites
  • 9 posts
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • I've got a problem in my game I could really use help with, but I've installed the Chrome Console plugin which is preventing my .capx from being easily opened when shared.

    I tried deleting all the Chrome Console actions, but the file still can't be opened. I tried removing the plugin from the directory, but now I can't open my file either, which makes sense I guess. <img src="smileys/smiley5.gif" border="0" align="middle" />

    So, is there a way to "clean" the file after using addons so that someone else can open it?

  • You can try going into the file.caproj file which is an XML file. Look near the begginning for plugins.

    However and often a mistake for new devs. Is that removing the actions of a plugin does not remove the the fact that the plugin is still in the project objects list.

    Instead of removing the actions. it is best to remove the plugin from the object list and remove the behaviour from objects.

    For you. Install the plugin back in as it is still in the Object lists. Then remove the plugin from the objects list.

    Personally plugins are great. But I like to temper the use to see if it's really needed.

  • Thanks for the quick reply. <img src="smileys/smiley4.gif" border="0" align="middle">

    So, here's what I did:

    1. Renamed the .capx to .zip

    2. Unzipped and opened the .caproj in the root dir and found the following:


            <plugin author="Scirra" id="Arr" version="1">Array</plugin>


    3. I deleted the line containing the Chrome Console plugin.

    4. Zipped the root dir

    5. Renamed .zip to .capx

    I tested out opening this file with the plugin uninstalled, but now C2 crashes on startup. <img src="smileys/smiley11.gif" border="0" align="middle">

    Here's the file in case it's just my install for some reason:


    So... will C2 ignore any events, etc. from the plugin because it's missing, or could it possibly be crashing due to a Chrome Console log event left on the sheet?

  • Try Construct 3

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

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

    I downloaded the original .capx from you, and opened the .caproj in a text editor with line numbers.

    Delete lines: 25 (reference to plugin), 378/379/380 (object-type reference), 448 (instance reference).

    Save and then try to open. It opens fine for me. If yours doesn't. I'll upload to my Dropbox, but this is a useful thing to get your head around (and your hands dirty).

  • Ok, I think I figured it out. I started from scratch with a copy of my current .capx. Looks like there was a global reference down near the end of the file too.

            <global-instance type="ChromeConsole" uid="19" />

    I tested opening again with the plugin uninstalled after removing what you suggested and everything seems clean.

    Thanks for the help! <img src="smileys/smiley32.gif" border="0" align="middle" /> Now I can go post a topic about the real issue, lol.

  • zenox98

    Well, it looks like I spoke too soon. I can open the project fine from the .caproj file when unzipped, but once I bundle it back up, C2 still crashes. (With or without the plugin installed.)

    I'm just using 7-zip to zip it. ZipCrypto, not AES method.

    Any thoughts? Or is it fine to just post a link to the .zip in my post and let people unzip and open the .caproj? Not really sure what the etiquette around the community.

  • Why did you zip it back up?

    Open the project with the .caproj, then just re-save as a .capx to a different location.

    Does this .capx then open OK for you?

  • Ok, that seems to work now. Thanks!

    I was just reversing the process from before. It didn't occur to me to re-save as a single file. Still not sure why unzipping and re-zipping should break the ability to read the file, but whatever so long as there's a workflow that works.

  • Unpacking routines are usually very similar between products, but packing can be drastically different, e.g. Winzip and 7zip will both follow certain guidelines when unpacking a zip file, but when creating one, the algorithm may not be exactly the same.

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