Playmaker Forum

Playmaker Help & Tips => Windows Phone 8 Help => Topic started by: mrgrey on August 24, 2013, 05:28:50 AM

Title: iTween
Post by: mrgrey on August 24, 2013, 05:28:50 AM
Hi, I have set up a simple sample scene to test iTween on my phone. I have a plane and a cube. At 2 second intervals the cube will bounce up into the air (add force to Y) and then, through physics it will bounce softly to settle back on the plane. This works fine on both PC and my WP8 device. I then added iTween Rotate Add to the cube so while it is in the air it spins somewhat, lands, waits a little and then repeats. This works fine on my PC but when I build and deploy it to my Lumia 920 it bounces up once (and settles back) and then nothing. It doesn't add the iTween Rotate to the cube and does not repeat. Is there a problem with using iTween on the WP8 platform?

I am new to developing so I may have done something totally stupid  :P
Title: Re: iTween
Post by: jeanfabre on August 24, 2013, 05:33:31 AM
Hi,

 I am soon going to be able to test on Lumia 920, meanwhile, do you see anything in the unity logs when you play it on the device?

Have you tried hotween? It has playmaker support:

http://hutonggames.com/playmakerforum/index.php?topic=2299.msg10104#msg10104

bye,

Jean
Title: Re: iTween
Post by: mrgrey on August 24, 2013, 05:49:52 AM
Thanks for the quick reply Jean

As I said I am fairly new to Unity and Playmaker so I don't know how to see unity logs on the device when I play it. Ignore me, just found how to do this: I get the following -

Build from '' branch, version is '4.2.0f4 (38efbd14869d)' (Release build).
Physical memory: 898 MB, commited memory limit: 380 MB.
Direct3D:
    Version:  Direct3D 11.0 [level 9.3]
    Renderer: Qualcomm Adreno 225 (WDDM v1.2) (ID=0x32303032)
    Vendor:   Qualcomm
    VRAM:     96 MB
Initialize engine version: 4.2.0f4 (38efbd14869d)
Exception: Exception has been thrown by the target of an invocation.
InnerException: Specified cast is not valid.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at WinRTBridge.MethodTools.InvokeMethod(Object instance, IScriptingMethodWrapper method, Object[] args)
 
(Filename:  Line: 71)

Hotween looks like an interesting alternative...I'm just not sure how to add it to Playmaker and how to use it

I also have an Android tablet on which to test, so I rebuilt the scene for my Tablet, deployed it and it works as intended, so I'm assuming it is the Lumia not playing nicely  >:(
Title: Re: iTween
Post by: jeanfabre on August 24, 2013, 07:11:53 AM
Hi,

 I think you are facing what we are trying to fix with iTween. Let me get back to you on this.

 As for hotween. simply get hotween and the playmaker custom actions. Hotween works differently then iTween, but it has a visual editor, so basically, you can visually configure the tweening properties.

 But first, wait for me to get back to you, I may have what you need.

Bye,

Jean
Title: Re: iTween
Post by: mrgrey on August 24, 2013, 07:30:14 AM
Thanks again Jean. I must say I am so pleased I invested in Playmaker, its a fantastic tool which has gotten me up to speed so much quicker than trying to learn to code from scratch and as you have shown the support here is second to none.
Title: Re: iTween
Post by: Alex Chouls on August 24, 2013, 08:18:15 AM
Thanks again Jean. I must say I am so pleased I invested in Playmaker, its a fantastic tool which has gotten me up to speed so much quicker than trying to learn to code from scratch and as you have shown the support here is second to none.

Thanks mrgrey! If you felt like posting a review on the asset store that would be great ;)

