PWI: Extract emotes to animated GIFs (maybe for FW, ESO, JD too?)

04/20/2012 01:44 dumbfck#1
*removed*
04/20/2012 01:55 amineurin#2
Quote:
As always, I'm going to bore you all by going into great detail about how it works and shit
man, i love this really!
not only ur great work and helpfull hands, the sence of humor u have [Only registered and activated users can see links. Click Here To Register...]

i remember the day wen i had to rip all pig animation from the game, for the website of my gf...since she wanted those icons for her guestbook [Only registered and activated users can see links. Click Here To Register...]

very great and i linked u tomorrow evening +the other new threads, then its weekend start *hurray*

thanks again [Only registered and activated users can see links. Click Here To Register...]
04/20/2012 11:30 Interest07#3
I can't find the .bat file I used to go from .dds + .txt -> .gifs, but I know for a fact that imagemagick will let you chop up .dds files, since you weren't too keen on C# doing that stuff for you, maybe you can look into that next time :)
04/20/2012 12:50 dumbfck#4
You did that with a .bat file :O ? Well now I feel dumb lol.
And I didn't realise IM could use .dds files - Wish I had as I could have removed the whole DevIL.NET stuff from the project.
As for chopping the images up, that's a bit cumbersome using IM, hence why I opted to do that part in C#. I'd love to see that bat file though if you ever find it :p
I wonder if there is any difference in final gif quality if I use IM to build the gifs from sliced up .dds chunk rather than using .pngs as an intermediate stage. I may have to have a play with that later lol.

I'm also contemplating adding an option to make animated .pngs, although the browser devs can't seem to make up their minds about them. If I can get them to work well in .NET controls I might just do it anyway, as that was my original requirement when I started this little tool.
04/20/2012 14:14 Interest07#5
Quote:
Originally Posted by dumbfck View Post
You did that with a .bat file :O ? Well now I feel dumb lol.
And I didn't realise IM could use .dds files - Wish I had as I could have removed the whole DevIL.NET stuff from the project.
As for chopping the images up, that's a bit cumbersome using IM, hence why I opted to do that part in C#. I'd love to see that bat file though if you ever find it :p
I wonder if there is any difference in final gif quality if I use IM to build the gifs from sliced up .dds chunk rather than using .pngs as an intermediate stage. I may have to have a play with that later lol.

I'm also contemplating adding an option to make animated .pngs, although the browser devs can't seem to make up their minds about them. If I can get them to work well in .NET controls I might just do it anyway, as that was my original requirement when I started this little tool.
I've swapped HDs a few times since I did that... running a search on *.bat didn't net me any results (well, plenty of results, but not what I wanted ;)), so I'm afraid it might be on some broken HD or formatted into oblivion. It's been a while ago, and there was a fair bit of thinking work involved so I can't recall how exactly I did it lol.

Obviously your program has way more utility anyway, as it integrates the .pck bits etc. I'm guessing your PWI msn program is one step further towards the completion then :D Really a project for the long run it seems, although I suppose it could be integrated with other PW games as well, so even if you don't complete it before pwi goes belly up, it will still be useful ;)
04/20/2012 14:27 dumbfck#6
Awwh shame about the file. I bet you lost lots of other nice stuff too :(

Yeah the plan is to make the chat program compatible with FW, JD, ESO, etc. too :p

I might even integrate a scaled down and cleaned up version of this into it too, so if PWE add some more emote packs to the client, the user will be able to automagically update the program to include them :P

On an ooold version of the PWMSN program I was developing, it used to extract the .dds files then extract each emote as a virtual image, then lay the .dds frames directly over the chat window, but it was a bit processor intensive to manually animate the sprites (had a tick timer which would advance the frame count on each sprite as and when required). It worked quite well though, until there were a lot of smilies on the page.
Since then I've figured out a really nice way to drop an animated gif into a richtextbox and preserve the transparency, along with an overall form transparency too (you can adjust how transparent the entire window and contents are, so you can leave it in the corner of your screen and still see your other windows through it ^_^), so I'm gonna do it like that now and let the native stuff handle the gif animations :D
04/20/2012 16:44 Sᴡoosh#7
Nice project, thanks.
04/20/2012 16:59 Shareen#8
Simple, easy to use and useful. Funny enough, I was just about to start playing with getting those darn smilies out and here you go posting this.. brilliant timing, thank you.

Quote:
Originally Posted by dumbfck View Post
Using the convert.exe program bundled with it, we can do something like this on the command line to create an animated gif from frames:
[code]
convert -dispose background -delay 100 image1.png -delay 250 image2.png -delay 50 image3.png derp.gif
[\code]
Perhaps place that convert command for ImageMagick into some text file, where end users can modify it. For example, I'm thinking of resizing .gif smilies into a smaller form, so they don't break lines of text in such an ugly fashion.

Being able to modify IM command line would open end image manipulation to a new level. All it takes is a short read trough IM manuals and as far as my experience go with IM, there is very little that thing can't do.

Please note though, I'm not in any way implying you should do that, full source is available to all (another thank you for that), I'm merely giving out suggestions.
04/22/2012 19:35 dumbfck#9
I was thinking of adding an option for resizing, but in the end I just wanted to finish it hehe. I'll take a look at some point - it should be pretty easy to add.
The IM stuff in an ini file is a pretty good idea too!
04/24/2012 16:43 AEBus#10
Completed Gifs
04/24/2012 17:58 dumbfck#11
Good idea, thanks :P - Did you use this program to extract them or did you already have them?
And where are those last few packs from? Different game?
04/24/2012 18:07 AEBus#12
Quote:
Originally Posted by dumbfck View Post
Did you use this program to extract them?
Yes :p
Quote:
Originally Posted by dumbfck View Post
And where are those last few packs from? Different game?
From some Russian Perfect World Free PVP servers
05/01/2012 01:42 ItsMeMario1#13
btw doesnt work on all the games, technicly it works but the image sizes are different. So it ends up with a bunch of weird half cut up images. lil text box with image sizes could fix it :p
05/01/2012 02:34 dumbfck#14
Ahh thanks for the feedback. Do you have an example emotionsx.dds and emotionsx.txt pair you can upload or send me please so I can test?
Also, which game are your emotes from?

Cheers.
05/01/2012 12:25 ItsMeMario1#15
they are eso, exacly the same as pw as far as i know but the size (40x40)