Hacking Convert multiple PNGs to TPL via command line?

GateGuy

Active Member
OP
Newcomer
Joined
Nov 14, 2019
Messages
30
Trophies
0
XP
202
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,884
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,924
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,740
Trophies
2
XP
8,587
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
202
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
  • Xdqwerty @ Xdqwerty:
    Also somebody is remaking it
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, the other game where I found newgrounds is new york shark
    +1
  • SylverReZ @ SylverReZ:
    Spoke to Tom Fulp the other day, if he can find his old Newgrounds site content like the mini Flash animations from the 2000's that played on the portal.
  • SylverReZ @ SylverReZ:
    So far no response, but he did say that he'll find them. Wayback Machine doesn't have em.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, atleast the 1999 versión of pico's school is avaliable (the difference between it, the 2006 versión and the 2016 versión is that the speed of the game depends of the speed of your computer and that it had the og soundtrack)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Another being Pico VS Bear, the original 1999 version before Jim Henson filed a DMCA takedown.
    +1
  • Xdqwerty @ Xdqwerty:
    The 2006 versión was made when the flash portal was made
  • SylverReZ @ SylverReZ:
    Many people thought it was lost, but was discovered that he hid it on the same page.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, although the "secrets" system where the game was has been removed. Also pico vs uberkids had a netplay versión that was shutdown, although the swf file has been found
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Nope. There are two download buttons on the same page, where you can download the original under a file called "bear.exe". "bear2.exe", however, is the updated game in a Flash projector. P.s. this was on the archived Pico page from 2000.
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's been there for a long time, too. People who search for lost media don't look hard enough lmao.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, also the pico 2 demos used to be only for the newgrounds patrons but they are on internet archive too (https://archive.org/download/picos_school_2)
    +1
  • Xdqwerty @ Xdqwerty:
    Iirc the demos were removed from newgrounds in 2022
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, or well only the demo with mindchamber's style was on newgrounds
    +1
  • Xdqwerty @ Xdqwerty:
    Fun fact @SylverReZ: iirc one of the goals on the fnf Kickstarter stated that pico 2 would be finished but the Kickstarter didnt get enough money for that goal to be fullfiled
  • SylverReZ @ SylverReZ:
    @Xdqwerty, FNF sucks, their community is toxic as hell.
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ its a single player game
  • Xdqwerty @ Xdqwerty:
    @The Real Jdbye, Yea but it has a shitton of mods with their own songs and stuff
  • Xdqwerty @ Xdqwerty:
    @The Real Jdbye, and quite a lot of people involved in those mods get cancelled
  • SylverReZ @ SylverReZ:
    Newgrounds wasn't the birth of FNF; rather, it was games where you beat up celebrities and parodies.
    +2
  • a_username_that_is_cool @ a_username_that_is_cool:
    FNF was born from Game Jams
  • a_username_that_is_cool @ a_username_that_is_cool:
    Specifically Ludum Dare 47
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, and Sonic fights a la dragón ball z
    Xdqwerty @ Xdqwerty: @SylverReZ, and Sonic fights a la dragón ball z