Smilies Packs Converter v2

Miscellaneous programs and scripts, opensource or not, and sometimes, random mathematical stuff.
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Smilies Packs Converter v2

Post by Gamall »

Smilies Packs Converter.zip
Java Executable Archive (with source)
(275.51 KiB) Downloaded 6123 times

Code: Select all

{===============================================================}
{                    Smilies Packs Converter                    }
{---------------------------------------------------------------}
{                 Author: Gamall Wednesday Ida                  }
{                  Mail: gamall.ida@gmail.com                   }
{                      Web: gamall-ida.com                      }
{===============================================================}
 
 
{===============================================================}
{                         What is it ?                          }
{===============================================================}
 
 This  program converts a message board smilies pack into another
 format. Supported conversions at the moment are phpBB2 to phpBB3
 and phpBB3 to phpBB2.                                           
 
 Unlike version 1, version 2 is written in Java (so it  will  run
 on  Windows,  Linux,  Mac etc...) and released under the GPL (so
 you  can  alter  and  expand  it  if  you  wish).   See   below.
 
 It  was  designed to be easy to expand: adding support for other
 conversions should be quite straightforward.  If  you  have  the
 know-how,   you  are  greatly  encouraged  to  write  conversion
 algorithms to and  from,  say,  IPB,  vBulletin,  or  any  other
 bulletin board software out there.                              
 
{===============================================================}
{                       How do I use it ?                       }
{===============================================================}
 
 It is quite easy to use, and instructions are displayed directly
 in   the  GUI,  so  there  is  no  need  to  repeat  them  here.
 
{===============================================================}
{                            LICENCE                            }
{===============================================================}
 
 This program is released under the  GPL,  a  copy  of  which  is
 included in the JAR archive.                                    
 
 On  top  of  the GPL, I would greatly appreciate it if any major
 modification of this program was kindly uploaded by their author
 on the program's topic, on my website.                          
 
{===============================================================}
{                          END OF FILE                          }
{===============================================================}
 




























  +-----------------------------+
  | File generated with 'GaTeX',|
  | an ASCII typesetting system |
  | by  Gamall  Wednesday  Ida. |
  |   http://gamall-ida.com     |
  +-----------------------------+
  Build: Sat Sep 01 18:26:24 2007
  File : Readme.gat
smiliesconvgui.PNG
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Smilies Packs Converter v2

Post by Gamall »

Under Linux OpenSuse 10.2, found bugs which do not appear under WinXP:

