ammarz

  • 2015年2月25日
  • 2013年2月15日に参加

    and I was trying to figure out why my animations aren't taking effect, until I figured out they're not getting exported at all so decided to come and whine about here!

    • 編集済み
  • this is a dirty hook for cocos2d-x done on a hurry, it'll be rewritten again, but it kinda works now.
    the objective is to make it easy and fast to use:

    bool ScSpineBoy::init()
    {
        _boy = CCSpine::makeSpine("spineboy-skeleton.json", "boy.png", "boy.plist");
        _boy->loadAnimation("spineboy-walk.json", "walk");
        _boy->loadAnimation("spineboy-jump.json", "jump");
        
    _boy->playAnimation("jump", 0, true); CCSize stageSize = CCDirector::sharedDirector()->getWinSize(); _boy->setPosition(stageSize.width * 0.5, stageSize.height * 0.1); addChild(_boy); scheduleUpdate(); return true; } void ScSpineBoy::update(float delta) { _boy->update(delta); }

    and yeah it forces the usage of a texture atlas, I used Texture Packer.

    • 編集済み
  • though it worked on an XP virtual machine ...

    Spine 1.0.12-full
    Licensed to: ************
    Uncaught
    com.badlogic.gdx.utils.GdxRuntimeException: Unable to create OpenGL display.
    	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(SourceFile:220)
    	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(SourceFile:181)
    	at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.create(SourceFile:184)
    	at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$1$1.run(SourceFile:86)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
    	at java.awt.EventQueue.access$200(EventQueue.java:103)
    	at java.awt.EventQueue$3.run(EventQueue.java:688)
    	at java.awt.EventQueue$3.run(EventQueue.java:686)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    Caused by: org.lwjgl.LWJGLException: Could not get the JAWT interface
    	at org.lwjgl.opengl.AWTSurfaceLock.lockAndInitHandle(Native Method)
    	at org.lwjgl.opengl.AWTSurfaceLock.access$100(AWTSurfaceLock.java:51)
    	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:91)
    	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:89)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.lwjgl.opengl.AWTSurfaceLock.privilegedLockAndInitHandle(AWTSurfaceLock.java:89)
    	at org.lwjgl.opengl.AWTSurfaceLock.lockAndGetHandle(AWTSurfaceLock.java:66)
    	at org.lwjgl.opengl.MacOSXCanvasPeerInfo.initHandle(MacOSXCanvasPeerInfo.java:64)
    	at org.lwjgl.opengl.MacOSXDisplayPeerInfo.doLockAndInitHandle(MacOSXDisplayPeerInfo.java:56)
    	at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85)
    	at org.lwjgl.opengl.MacOSXDisplay.createWindow(MacOSXDisplay.java:136)
    	at org.lwjgl.opengl.Display.createWindow(Display.java:303)
    	at org.lwjgl.opengl.Display.create(Display.java:845)
    	at org.lwjgl.opengl.Display.create(Display.java:754)
    	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(SourceFile:216)
    	... 17 more
    Uncaught
    com.badlogic.gdx.utils.GdxRuntimeException: com.badlogic.gdx.utils.GdxRuntimeException: Unable to create OpenGL display.
    	at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.create(SourceFile:193)
    	at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$1$1.run(SourceFile:86)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
    	at java.awt.EventQueue.access$200(EventQueue.java:103)
    	at java.awt.EventQueue$3.run(EventQueue.java:688)
    	at java.awt.EventQueue$3.run(EventQueue.java:686)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Unable to create OpenGL display.
    	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(SourceFile:220)
    	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setupDisplay(SourceFile:181)
    	at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.create(SourceFile:184)
    	... 15 more
    Caused by: org.lwjgl.LWJGLException: Could not get the JAWT interface
    	at org.lwjgl.opengl.AWTSurfaceLock.lockAndInitHandle(Native Method)
    	at org.lwjgl.opengl.AWTSurfaceLock.access$100(AWTSurfaceLock.java:51)
    	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:91)
    	at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:89)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.lwjgl.opengl.AWTSurfaceLock.privilegedLockAndInitHandle(AWTSurfaceLock.java:89)
    	at org.lwjgl.opengl.AWTSurfaceLock.lockAndGetHandle(AWTSurfaceLock.java:66)
    	at org.lwjgl.opengl.MacOSXCanvasPeerInfo.initHandle(MacOSXCanvasPeerInfo.java:64)
    	at org.lwjgl.opengl.MacOSXDisplayPeerInfo.doLockAndInitHandle(MacOSXDisplayPeerInfo.java:56)
    	at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85)
    	at org.lwjgl.opengl.MacOSXDisplay.createWindow(MacOSXDisplay.java:136)
    	at org.lwjgl.opengl.Display.createWindow(Display.java:303)
    	at org.lwjgl.opengl.Display.create(Display.java:845)
    	at org.lwjgl.opengl.Display.create(Display.java:754)
    	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.createDisplayPixelFormat(SourceFile:216)
    	... 17 more
    
  • I think this feature would be implemented if the amount in kickstarted would reach a certain amount, but I think it only make sense in frame-by-frame animation, while here you can just copy the key frames and edit them.

  • I am currently working on an AS3 lib to handle spine, its mainly a controller that can be attached to anything that implements its interface, so it'll support starling, and displaylist or whatever engine.
    But my job is giving me a hard time doing my own projects so it might take some time, then I'll put it in github.

  • Just downloaded V 1.0.10 to my windows laptop and it crashes at startup, the admin security thingy is disabled.
    And its an intel i7 not amd64 like in the log!

    Spine 1.0.10-full
    Licensed to:
    Windows 7 amd64 6.1
    NVIDIA Corporation
    GeForce GTX 460M/PCIe/SSE2
    4.3.0
    Java 1.7.0_07
    Oracle Corporation
    Java HotSpot(TM) 64-Bit Server VM
    Started.
    Uncaught
    java.lang.IllegalStateException: no splash screen available
    	at java.awt.SplashScreen.checkVisible(Unknown Source)
    	at java.awt.SplashScreen.close(Unknown Source)
    	at com.esotericsoftware.spine.editor.Editor.render(Unknown Source)
    	at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$3.run(Unknown Source)
    	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    	at java.awt.EventQueue.access$200(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    	at java.awt.EventQueue.dispatchEvent(Unknown Source)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.run(Unknown Source)

    Gotta say, I really like the GUI and shortcuts, I can tell a lot of thought was put into it. I'll try to hack an AS3 library during this weekend and post it here when done.

    Keep it up!

  • it worked for me out of the box, I bought it through this website, I have Java 7 runtime & sdk installed on osx 10.8.2