Jump to content

Tool to find bugs when creating new items


JimPanzee

Recommended Posts

What's that?
This python script checks every file in the "scripts" folder of your mod and compares the referenced icon names with the file names of your .png files in your texture folder.
It creates a "results.log" that will tell you:

  • references of icons that have no .png in the texture folder
  • .png files that are never referenced in one of the scripts

But why?
If your mod adds many new items, you sure will encounter a bug where you have a spelling error in your scripts or while naming your .png. Even if it is only an upper- lower-case problem. This script will inform you about it.
 
Ok, what do I have to do, to use it?

  • you will need Python 2.7
  • the script needs to be in your mod folder (next to the media folder)
  • you just double-click the script and than read the results.log

Copyright?
 

MODS_01.png


 
 
Download
checkReferences.py

Update

  • will ignore icons: ...baked, ...cooked, ...burned, ...rotten
  • will ignore if script reference is "name.png" instead of "name"
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...