play-co / devkit

HTML 5 game platform for browser and mobile
http://docs.gameclosure.com
627 stars 126 forks source link

Spriter Error Messages #232

Open rogueSkib opened 9 years ago

rogueSkib commented 9 years ago

The spriter fails on certain PNG formats; we should report this in the error logs.

Currently, you see something like this:

     [jvmtools]    connected to localhost:53346
                   [error]  code: 1 { tool: 'spriter',
  args:
   [ '--no-clean',
     '--cache-file',
     'spritercache-16da808b124a0b34340ec59137068ae1',
     '--scale',
     1,
     '--dir',
     '/Users/jimbo3744/Projects/GameClosure/kittyninja/resources/',
     '--output',
     '/Users/jimbo3744/Projects/GameClosure/kittyninja/build/debug/simulator/spritesheets',
     '--target',
     'native-ios',
     '--binaries',
     undefined,
     '--is-simulator',
     true,
     '--spriter-png-fallback',
     false ],
  buffer: true }
        [build]
⤷  readableAddChunk (_stream_readable.js:165)
 ⤷  emitReadable (_stream_readable.js:404)
  ⤷  emitReadable_ (_stream_readable.js:408)
   ⤷  Socket.EventEmitter.emit (events.js:92)
    ⤷  Socket.<anonymous> (_stream_readable.js:746)
     ⤷  Socket.EventEmitter.emit (events.js:95)
      ⤷  Socket.<anonymous> (/Users/jimbo3744/Projects/GameClosure/devkit/src/jvmtools/tealeaf-build-tools/javaBridge.js:190)
       ⤷  Array.forEach (native)
        ⤷  undefined (/Users/jimbo3744/Projects/GameClosure/devkit/src/jvmtools/tealeaf-build-tools/javaBridge.js:195)
         ⤷  EventEmitter.emit (events.js:95)
          ⤷  EventEmitter.__bound (/Users/jimbo3744/Projects/GameClosure/devkit/node_modules/jsio/packages/base.js:90)
           ⤷  null.<anonymous> (/Users/jimbo3744/Projects/GameClosure/devkit/src/jvmtools/tealeaf-build-tools/javaBridge.js:106)
            ⤷  __bound (/Users/jimbo3744/Projects/GameClosure/devkit/node_modules/jsio/packages/base.js:90)
             ⤷  onFinish (/Users/jimbo3744/Projects/GameClosure/devkit/src/jvmtools/tealeaf-build-tools/javaBridge.js:70)
              ⤷  undefined (/Users/jimbo3744/Projects/GameClosure/devkit/node_modules/bluebird/js/main/promise_resolver.js:41)
               ⤷  maybeWrapAsError (/Users/jimbo3744/Projects/GameClosure/devkit/node_modules/bluebird/js/main/util.js:68)
               Error: 1
                  build failed