Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Looks like I also contributed to make the price bump! :D (interestingly my history shows that I paid an extra for a total of $3 already! but I suppose I would have access to upgrades even for $1 as itch must grant licenses for future updates)

Wow, the new wordcounter_hidden_files look exactly like what I want. I just noticed there was no way to exclude my unused labels so I put them in some backup folder (it wasn’t enough) and renamed extension .rpy to .txt (this worked).

But excluding the backup folder would be cleaner so I can still have .rpy and benefit from syntax coloring and Renpy code actions (like commenting) even on the backup files.

EDIT: Sorry, I misread. The files will still count toward the total. “List of files which should be hidden from the detailed statistics. They will still contribute to the total word count.”

Looks like I still need a parameter to either exclude from total, or a “smart” option to only consider labels that are actually jumped to in game (but it needs a more elaborate parser that detects all the jump/call statements iteratively from the start label - this would automatically ignore unused labels.

The only remaining issue I have is Renpy Linter detecting .rpyc leftover after moving a .rpy away (as I did with backup/) and forgetting to move the .rpyc at the same time. I thought it was just a limitation of Renpy, but since you’re able to pick files one by one maybe you’re also able to add an option to ignore .rpyc?

(+1)

Ohhh, please note that wordcounter_hidden_files only hides those specific file statistics from your view - their word counts will still be included in the character-specific and overall totals.

To exclude unused labels entirely, you'd want to look at script_ignore_path instead. Unlike wordcounter_hidden_files, this one makes sure the words won't be counted at all. (Otherwise, they work exactly the same when it comes to file name matching.)

  1. Specifically, you'd want to put your unused script parts in a separate file, let's say "wip_route.rpy"
  2. You can then set script_ignore_path  = ["wip_route.rpy"]
  3. Or script_ignore_path  = ["wip"]
  4. Depending on your preferences, you can either name specific files or broadly exclude all files mentioning a certain keyword

Likewise, I have no idea if this would fully resolve your problem, but maybe simply adding ".rpyc" to script_ignore_path would do the trick for the second issue? I've personally never run into this issue, so I'm unfortunately not sure how to validate it.

Thanks, I’ll try it!