Most of the code came from Falco, but then I took a few liberties so don't blame him for broken stuff
It searches through an entire directory structure and converts ANY GIF it finds to png, then converts any png to use the green for transparency. It then goes through any rul file it finds and changes all gif filename to png.
I've had a little more time to test things out and I've found a few issues.
- Right now it assumes everything uses the battlescape palette. If there are graphics for the Geoscape or Base, they may get screwed up.
- Some of the files aren't registering the transparency correctly. Some of the handobs cause the torso to disappear. Some of the bigobs have a black border around them that shows up wonky in the inventory screen
- If rul file graphic extensions are all caps (.GIF) they won't be replaced properly.
I've had partial success though. Breach Charge, Colored Moriarty Armor, Gauss Weapons, Small Rocket all worked perfectly. Mostly working are EqualTerms, FusionTorch, GrenadeLauncher and Incendiary Grenade.
I'd be happy to try out your mod whenever you'd like.
While it is converting all the GIF files to PNG, and all PNG files to use the green for transparency, some of the files aren't converting correctly. I haven't found the pattern yet, but I'll keep futzing with it.