Is there something I can run, like Lint, which can detect unused files?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
SelLi
Miko-Class Veteran
Posts: 550
Joined: Fri Apr 27, 2012 4:49 pm
Completed: The Silent Column
Projects: Ethereal Overflow
Deviantart: SelLillianna
itch: SelLillianna
Location: Canada
Contact:

Is there something I can run, like Lint, which can detect unused files?

#1 Post by SelLi »

Hi there everyone - just a simple question,
I was wondering if there was something I could run, like Lint, which can detect unused files.
I've been working on my first project, and it's been a little bit messy. I'm almost certain that I have at least a few images that are never used in the actual game - if possible, I'd like to run something simple like Lint, which would allow me to find and delete the unnecessary files, to slim down the size of the final project.
(Of course, I could try to do this manually, but that would take longer and could lead to more mess - like accidentally deleting files that ARE needed.)
If there isn't something like this, then that's fine, I just thought I'd ask. :) It's something I could see existing.
Have a nice day!

User avatar
dragondatingsim
Regular
Posts: 115
Joined: Sat Feb 14, 2015 10:22 am
Tumblr: angelswithscalywings
Contact:

Re: Is there something I can run, like Lint, which can detect unused files?

#2 Post by dragondatingsim »

Seconded, this would be really useful for creating demos too.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2437
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Is there something I can run, like Lint, which can detect unused files?

#3 Post by Ocelot »

First of all, making such a tool, which will accurately work for any kind of RenPy game, is mathematically impossible (it is equivalent to solving halting problem).
On the other hand, if your game does not use DynamicImage, loading from external files, dynamically constructed paths and similar things, it would be possible, but I don't know about such a tool made.
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], mosiuwu