Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LWFS daemon does not create textures #11

Open
alexander-vi opened this issue Nov 30, 2015 · 3 comments
Open

LWFS daemon does not create textures #11

alexander-vi opened this issue Nov 30, 2015 · 3 comments

Comments

@alexander-vi
Copy link

Hi,
I've tried to convert my SWFs with LWFS daemon, but all my attempts failed.
Sympoms:

  • I am using Mac OS X
  • LWFS release 20150716-1509
  • In the browser the status is "OK??"
  • LWF file is created
  • There are no textures
  • Within the example files daemon works fine

swf file:
https://drive.google.com/file/d/0B-Ph3VXnJUKPeWY4U25SS3VGT2c
fla file:
https://drive.google.com/file/d/0B-Ph3VXnJUKPWmF2RnY0aW92YjA

@KojiNakamaru
Copy link
Member

LWF doesn't support vector shapes, for performance/portability for various platforms. If you convert parts of the body to bitmaps, it will be shown correctly.

Please also note that you should put your fla under a subfolder of LWFS_work, such as LWFS_work/fire_0004_death/fire_0004_death.fla, and select Publish for LWF command from Command menu to publish it with correct settings and to emit necessary bitmaps from the fla.

@alexander-vi
Copy link
Author

Thank you for reply.
Is it possible to add some error handling for such a case? (vector images)
I am not an artist and do not work with Adobe Flash directly.
And artists can easily forget convert some images, etc...

@KojiNakamaru
Copy link
Member

Sorry for this slow reply. Please adjust LWFS/.a/lwfs/lib/swf2lwf/swf2lwf.rb as below:

--- swf2lwf.rb.orig 2015-12-04 18:12:36.000000000 +0900
+++ swf2lwf.rb  2015-12-04 18:12:38.000000000 +0900
@@ -1812,7 +1812,7 @@
       end
     end
   end
-  #warn "Shape(#{obj_id}) has no-rect shapes." unless vertices.empty?
+  warn "Shape(#{obj_id}) has no-rect shapes." unless vertices.empty?
 end
 alias parse_define_shape2 parse_define_shape
 alias parse_define_shape3 parse_define_shape

This makes swf2lwf.rb emit warnings for non-rectangular vector shapes (about vector shapes, more precisely, LWF supports only rectangles and ignores other more general shapes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants