Page 1 of 2

So you have a crappy computer

Posted: Fri Mar 19, 2010 11:53 am
by Robin
Latest at viewtopic.php?f=5&t=1433#p16922
So you have a crappy computer and you can't have images that are not po2. Most games on the forum will need padding. If you use Linux, you're in luck.
I've written a shell script that takes a .love, unpacks it, and does the usual padding.lua magic usually done by hand.
unlove.sh.txt
This is it.
(783 Bytes) Downloaded 602 times
It requires
  • bash
  • zenity
  • unzip
  • echo
  • sed
  • mv
... so it should run out of the box for most people.

For maximum sweetness you can make your favourite filebrowser unlove .loves automatically.

Re: So you have a crappy computer

Posted: Fri Mar 19, 2010 12:22 pm
by appleide
Pillows

Re: So you have a crappy computer

Posted: Sat Mar 20, 2010 7:22 pm
by Robin
I made a mistake. But I fixed it.
unlove.sh.txt
Quoting is risky business
(783 Bytes) Downloaded 554 times

Re: So you have a crappy computer

Posted: Wed Mar 24, 2010 6:26 pm
by zachwlewis
What is "po2"?

Re: So you have a crappy computer

Posted: Wed Mar 24, 2010 6:43 pm
by Robin
zachwlewis wrote:What is "po2"?
It is short for power of 2 (2^N). Old graphic cards or drivers have problems handling images not of such a width or height. It can be solved by padding the image.

Re: So you have a crappy computer

Posted: Wed Mar 24, 2010 6:43 pm
by zachwlewis
That makes sense. Just never seen that shorthand before. :)

Re: So you have a crappy computer

Posted: Fri Mar 26, 2010 10:35 am
by Geti
This is handy. Of course, coders should put padding in regardless.

Re: So you have a crappy computer

Posted: Thu Jul 01, 2010 8:55 pm
by Robin
Reuploaded for the greater good.
unlove.sh.txt
Freakin aliens
(783 Bytes) Downloaded 667 times

Re: So you have a crappy computer

Posted: Fri Jul 02, 2010 12:07 am
by Luiji
I don't quite understand, what does padding do?

Re: So you have a crappy computer

Posted: Fri Jul 02, 2010 1:08 am
by rikkit
Luiji wrote:I don't quite understand, what does padding do?
As far as I can gather, it adds transparent extra bits to the image so that it is "po2."