Git Product home page Git Product logo

Comments (8)

ollipop avatar ollipop commented on September 3, 2024

I tried using the semi automatic tool it gave me the following result:
Jake.swf u webkitcss canvas webgl OK??

In the output I go a Jake.swf folder. Inside of the folder there is a couple of images with a Jake.bytes file. What should I do next? I the tutorial it says im supposed to have a lwf file that I would have to convert into a bytes

from lwf.

HiroyukiHaga avatar HiroyukiHaga commented on September 3, 2024

Thank you for opening this issue.

https://github.com/gree/lwf/wiki/ForUnity

Above step-by-step tutorial covers all steps in the video.
Could you please take a look it?

Unity cannot load resources with ".lwf" extension. That's why all .lwf files has to be renamed into .bytes.
This renaming process is covered by above link also.

from lwf.

ollipop avatar ollipop commented on September 3, 2024

I already checked it. I sued the tool, than I got a JAKE.bytes. I added it to my unity project and then added the Simple script. I changed the script:
Load("gree_logo.lwfdata/gree_logo", "gree_logo.lwfdata/"); ----> Load("jake.lwfdata/jake", "jake.lwfdata/");

In my ressources folder I only have Jake.bytes

from lwf.

HiroyukiHaga avatar HiroyukiHaga commented on September 3, 2024

If Jake.swf contins images, please double-check the compression of images.
Photo (JPEG) is not supported by LWF. LWF supports Lossless (PNG, GIF) only.

  1. Open .fla in Flash CS 6.0
  2. Right click on the image and open property.
  3. Double check "Compress" area.

from lwf.

HiroyukiHaga avatar HiroyukiHaga commented on September 3, 2024

If you can share the swf file, I can take a look it little bit.
Could you please upload the swf file?

thanks.

from lwf.

ollipop avatar ollipop commented on September 3, 2024

øk i have uploaded it here: https://docs.google.com/file/d/0B3Lrxp_RRO6SR0JuUTd0cVk1bVE/edit?usp=sharing
Thanks

from lwf.

HiroyukiHaga avatar HiroyukiHaga commented on September 3, 2024

Thank you ollipop,

$ ruby lwf/tools/swf2lwf/swf2lwf.rb jake.swf
ERROR: Bitmap is as JPEG. Bitmap should be as 'Loss-less'.
lwf/tools/swf2lwf/swf2lwf.rb:1612:in parse_define_shape': undefined methodwidth' for nil:NilClass (NoMethodError)

The jake.swf contains a JPEG file that is not supported by lwf.
Please try following steps for fixing this issue.

  1. Open .fla in Flash CS 6.0
  2. Right click on the image and open property.
  3. Select "Lossless (PNG, GIF)" instead of "Photo(JPEG(" for compression.
  4. Pulblish to swf.
  5. Convert swf to lwf.

thanks,

from lwf.

splhack avatar splhack commented on September 3, 2024

Could you try to use "Publish for LWF.jsfl" Flash command.

from lwf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.