There are still some quirks in Unity support for Windows Phone 8. I did some tests with iTween and it seemed to run okay, but it might need some tweaks to run properly. We're helping the author make a version of iTween for Windows 8 Store. Maybe that will run better on Windows Phone 8... I'll do some more tests...
Title: Re: iTween
Post by: mrgrey on September 01, 2013, 11:24:50 AM
Hi Alex, thanks again for Playmaker...having such a blast with it.
I would love to leave a review on the Asset store but I bought it directly from your site - for some reason the asset store crashes my Unity so I try not to use it.
Looking forward to any iTween updates
Title: Re: iTween
Post by: mrgrey on September 03, 2013, 06:57:51 AM
Hi,

 I am soon going to be able to test on Lumia 920, meanwhile, do you see anything in the unity logs when you play it on the device?

Have you tried hotween? It has playmaker support:

http://hutonggames.com/playmakerforum/index.php?topic=2299.msg10104#msg10104

bye,

Jean
Hey Jean, finally figured out how to get HOtween working with my Unity3d. Tried a quick test and it also does not work with WP8. I get this error:

Error building Player: Exception: Error: type `System.Reflection.Emit.AssemblyBuilder` doesn't exist in target framework.


Again, it works fine with Android :-(
Title: Re: iTween
Post by: jeanfabre on September 05, 2013, 10:44:07 PM
Hi,

 uhm... I'll have a look. Sounds like a lot of framework will have trouble reaching W8..

Bye,

 Jean
Title: Re: iTween
Post by: mrgrey on September 06, 2013, 12:10:58 PM
I don't think Unity is quite ready for wp8. Looking at the alternatives I don't see much of a market on Android, too much app piracy to be worth the time to develop for. My other option is iOS and, as such, I have bought a second hand iMac from eBay tonight. Hopefully I can design and develop on my current pc, then transfer the project to the mac for deployment, and put the wp8 development on the back burner until both it and unity are a more mature match.
Title: Re: iTween
Post by: garrettskye on September 16, 2013, 01:56:45 PM
Just wondering if there's any update on getting iTween/Playmaker working in WP8?  I just picked up both Playmaker and the WP8 Add-on today, and of course, the first thing I do is implement iTween and realize it doesn't work on WP8 :/  Would love to see this working! 

Thanks, and keep up the good work!
Title: Re: iTween
Post by: jeanfabre on September 16, 2013, 11:41:08 PM
Hi,

 WP8 is indeed in its beginning.

 As for iTween support, we are very actively looking for the proper way to provide playmaker user with a working system. So stay tune, it's coming real soon.

bye,

 Jean
Title: Re: iTween
Post by: jeanfabre on November 03, 2013, 10:23:32 PM
Hi,

 Just stumbled upon this thread. I have a working package for iTween support on windows, so if you need this before a release, pm me.

bye,

 Jean
Title: Re: iTween
Post by: 4ppleseed on December 01, 2013, 09:21:33 AM
I'm getting loads of errors running my Playmaker/W8 addon game in the Visual Studio emulator. Do you think it's iTween messing around? Can I have the fix too please :D

Looks like this:
Title: Re: iTween
Post by: jeanfabre on December 01, 2013, 11:38:34 PM
Hi,

 yes, simply pm me with your email address, I'll send you the packages.

bye,

 Jean
Title: Re: iTween
Post by: 4ppleseed on December 03, 2013, 06:12:04 AM
Hi,

 yes, simply pm me with your email address, I'll send you the packages.

bye,

 Jean


Worked great, thanks Jean.
Title: Re: iTween
Post by: garrettskye on December 15, 2013, 03:55:29 PM
I seem to be having the same issue 4ppleseed was having.  I'm getting the same exact errors that appear in his screenshot.  Any chance I can also get this update?  I sent you a PM with my email address.

Thanks!
Title: Re: iTween
Post by: 4ppleseed on December 23, 2013, 07:28:55 AM
I seem to be having the same issue 4ppleseed was having.  I'm getting the same exact errors that appear in his screenshot.  Any chance I can also get this update?  I sent you a PM with my email address.

Thanks!

If Jean is away for Xmas - PM me and I'll email it to you instead :)
Title: Re: iTween
Post by: jeanfabre on December 23, 2013, 07:34:48 AM
Hi,

 Did not get any pm from you. Can you resend?

bye,

 Jean
Title: Re: iTween
Post by: garrettskye on December 23, 2013, 10:14:15 AM
I apologize for not responding sooner, between work and the holidays, it's been chaos.  I saw that I did receive an email the other day, it ended up in my junk folder and I caught while cleaning up.  I should be able to give a go later tonight. 

Thanks again!
Title: Re: iTween
Post by: drswoboda on March 11, 2014, 12:14:21 PM
Has there been a status update on the iTween issues.

I just bought Playmaker and the WP8 addon with the intent of using iTween in my project.

Does it work yet?
Title: Re: iTween
Post by: jeanfabre on March 12, 2014, 05:25:59 AM
Hi,

 I think it does yes, Unity and windows worked together to bring back the missing api for unity projects to be truly portable, I do think that iTween is now back on track on windows platforms. The last tests I did were ok.

bye,

 Jean
Title: Re: iTween
Post by: ttv on March 17, 2014, 06:38:57 AM
Hi guys i have problem with iTween and Playmaker on Windows Phone 8. I'm just wondering what could be causing this.

Error:

An exception of type 'System.MissingMethodException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary
The thread 0x47c has exited with code 259 (0x103).
An exception of type 'System.MissingMethodException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary
Exception: Method 'iTweenFSMEvents.iTweenOnStart' not found.
Type: System.MissingMethodException
Module: mscorlib
InnerException: <No Data>
AdditionalInfo:Invoking UnityEngine.SetupCoroutine::InvokeMember method with argument count: 3
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at UnityEngine.SetupCoroutine.InvokeMember(Object behaviour, String name, Object variable)
   at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[] args)
 
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)


