gree / lwf

LWF - Lightweight SWF
http://gree.github.com/lwf/
zlib License
627 stars 167 forks source link

Conversion Errors #81

Closed delitaru closed 10 years ago

delitaru commented 10 years ago

Hello,

I have a problem converting a particular swf file using the swf2lwf converter, here is the error from the converter:

ERROR: Game.swf force to update (swf2lwf -i -p Game.swf) ERROR: Bitmap is as JPEG. Bitmap should be as 'Loss-less'. ERROR: Text should be 'Dynamic Text'. ERROR: Text should be 'Dynamic Text'. ERROR: Text should be 'Dynamic Text'. ERROR: There are some Hit frames of the button. swf2lwf caused an exception: undefined method graphic_objects' for nil:NilClass backtrace: C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lib/swf2lwf/swf2lwf.rb:2017:inparse_define_button2' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lib/swf2lwf/swf2lwf.rb:2703:in parse_tags' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lib/swf2lwf/swf2lwf.rb:2753:inparse_swf' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lib/swf2lwf/swf2lwf.rb:3529:in swf2lwf' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lib/swf2res.rb:72:inswf2res' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lwfs.rb:657:in block in convert' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lwfs.rb:636:ineach' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lwfs.rb:636:in convert' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lwfs.rb:401:inblock (3 levels) in ' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lwfs.rb:384:in catch' C:/Users/Meng/Desktop/LWFS/LWFS/.a/lwfs/lwfs.rb:384:inblock (2 levels) in '

So im asking if anyone has any insight to get rid of these errors since its most probably a problem with the file. I have the original fla files but im not sure where to start to fix them. (Im quite new in modifying fla files)

splhack commented 10 years ago

Could you try to install LWFS https://github.com/gree/lwfs and to use "Publish for LWF" command in Adobe Flash? This command will be automatically installed by LWFS.

delitaru commented 10 years ago

I got it working (or more like i got a workaround): the 1st error was simple enough (convert every image used to lossless). 2nd error i avoided by converting the text to bitmap. 3rd error somehow disappeared after fixed the 2nd error.

I will still try out that LWFS maybe this weekend and see how it goes.