Hacking Convert multiple PNGs to TPL via command line?

GateGuy

Member
OP
Newcomer
Joined
Nov 14, 2019
Messages
24
Trophies
0
XP
110
Country
United States
I know of several command line programs that can convert a single PNG to TPL, but is there one that can store multiple PNGs in one TPL? I'm looking for a command line app specifically.
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
11,858
Trophies
2
Age
36
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
5,363
Country
Cyprus
Are you just trying to avoid running multiple single commands? Or even with using single commands repeatedly are you unable to achieve what you're after? If the former, we can write some batch code to automate converting multiple singles. If the latter, then sorry, I'm not sure of a tool that does this
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,522
Trophies
1
XP
7,390
Country
Tuvalu
Are you just trying to avoid running multiple single commands? Or even with using single commands repeatedly are you unable to achieve what you're after? If the former, we can write some batch code to automate converting multiple singles. If the latter, then sorry, I'm not sure of a tool that does this
not converting 1 image multiple times (you're right, could just automate), but converting multiple images into one single file

.tpl files can contain multiple images, I use the tool I linked above when ripping some mr driller graphics.
character sprites would all be together in one file for the character, and I could extract all the sprites out. but I never looked into putting them back together in the game's format, which would be cool.
 

GateGuy

Member
OP
Newcomer
Joined
Nov 14, 2019
Messages
24
Trophies
0
XP
110
Country
United States
Well, I sort of figured it out. In Wiimms Image Tool, you can encode a PNG with the following command as usual:
Code:
wimgt ENCODE myimage.png -d myoutput.tpl -x TPL
But if you have multiple images named myimage.png, myimage.mm1.png, myimage.mm2.png, myimage.mm3.png, etc, the above command will pack all images with that naming convention together into one TPL.
Unfortunately, this takes up significantly more space than it should, as images are encoded in RGB5A3 format instead of CMPR. I can add "-x CMPR" to the command, but only the first texture is converted to CMPR while the rest stay the same.
 
  • Like
Reactions: cearp

yosh_y

Member
Newcomer
Joined
Nov 26, 2020
Messages
9
Trophies
0
Age
23
XP
46
Country
France
Hello @Wiimm ! (Sorry to bother you, but) Is there any way to change the format of the second texture with wimgt on a TPL ? it's always set to RGB5A3 even if the user changes the colour encoding (by setting like above, "-x TPL.CMPR" it'll only affect the first texture)
 
General chit-chat
Help Users
    KennieDaMeanie @ KennieDaMeanie: Only people with crazed sexual obsessions browse imgur and posts links from there