-> Error loading look and feel (I thought everything was emulated... :D I'll fix that)
----- doesn't matter, it is purely cosmetic ; the program uses "metal" look&feel instead

-> The "convert" buttons never actually activate :huh:
----- I don't understand how this is possible, since it is a simple test on whether two strings are non-empty :?... And it works fine under Win... puzzled...

Code: Select all

btnBProcess.setEnabled(!txtBPakPath.getText().isEmpty() && !txtBImgDir.getText().isEmpty() ); 
How can that work under one OS and not under the other ???

edit: works fine with JRE 6.0 under Kubuntu
Last edited by Gamall on Sat Sep 29, 2007 12:55 pm, edited 1 time in total.
Reason: added linux info
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
Dakin Quelia
Posts: 206
Joined: Mon May 14, 2007 10:36 pm
Location: Belgique
Contact:

Re: Smilies Packs Converter v2

Post by Dakin Quelia »

Bonsoir,

Comment fait-on pour le faire fonctionner car j'ai bien lu ici et dans le logiciel mais le bouton ne se met pas actif?

A bientôt,
Un Jedi devrait considérer chaque possibilité ainsi que ses possibles conséquences avant de s'impliquer personnellement dans une situation quelconque.

Mon blogue | Mon hébergeur
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Smilies Packs Converter v2

Post by Gamall »

Tu es sur quel OS ?

Quelle version de Java ?

Tu essayes de faire quelle conversion ?
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
Dakin Quelia
Posts: 206
Joined: Mon May 14, 2007 10:36 pm
Location: Belgique
Contact:

Re: Smilies Packs Converter v2

Post by Dakin Quelia »

Mon OS est Windows XP.

Là, je ne saurais pas te dire.

De phpbb2 vers phpbb3. :huhu

ps: Si tu es d'accord, je le propose à l'équipe francophone de phpbb. :huhu
Un Jedi devrait considérer chaque possibilité ainsi que ses possibles conséquences avant de s'impliquer personnellement dans une situation quelconque.

Mon blogue | Mon hébergeur
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Smilies Packs Converter v2

Post by Gamall »

Dakin Quelia wrote:De phpbb2 vers phpbb3.
Tu as bien sélectionné le pack phpbb2 et le répertoire des smilies ? (select smilies directory)

Les packs de la version 3 stockent la taille de chaque smiley, contrairement à la version 2, c'est pour ça qu'il faut avoir accès aux images, pour que le programme puisse calculer leur taille. Sans les images, c'est à dire tant que tu n'as pas sélectionné le "smilies directory", le bouton "Convert" restera grisé.

Image

Ceci dit, si tu sélectionne n'importe-quel répertoire, même s'il ne contient pas les smilies, tu pourras quand-même convertir, mais une taille par défaut sera utilisée, donc les smileys seront "bizarres".
Dakin Quelia wrote:ps: Si tu es d'accord, je le propose à l'équipe francophone de phpbb.
Tu fais bien ce que tu veux, le prog est sous la GPL :huhu
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
Dakin Quelia
Posts: 206
Joined: Mon May 14, 2007 10:36 pm
Location: Belgique
Contact:

Re: Smilies Packs Converter v2

Post by Dakin Quelia »

Je te rassure, j'ai bien tout fait et pourtant le bouton rester grisé comme sur ton image. :(
Un Jedi devrait considérer chaque possibilité ainsi que ses possibles conséquences avant de s'impliquer personnellement dans une situation quelconque.

Mon blogue | Mon hébergeur
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Smilies Packs Converter v2

Post by Gamall »

C'est très bizarre. J'ai constaté le même bug sous Suse Linux, mais je n'ai jamais pu le reproduire sous Windows ou Ubuntu :? (cf post plus haut)


Tu peux essayer de dégriser le bouton de façon permanente en trouvant la ligne

Code: Select all

btnBProcess.setEnabled(!txtBPakPath.getText().isEmpty() && !txtBImgDir.getText().isEmpty() );  
et en remplaçant par

Code: Select all

btnBProcess.setEnabled(true);  
puis recompilant le programme. :?
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Smilies Packs Converter v2

Post by Gamall »

Ca a résolu ton problème ?
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
Dakin Quelia
Posts: 206
Joined: Mon May 14, 2007 10:36 pm
Location: Belgique
Contact:

Re: Smilies Packs Converter v2

Post by Dakin Quelia »

Oups, désolé.

Je ne saurais pas la faire vu que je n'ai pas d'éditeur JAVA, je n'ai pas encore téléchargé! Je vais le faire ce soir et te dirais quoi! :huhu
Un Jedi devrait considérer chaque possibilité ainsi que ses possibles conséquences avant de s'impliquer personnellement dans une situation quelconque.

Mon blogue | Mon hébergeur
User avatar
biztastic
Posts: 2
Joined: Fri Sep 05, 2008 5:42 am

Re: Smilies Packs Converter v2

Post by biztastic »

how the hell do I use it? I right click the jar and it's like "Open with Java" so I click that and nothing happens.. it just sits here staring at me like... uhhhhhhhh .... now what.. >.< can someone just tell me why a regular pak won't work with phpbb3 so I can manually change it? Why do they go and screw stuff up when it works right in the first place urrg. Right now Ihave file_name.gif=+:describtion=+:command and it's like

The specified package does not contain the appropriate data. but I know for a fact this is appropriate data because it worked in the past. >.< it makes me so angry I'm going to toss my cat against the wall
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Smilies Packs Converter v2

Post by Gamall »

Normally, with the Java runtime installed, you just have to click on the .jar file and the application will launch.

If you are unlucky and it doesn't, you can
  • reinstall the Java runtime, because if it does not run jar files it is clearly broken
  • or try from the command-line (assuming linux and sun java installed)

    Code: Select all

    java -jar [the jar file]
biztastic wrote:can someone just tell me why a regular pak won't work with phpbb3 so I can manually change it?
Because they completely changed the file format: they needed to change it anyway because phpbb3 allows you to enforce custom resolutions for your smilies, and they could not store this information using the old file format.

You can see the differences between the formats in the screenshot.

Your best shot is to get Java to work as I have said earlier, and to use my program to convert your pack, as it would be really tedious to do manually.

If you are really desperate and Java hates you, you can zip the .pak file and the smilies themselves (the images are needed to get their heights and widths), post it here and I'll convert it for you for a huge fee.

One last thing: tossing cats against walls is stupid: you might damage the wall :hum
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
User avatar
biztastic
Posts: 2
Joined: Fri Sep 05, 2008 5:42 am

Re: Smilies Packs Converter v2

Post by biztastic »

THANKS :love I know a certain "somebody" that got their custom smilies working :haha


...it's me in case you were wondering
User avatar
Virginoue
Posts: 3
Joined: Fri Oct 23, 2009 1:05 pm

Re: Smilies Packs Converter v2

Post by Virginoue »

Bonjour,

J'ai un souci : tous mes pak convertis ont pour taille 15*15 (or ils sont plus grands en vrai).
Voici le message d'erreur dans la boite de dialogue.
Voici le message d'erreur dans la boite de dialogue.
Comment puis-je le faire fonctionner normalement (j'ai près de 600 émoticones à me palucher sinon :D )

Merci d'avance ! :love

PS : Très très bonne idée en tout cas ce convertisseur :huhu
Gamall
Hic sunt dracones
Posts: 4174
Joined: Fri May 26, 2006 11:09 pm
Contact:

Re: Smilies Packs Converter v2

Post by Gamall »

Hello,

A première vue j'avais cru que c'était parce que tu n'avais pas lu le manuel (la section qui dit que phpBB3 a besoin de la taille des images, mais pas phpBB2 etc)... mais finalement en regardant attentivement le screenshot, ça vient surtout du fait que tes fichiers PAK sont très, très spéciaux... je suppose qu'ils ont été générés par des scripts ?

Tu as une hénauuuurme collection de smilies, répartis par catégories et... par dossiers. Et tes fichiers PAK croient bien faire en ajoutant le nom de dossier au nom de fichier.... Regarde le message d'erreur dans le screen: la ligne du PAK contient "Ami/copain.gif". Or le dossier que tu as sélectionné est le dossier Ami. Donc le convertisseur cherche le fichier "Ami\Ami/copains.gif" au lieu de chercher "Ami\copains.gif".

Idée 1 (marche pas): sélectionner le dossier smilies (parent de Ami) pour prendre ça en compte. Mais ça ne va pas marcher parce que tes fichiers PAK supposent que tu es sous Linux, où le séparateur est / et non \. Le serveur qui héberge ton site est donc sous Linux. Mais tu fais la conversion sous Windows... qui va penser que "/" fait partie intégrante du nom du fichier au lieu de l'interpréter comme un séparateur.

Idée 2 (l'idéal): Idée 1 + effectuer la conversion sous Linux si tu as un Linux sous la main... comme ça le problème des séparateurs ne se posera plus. Ce serait vraiment le plus simple. Si ce n'est pas le cas mais que tu connais Linux tu peux prendre un Live-CD Linux pour tourner sous Linux le temps de la conversion, sans avoir à l'installer.

Idée 3(marche mais fastidieux): Pour chaque PAK+dossier, par exemple Ami...
  • Faire un petit .bat pour renommer temporairement tes fichiers X en Ami/X, juste le temps de la correction. (et bien sûr le .bat pour inverser les changements)... ou alors
  • Supprimer tous les "Ami/" du fichier PAK avant de convertir, et les rajouter dans le fichier converti..
Voilà voilà :)
{<§ Gamall Wednesday Ida §>}
{ Mods and Programs - Mods TES-IV Oblivion }
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 172 guests