0 Favourites

[Feature Request] Clean Up

  • I use a tool called R# in Visual Studio when I do C# code. It helps me do things like refactor my code and make it generally nice to look at.

    One thing that I love on it, Find all unused assemblies and remove.

    Basically if I have code that would bloat my application on compile and it is not used, it finds and removes it.

    I would love to have a tool that finds all unused Sounds, Sprites, Objects and just gives me an easy list to pick and delete some.

    For those who say i'm just bing lazy, I'm getting to the point where it takes me awhile to sort through it all.

    This becomes pretty important when we talk about mobile downloads etc.

    Thoughts?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • iirc, C2 doesn't compile empty events.

    However, I agree with making it easier to sift through stuff to clear it up, especially sprites that do not exist on any layout- However, I do believe It may be a difficult glitchy thing to detect certain thing-

    Say we have the sound file, "Enemy1_Hit.ogg", and a Sprite with a variable called "Name" (which would be set to "Enemy1")

    Now, the sound is currently not being used in events. Now say we do a "Play sound" action, which isn't directly pointing to the "Enemy1_Hit.ogg" file, but rather [Sprite.Name & "_Hit"]. That would mean the sound would play correctly, yes; but the sound isn't directly being pointed at in the events- therefore, how would such a tool be designed to automatically "know" if the sound would be used or not when it's not directly used? Aha

  • So the google compiler, most likely throws warning, but it would also be nice if there was a code analysis tool for C2. "You have 24 objects with default names, is this correct?", "You have more than 20 items in a folder, consider making subfolders"

  • This is already on the todo list, and has been for a while. Hopefully it'll appear eventually.

    C2 does include empty events BTW, because to remove them it would have to prove the condition methods have no side effects, which is difficult. (You can do things like call functions which run actions from the expression of a condition.)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
173 28,546
Rich's avatar
Rich
Unread sticky
150 20,712
Crow in the Snow's avatar
Crow in the Snow
Unread hot topic
0 Favourites
C3 Architect Request list
125 12,729
jayderyu's avatar
jayderyu