2D Toolkit Forum

2D Toolkit => Support => Topic started by: dakeese on August 03, 2019, 05:43:03 pm

Title: Updating old project for Android
Post by: dakeese on August 03, 2019, 05:43:03 pm
I'm trying to update an old project for Android that I haven't touched in a few years.

I last built it with Unity 5.0.1 and whatever the latest tk2d was at the time.

It no longer functions on Android. I assume something in Android broke older versions of Unity, and they must have since fixed that. But if I download the latest Unity, update my project, and import the latest tk2d, I have lots of shader errors and many of my sprites look pure black.

Is there an older combo version of tk2d and Unity I can use to update this "easily"?

I never had more than 50 downloads of this free app, but Google has started sending out notices that old apps must be fixed (even if unpublished) or your developer account can be suspended!!!
Title: Re: Updating old project for Android
Post by: unikronsoftware on August 04, 2019, 06:49:38 pm
You could try updating to a recent version of unity (2017 / 2018.3) and latest tk2d. Please keep backups!
Title: Re: Updating old project for Android
Post by: dakeese on August 07, 2019, 01:47:05 am
Yes, I'm using version control.

What's the cleanest way to update tk2d? Are there files I should delete from my project, and then install it from the asset store?
Title: Re: Updating old project for Android
Post by: unikronsoftware on August 08, 2019, 04:03:16 pm
Yes, I'm using version control.

What's the cleanest way to update tk2d? Are there files I should delete from my project, and then install it from the asset store?

No, update unity - then reimport the newest version from this site.
Title: Re: Updating old project for Android
Post by: dakeese on August 09, 2019, 03:26:38 am
I gets lots of these errors using Unity 2017.4.

Sorry, I haven't touched C# code in about four years, and haven't kept up with Unity. Is there an edit I can use to replace these operators?

https://imgur.com/bE5nBWl (https://imgur.com/bE5nBWl)
Title: Re: Updating old project for Android
Post by: unikronsoftware on August 09, 2019, 07:11:50 pm
I gets lots of these errors using Unity 2017.4.

Sorry, I haven't touched C# code in about four years, and haven't kept up with Unity. Is there an edit I can use to replace these operators?

https://imgur.com/bE5nBWl (https://imgur.com/bE5nBWl)

What platform have you set in unity?
Title: Re: Updating old project for Android
Post by: dakeese on August 12, 2019, 09:50:12 pm
I'm targeting Android.
Title: Re: Updating old project for Android
Post by: unikronsoftware on August 14, 2019, 09:31:24 pm
I'm targeting Android.
https://www.2dtoolkit.com/forum/index.php/topic,5607.msg25287.html#msg25287
Title: Re: Updating old project for Android
Post by: dakeese on August 16, 2019, 02:10:27 am
Thank you so much for the help! I got it working with that and using Unity 2018.4. Still have some other fixes to do based on general Unity changes in the past few years, but my sprites are displaying.