Using:
Windows 8.1 64-bit
Unity 4.3.2f1
Visual studio express 2012 for Windows Phone
And newest version of the playmaker and the playmaker windows phone addon from unity assetstore.
Title: Re: iTween
Post by: Alex Chouls on March 17, 2014, 08:57:48 PM
To use iTween with Windows Phone 8 you have to build with at least Unity 4.3.3.

However there's this bug in Unity:
http://forum.unity3d.com/threads/223065-Unity-4-3-3-Type-GetMembers%28BindingFlags%29-crash

Which is why I imagine you're using 4.3.2.

So to use iTween you'll need to try the workarounds described on that thread, or wait for the next Unity update. I have to say it's a little annoying that Unity didn't hotfix this bug!

EDIT: You could also try the iTween patch with Unity 4.3.2:
https://hutonggames.fogbugz.com/default.asp?W1178
Title: Re: iTween
Post by: timoe on March 18, 2014, 07:51:50 AM
Hey! Same problem here! Can someone give me access to download that iTween patch? I got some "permission" problems. I have tried to download it a few times now, Thanks.
Title: Re: iTween
Post by: jeanfabre on March 19, 2014, 02:06:23 AM
Hi,

 It's odd cause you seem to be logged in to this forum since you can reply. I tried and it works. Can you try on a different computer?

bye,

 Jean
Title: Re: iTween
Post by: timoe on March 19, 2014, 06:41:07 AM
Nope i can't download iTweenPatch.unitypackage. I need permissions first. Can you give some? :)
Title: Re: iTween
Post by: jeanfabre on March 25, 2014, 05:32:10 AM
Hi,

 I am really not sure what is the problem on your end, you don't need any permission really, can you see the links on that webpage?

https://hutonggames.fogbugz.com/default.asp?W1178

bye,

 Jean
Title: Re: iTween
Post by: Alex Chouls on March 28, 2014, 11:04:22 PM
When I first uploaded the files they were pointing to files on the beta site, so would have needed permissions to download. I fixed that problem, so they should download fine now...