Hacking Convert multiple PNGs to TPL via command line?

GateGuy

Active Member
OP
Newcomer
Joined
Nov 14, 2019
Messages
30
Trophies
0
XP
197
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
13,859
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,887
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,737
Trophies
2
XP
8,578
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

Active Member
OP
Newcomer
Joined
Nov 14, 2019
Messages
30
Trophies
0
XP
197
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
26
XP
76
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)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    BakerMan @ BakerMan: this one +1