User talk:Immewnity/Archives:Image resources: Difference between revisions

(→‎New site: reply)
Line 13: Line 13:
I could also give you URLs for the Dream World Pokemon swfs if you want them, but those are complex, bitwise XORs and Trillix won't extract them, nor any online site I've tried. [[User:Bluesun|Bluesun]] 15:10, 15 November 2010 (UTC)
I could also give you URLs for the Dream World Pokemon swfs if you want them, but those are complex, bitwise XORs and Trillix won't extract them, nor any online site I've tried. [[User:Bluesun|Bluesun]] 15:10, 15 November 2010 (UTC)
:*just saw now* Thanks! I'll add that in right now. And yes, the swfs would be very useful; I could convert them to SVG and get biggesy images of all of them!--'''[[User:Immewnity|<span style="color:#88AADD">''immewnity''</span>]][[User talk:Immewnity|the]][[Special:Contributions/Immewnity|mew]]''' 21:45, 23 December 2010 (UTC)
:*just saw now* Thanks! I'll add that in right now. And yes, the swfs would be very useful; I could convert them to SVG and get biggesy images of all of them!--'''[[User:Immewnity|<span style="color:#88AADD">''immewnity''</span>]][[User talk:Immewnity|the]][[Special:Contributions/Immewnity|mew]]''' 21:45, 23 December 2010 (UTC)
::Okay then, I'll try to explain it. The base format for the Pokemon vector swfs is:
::cdn.pokemon-gl.com/swf/global/parts/pokemon/scaled/X.swf where X=((Dex No. * 0x10000) + ((Form No. - 1) * 0x100) bitwise-XOR 0xC3C3C3) converted to letters minus preceding 'a's.
::For example Cloyster:
:::  ((91*0x10000)+((1-1)*0x100) bitwise-XOR 0xC3C3C3) converted to letters minus preceding 'a's
:::=    0x5B0000 +        0x0  bitwise-XOR 0xC3C3C3) converted to letters minus preceding 'a's
:::=                                        0x98C3C3  converted to letters minus preceding 'a's
:::=                                                                                    baabbfih
:::= [http://cdn.pokemon-gl.com/swf/global/parts/pokemon/scaled/baabbfih.swf cdn.pokemon-gl.com/swf/global/parts/pokemon/scaled/baabbfih.swf]
::And so you have baabbfih.swf, a .swf file that does just about nothing in Trillix or online decompilers. To get at the image you have to extract the binary attachment to the swf file, but Trillix doesn't let you do that, so to do that I used a programme named swfextract from SWFTools. There are probably others that work too though. Running it 'swfextract.exe input.swf -b 1 -o output.swf' you get the attached .swf file, which you can then open in Trillix or other programmes. And if all you need is the shape data you can pass it through swfextract again with -i instead of -b. Hopefully I've explained it well enough, but if there's anything you still don't understand just ask. [[User:Bluesun|Bluesun]] 00:33, 24 December 2010 (UTC)
1,164

edits